Introduction
The DeepSeek V4.1 Flash API combines text and image understanding for screenshot analysis, visual evidence review and structured reports. V4.1 Flash accepts text and image_url parts in up to 256 messages; this package does not declare PDF, audio or video input parts.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional |
|
| Input context | 1,048,576 tokens |
| Maximum output | 384,000 tokens (default 32,768) |
| Response | DeepSeek V4.1 Flash — chat.completion / SSE |
| Settlement | For V4.1 Flash, input, cached input and output are metered separately; include both the image request and the expected report length in your cost estimate. |
Key features & highlights
Visual evidence in one conversation
The V4.1 Flash schema offers none, low and high, defaulting to high; none disables reasoning, and low can be used for an initial image inventory.
Screenshots alongside specifications
V4.1 Flash can compare a screenshot with its accompanying specification in one conversation, using the image as evidence for a text answer.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | V4.1 Flash accepts text and |
reasoning_effort | No | The V4.1 Flash schema offers none, low and high, defaulting to high; none disables reasoning, and low can be used for an initial image inventory. |
stop | No | For V4.1 Flash image reports, up to four stop sequences can end the text early; the match is omitted and the token rate stays unchanged. at least 1 characters · at least 1 items · at most 4 items |
max_tokens | No | V4.1 Flash defaults |
tools | No | For a V4.1 Flash assistant, declare up to 128 tools and return each function’s result in the conversation; tool declarations alone do not execute actions. at most 128 items |
tool_choice | No | For DeepSeek V4.1 Flash, |
response_format | No | Set |
Pricing
Input $0.30 / Output $1.20 per 1 million tokens
Use cases
Locate the supporting image region
Ask V4.1 Flash to identify the screenshot region supporting each observation and separate visible details from assumptions about behaviour.
Image observations as JSON
Set response_format to json_object when V4.1 Flash should turn visible observations into named fields, and verify uncertain readings against the source image.
Tools around visual analysis
For a V4.1 Flash assistant, declare up to 128 tools and return each function’s result in the conversation; tool declarations alone do not execute actions.
Investigate ambiguous details
Use a second V4.1 Flash pass to investigate ambiguous image details, keeping the source image available instead of relying only on the first report.
Prompt guide & pro tips
Screenshots alongside specifications
Place the image and its textual question together in messages, and identify each screenshot when V4.1 Flash is comparing several states.
Make one OpenAI-shaped call
POST https://api.spicyapi.ai/v1/chat/completions with {"model": "deepseek/v4.1-flash", "messages": [{"role": "system", "content": "You review Go services. For V4.1 Flash, connect each observation to its source evidence."}, {"role": "user", "content": ""}], "
reasoning_effort": "high", "max_tokens": 8000}Stream a V4.1 Flash image report through chat.completion.chunk events until data: [DONE]; the stream contains the textual analysis, not a generated picture.
Investigate ambiguous details
Use a second V4.1 Flash pass to investigate ambiguous image details, keeping the source image available instead of relying only on the first report.
The DeepSeek V4.1 Flash API combines text and image understanding for screenshot analysis, visual evidence review and structured reports.
Visual evidence in one conversation
The V4.1 Flash schema offers none, low and high, defaulting to high; none disables reasoning, and low can be used for an initial image inventory.
Screenshots alongside specifications
V4.1 Flash can compare a screenshot with its accompanying specification in one conversation, using the image as evidence for a text answer.
Place the image and its textual question together in messages, and identify each screenshot when V4.1 Flash is comparing several states.
Locate the supporting image region
Ask V4.1 Flash to identify the screenshot region supporting each observation and separate visible details from assumptions about behaviour.
Image observations as JSON
Set response_format to json_object when V4.1 Flash should turn visible observations into named fields, and verify uncertain readings against the source image.
Tools around visual analysis
For a V4.1 Flash assistant, declare up to 128 tools and return each function’s result in the conversation; tool declarations alone do not execute actions.
Investigate ambiguous details
Use a second V4.1 Flash pass to investigate ambiguous image details, keeping the source image available instead of relying only on the first report.
V4.1 Flash defaults max_tokens to 32,768 and allows up to 384,000; the budget must cover reasoning plus the written image analysis.
POST https://api.spicyapi.ai/v1/chat/completions with {"model": "deepseek/v4.1-flash", "messages": [{"role": "system", "content": "You review Go services. For V4.1 Flash, connect each observation to its source evidence."}, {"role": "user", "content": ""}], "reasoning_effort": "high", "max_tokens": 8000}
Stream a V4.1 Flash image report through chat.completion.chunk events until data: [DONE]; the stream contains the textual analysis, not a generated picture.
V4.1 Flash accepts text and image_url parts in up to 256 messages; this package does not declare PDF, audio or video input parts.
DeepSeek introduced V4.1 Flash with native visual understanding, unlike the text-only V4 Flash listing; availability of a particular dated update must be checked separately.
SpicyAPI adds no separate content filter to V4.1 Flash, while the model may refuse an NSFW analysis; visual input support is not a promise of unrestricted answers.
For V4.1 Flash, input, cached input and output are metered separately; include both the image request and the expected report length in your cost estimate.
SpicyAPI adds no separate content filter to V4.1 Flash, while the model may refuse an NSFW analysis; visual input support is not a promise of unrestricted answers. Use authorized source material with DeepSeek V4.1 Flash, respect privacy and review the result before relying on it.
Use authorized source material with DeepSeek V4.1 Flash, respect privacy and review the result before relying on it.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "deepseek/v4.1-flash/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.








