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.β¦