Prices and model details on this page may have changed. For current rates, see the OpenLux pricing page.

Home / DeepSeek V4 Flash

DeepSeek V4 Flash Vision: Model Name, Sending Images, and Fixing 400 Errors

Short answer: DeepSeek's official vision model is deepseek-flash (currently DeepSeek-V4.1-Flash-1017), so direct requests to DeepSeek with images should use that name; the official Models & Pricing page marks deepseek-v4-pro as not supporting vision. Through the OpenLux relay, the DeepSeek model ID tagged for image understanding in the pricing API is deepseek-v4.1-flash; deepseek-v4-flash does not carry that tag. In the Chat Completions and Anthropic formats, images belong in user messages only; images in system or assistant messages return 400. Supported formats are JPEG, PNG, GIF and WebP, with size, count and resolution limits. Every statement about DeepSeek below comes from the official documentation linked in each section.

Can deepseek-v4-flash read images now? What DeepSeek says

The DeepSeek change log entry for 2026-09-10 says DeepSeek-V4.1-Flash is the smallest model in the new architecture family and has native multimodal visual understanding, and that you call it by changing the model name to deepseek-flash. The same entry says the previous-generation V4 Flash and V4 Flash Vision Exp models have been retired and that the names deepseek-v4-flash and deepseek-v4-flash-vision-exp are temporarily routed to V4.1 Flash. On 2026-10-17 the model was upgraded to DeepSeek-V4.1-Flash-1017; the calling method is unchanged and deepseek-flash still reaches the latest model.

The official vision guide says deepseek-flash accepts images alongside text, and that the legacy name deepseek-v4-flash-vision-exp is still accepted but the model has been retired, so requests under that name are handled by the current Flash model. On the Models & Pricing page, deepseek-flash has a check mark for vision and deepseek-v4-pro is marked Not supported.

About the legacy name deepseek-v4-flash: the Models & Pricing page says it is still accepted and that its requests are served by DeepSeek-V4.1-Flash-1017 and billed at the Flash price, but the vision guide does not mention sending images under this name. DeepSeek's instruction is to use deepseek-flash, so put deepseek-flash in image requests instead of relying on a temporary alias.

Official sources: change log https://api-docs.deepseek.com/updates , vision guide https://api-docs.deepseek.com/guides/vision , Models & Pricing https://api-docs.deepseek.com/quick_start/pricing .

Which model ID to use for images through the OpenLux relay

Relay model IDs are not always the same as DeepSeek's official names. At the time of writing, among the DeepSeek models in the OpenLux pricing API, only deepseek-v4.1-flash has a vision tag (its full tags are chat, tools, thinking and vision), and its description says it has native multimodal visual understanding. deepseek-v4-flash, deepseek-v4-flash-0731, deepseek-v4-pro and deepseek-v4-pro-0813 have no vision tag. There is no deepseek-flash ID in the pricing API, so do not copy the official name into relay requests.

If you currently use deepseek-v4-flash and now need image input, change the model of your image requests to deepseek-v4.1-flash. This page has not verified which upstream version deepseek-v4-flash maps to behind the relay, so do not assume it can read images. The final word is the list returned by /v1/models and the model notes in the console.

In the pricing API these DeepSeek IDs list the endpoint types openai and anthropic, not openai-response. To send images through OpenLux, use the Chat Completions format with Base URL https://api.openlux.ai/v1 , or the Anthropic Messages format with Base URL https://api.openlux.ai without /v1, because the client appends /v1/messages itself. Create a key on the Tokens page of the OpenLux console: https://www.openlux.ai/console/token .

The Files API in the official vision guide (upload first, then reference by file_id) is a feature of DeepSeek's own API; this page does not cover whether the relay offers a files endpoint. Through OpenLux, send images as inline base64 or as a public image URL. This page also does not guarantee that every image field is forwarded unchanged, so test with the steps in the last section before going live. For prices, see the official pricing page.

Chat Completions format: how to put an image in the request

Per the official vision guide, in the Chat Completions format the message content must be a list of blocks rather than a single string. In the same user message, add a text block with your question and an image_url block with the image.

Option 1, inline base64: set the url of the image_url block to a data URL, for example data:image/jpeg;base64, followed by the encoded data. This suits local files; the inline data counts against the 48 MiB request body cap.

Option 2, external URL: set the url to a public http or https image address and the model downloads it. The official limits are a URL of at most 8192 characters, an image file of at most 32 MiB, and a download that must complete within 60 seconds. For longer URLs the guide recommends a base64 data URL instead (or the Files API when calling DeepSeek directly).

The image_url block also accepts a detail field. low downscales the image to 512x512 before inference, which the guide describes as faster and cheaper when fine visual detail is not important. high keeps the original image and is provided for compatibility, equivalent to original. auto is automatic selection and is currently equivalent to original.

Anthropic Messages format: how to write the image block

The official vision guide says the Anthropic format uses an image block with a source object whose type is base64, url or file.

With type base64 you must include media_type, which must be one of image/jpeg, image/png, image/gif or image/webp, and put the base64 data in the data field. With type url the URL is limited to 8192 characters. Type file requires the header anthropic-beta: files-api-2025-04-14, which belongs to the Files API on DeepSeek's own endpoint.

When you call deepseek-v4.1-flash through OpenLux from a Claude-style client or the Anthropic SDK, set the Base URL to https://api.openlux.ai without /v1. An extra /v1 produces a request to /v1/v1/messages and a 404 Invalid URL error. The official Anthropic-format address for direct DeepSeek calls is https://api.deepseek.com/anthropic .

Common causes of a 400 on image requests and how to fix them

The image is in the wrong message role. The official vision guide says images are supported in user messages only and that images in system or assistant messages return a 400 error. Move the image block into a user message. Pay special attention to code that rebuilds conversation history: images must stay in their original user turn and must not be copied into an assistant turn or the system prompt. The same guide notes that the Responses API on DeepSeek's own endpoint also allows input_image parts in developer messages and tool outputs, but the DeepSeek IDs on OpenLux do not list the Responses endpoint type.

The image format is not supported. DeepSeek supports JPEG, PNG, GIF and WebP, and detects the format from the actual file content, not from the file name or the declared MIME type. Renaming another format's file extension does not help; convert the file to one of the four formats first.

A size, count or resolution limit is exceeded. The official limits: request body up to 48 MiB; a single image sent as base64 or an external URL up to 32 MiB; up to 600 images per request; total image size per request up to 64 MiB when no file_id images are used; up to 8192 px per side, dropping to 4096 px per side when a request contains 15 or more images. If single images work but multi-image requests fail, check these totals first and send fewer or smaller images per request.

The model does not support vision. The official Models & Pricing page marks deepseek-v4-pro as not supporting vision, and the documentation does not say which error such a request returns, so do not diagnose this from the error text. The same applies on the relay: send image requests to deepseek-v4.1-flash, the ID tagged for vision.

Other 400 and 422 errors. The official error code page says 400 means an invalid request body format and 422 means invalid parameters, and in both cases you should modify the request according to the hints in the error message. Read the message in the response body before changing code. Error codes: https://api-docs.deepseek.com/quick_start/error_codes .

How images are counted in tokens

The official vision guide says each image is resized before inference: images with a total pixel count below roughly 544x544 are scaled up, and larger images are reduced until the total pixel count is roughly that of a 1300x1300 image, preserving the aspect ratio in both cases. There is an upper bound of 1024 tokens per image, and when a request contains several images each one is counted independently under the same rule. Image tokens are charged along with text tokens.

If you want to save usage and do not need fine detail, set detail to low in the image_url block so the image is first downscaled to 512x512. For unit prices, see the official pricing page; this page gives no numbers.

How to confirm image input works

Step 1, check the address and key. Send GET https://api.openlux.ai/v1/models with the header Authorization: Bearer followed by your key. A model list means the Base URL and key are correct; copy the exact model ID from it. A 401 means the key is wrong or missing.

Step 2, send one small image. Pick a JPEG or PNG well under the limits. In a user message, put a text block (for example: What is in this image?) and an image_url block with a base64 data URL, and set model to deepseek-v4.1-flash from the list in step 1. Success means a 200 response whose answer actually describes the image content.

Step 3, replay the request that failed. If your real request still returns 400, change one thing at a time: move all images into user messages, remove images from system and assistant history, convert files to one of the four supported formats, and reduce the number or size of images. When the original request returns 200 and the answer refers to the image, the problem is fixed.

Step 4, look for leftover settings. Search your code, .env files and client settings for deepseek-v4-flash-vision-exp and the model names used by image requests, and confirm that image requests now use deepseek-v4.1-flash (relay) or deepseek-flash (direct to DeepSeek).

Still stuck? Full documentation and support are at DeepSeek V4 API Proxy.

More on this site

Get started

Check the real-time pricing and account group for deepseek-v4-flash first, then complete integration validation with production-like samples

Get started for free

Official site: try it now

Last updated 2026-10-31 | Written and maintained by OpenLux.
Latency and pricing figures come from our own measurements. Where they differ from the vendor's site, the vendor's live page wins.