Introduction
The DeepSeek V4 Flash API suits text queues where a large source needs a focused answer, such as repository triage or clause extraction. This V4 Flash listing accepts text across up to 256 messages; convert document contents to text before submitting them, because image_url and file parts are outside its schema.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional |
|
| Input context | 1,048,576 tokens |
| Maximum output | 65,536 tokens (default 32,768) |
| Response | DeepSeek V4 Flash — chat.completion / SSE |
| Settlement | Flash usage is settled separately for input, cached input and output tokens; shortening the extraction result reduces generated usage rather than changing the unit rate. |
Key features & highlights
Text queues with focused results
For V4 Flash, reasoning_effort accepts none, low and high, with high as the default; none disables thinking, while low is an option for an initial classification pass.
Read together, return a finding
Use Flash’s 1,048,576-token input allowance to compare related files together, then request a bounded finding list within its 65,536-token reply ceiling.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | This V4 Flash listing accepts text across up to 256 messages; convert document contents to text before submitting them, because |
reasoning_effort | No | For V4 Flash, |
stop | No | For Flash clause extraction, stop accepts up to four sequences; a match ends the reply and is omitted, with no default sequence or rate change. at least 1 characters · at least 1 items · at most 4 items |
max_tokens | No | On V4 Flash, |
tools | No | A Flash extraction workflow can declare up to 128 functions and use |
tool_choice | No | For DeepSeek V4 Flash, |
response_format | No | Flash can extract named clauses with |
Pricing
Input $0.44 / Output $1.32 per 1 million tokens
Use cases
Traceable repository triage
For repository triage with V4 Flash, include the relevant handlers and migrations and require each suspected defect to cite the evidence that supports it.
Clause tables from source text
Flash can extract named clauses with response_format set to json_object; validate the returned fields before importing them into a table.
Application-run extraction tools
A Flash extraction workflow can declare up to 128 functions and use tool_choice to select a permitted call; your application executes the function and returns its result.
Recheck uncertain records
Review Flash’s low-effort extraction before retrying uncertain records at high; a different effort setting does not make an unchecked answer reliable.
Prompt guide & pro tips
Read together, return a finding
Arrange Flash’s source documents in messages with stable identifiers and put the desired columns in the system instruction so extracted clauses remain traceable.
Make one OpenAI-shaped call
POST https://api.spicyapi.ai/v1/chat/completions with {"model": "deepseek/v4-flash", "messages": [{"role": "system", "content": "You review Go services. For V4 Flash triage, list suspected defects with file evidence."}, {"role": "user", "content": ""}], "
reasoning_effort": "high", "max_tokens": 8000}For a live Flash review, stream: true delivers chat.completion.chunk events until data: [DONE], so your interface can display findings progressively.
Recheck uncertain records
Review Flash’s low-effort extraction before retrying uncertain records at high; a different effort setting does not make an unchecked answer reliable.
The DeepSeek V4 Flash API suits text queues where a large source needs a focused answer, such as repository triage or clause extraction.
Text queues with focused results
For V4 Flash, reasoning_effort accepts none, low and high, with high as the default; none disables thinking, while low is an option for an initial classification pass.
Read together, return a finding
Use Flash’s 1,048,576-token input allowance to compare related files together, then request a bounded finding list within its 65,536-token reply ceiling.
Arrange Flash’s source documents in messages with stable identifiers and put the desired columns in the system instruction so extracted clauses remain traceable.
Traceable repository triage
For repository triage with V4 Flash, include the relevant handlers and migrations and require each suspected defect to cite the evidence that supports it.
Clause tables from source text
Flash can extract named clauses with response_format set to json_object; validate the returned fields before importing them into a table.
Application-run extraction tools
A Flash extraction workflow can declare up to 128 functions and use tool_choice to select a permitted call; your application executes the function and returns its result.
Recheck uncertain records
Review Flash’s low-effort extraction before retrying uncertain records at high; a different effort setting does not make an unchecked answer reliable.
On V4 Flash, max_tokens defaults to 32,768 and cannot exceed 65,536; allow for reasoning as well as the visible finding list.
POST https://api.spicyapi.ai/v1/chat/completions with {"model": "deepseek/v4-flash", "messages": [{"role": "system", "content": "You review Go services. For V4 Flash triage, list suspected defects with file evidence."}, {"role": "user", "content": ""}], "reasoning_effort": "high", "max_tokens": 8000}
For a live Flash review, stream: true delivers chat.completion.chunk events until data: [DONE], so your interface can display findings progressively.
This V4 Flash listing accepts text across up to 256 messages; convert document contents to text before submitting them, because image_url and file parts are outside its schema.
V4 Flash is an earlier generation: DeepSeek now serves V4.1 Flash under its legacy Flash names, while this SpicyAPI listing retains the capabilities declared here.
V4 Flash has no additional SpicyAPI content filter, but the model may still decline an NSFW request; its unrestricted listing does not guarantee every answer.
Flash usage is settled separately for input, cached input and output tokens; shortening the extraction result reduces generated usage rather than changing the unit rate.
V4 Flash has no additional SpicyAPI content filter, but the model may still decline an NSFW request; its unrestricted listing does not guarantee every answer. Use authorized source material with DeepSeek V4 Flash, respect privacy and review the result before relying on it.
Use authorized source material with DeepSeek V4 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-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.










