Menu

Vision | DeepSeek API Docs
πŸ“°

Vision | DeepSeek API Docs

Hacker NewsΒ·2 months ago
#RI63zXqT
#api-docs#type#deepseek#article#ama
Reading 0:00
15s threshold

The deepseek-v4-flash-vision-exp model accepts images alongside text, so you can ask the model to describe pictures, read text from screenshots, analyze charts, and more.

Supported image formats: JPEG, PNG, GIF, and WebP . The format is detected from the actual file content, not from the file name or the declared MIME type.

Sending Images ​

There are three ways to provide an image to the model. All of them use the standard OpenAI-compatible Chat Completions format, where content is an array of blocks instead of a plain string. The same three methods are also available in the Responses API , where images are carried in input_image content parts.

The base_url for the examples below is https://api.deepseek.com .

1. Base64-encoded image (inline) ​

Encode the image and embed it directly in the request as a data: URL. This is the simplest option for local files.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.