DeepSeek-v4-flash-vision-exp
TL;DR Highlight
deepseek-flash now accepts images, with a 1024-token cap per image
Who Should Read
A backend developer using text-only DeepSeek API for code or agents who now needs screenshot, chart, or OCR input
Core Mechanics
- deepseek-flash accepts images
- You can pair images with text to describe pictures, read screenshot text, and analyze charts.
- The old name deepseek-v4-flash-vision-exp is retired, and its requests are served by the latest Flash model.
- Three ways to send an image
- Choose a base64 data URL, an external http(s) URL, or a Files API file_id.
- It uses the OpenAI-compatible Chat Completions format with content as an array of blocks.
- Image token cap is 1024
- Images under about 544×544 are scaled up, and larger ones are scaled down to about 1300×1300, keeping aspect ratio.
- So a 2000×2000 and a 5000×5000 image use the same tokens.
- The detail field controls resolution
- low downscales to 512×512 for faster, cheaper calls.
- high, original, and auto all currently keep the original.
- Limits are specific
- Request body is 48 MiB, a single inline or URL image is 32 MiB, and a Files API image is 64 MiB.
- Up to 600 images per request, with 8192px per side (4096px with 15+ images).
- Images only in user messages
- Images in system or assistant messages return a 400 error.
- The Anthropic-compatible /messages endpoint and the Responses API work the same way.
Community Reactions
- Hope for screenshot analysis
- One commenter said not viewing Playwright screenshots precisely was the one thing they missed from Sonnet.
- Another said agent use is limited since tool results cannot carry images.
- Accuracy still looks weak
- On a clock image whose answer is 08:09:25, DeepSeek said 5:10:45 while Qwen3.8 27B said 8:10:25, per one commenter.
- On a 12-image landmark test, ByteDance seed 2.1 turbo got 11 and DeepSeek got 6, per one commenter.
- Resolution seen as too low
- One commenter said about 800×800 is too low for OCR of a full A4 page.
- Another said around 1080p is needed to read small text.
- Earlier version misbehaved with images
- A commenter said version 0731 assumed it had vision and tried to invent image analysis tools.
- Another had to tell it not to view screenshots because it kept breaking sessions.
- Workaround setup shared
- One commenter built a vision worker plugin that routes image input to Kimi K2.6 on Cloudflare.
How to Apply
- Send one image to the API
- Today, set base_url to https://api.deepseek.com and model to deepseek-flash, then send a screenshot.
- Check accuracy on your usual OCR or chart samples first.
- Use detail low where cost matters
- Set detail to low in image_url for classification or simple description requests.
- Compare tokens and answer quality against original on the same image.
- Use the Files API for repeated images
- Upload once and put the file_id in a file block when reusing an image across requests.
- Send images over 32 MiB or requests over 48 MiB this way.
- Test OCR and agents against alternatives
- Crop or tile full-page documents to check for resolution loss.
- If you need images in tool results, first check Responses API support for function_call_output images.
Try It
# Run in a terminal (needs pip install openai; change only the image path and API key)
import base64
from openai import OpenAI
client = OpenAI(api_key="{{DeepSeek API Key}}", base_url="https://api.deepseek.com")
with open("{{image.jpg}}", "rb") as f:
b64 = base64.b64encode(f.read()).decode("utf-8")
for detail in ["low", "original"]:
r = client.chat.completions.create(
model="deepseek-flash",
messages=[{"role": "user", "content": [
{"type": "text", "text": "{{question}}"},
{"type": "image_url", "image_url": {"url": f"data:image/jpeg;base64,{b64}", "detail": detail}},
]}],
)
print(detail, r.usage.prompt_tokens)
print(r.choices[0].message.content)
# Next: compare token counts and answers between low and original on the same image.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls