deepseek-v4-flash

Input price
$0.12/1M tokens
Output price
$0.48/1M tokens
Context window
1M
Modalities
Text → Text

Pricing

API call price20% OFF

Input

$0.12

Output

$0.48

Cache write

Cache read

$0.0024

Time-based pricing

Times shown in UTC+08:00

Weekdays09:00 – 12:00
×2
Weekdays14:00 – 18:00
×2

Times not listed run at the regular price.

Actual price = table price × the rate of the period the request completes in.

All prices are per million tokens and already include the discount shown above.

These public prices exclude group discounts. Your billed price may be lower based on your group.



Integration & capabilities

Supported protocols

Compatible formatAnthropic
Routes
POST /v1/messages
POST /v1/messages/count_tokens
FeaturesStreaming · Prompt caching · Function calling · System messages
Request parametersmodel, messages, system, tools, stream, metadata

cURL Example

curl -X POST https://api.openmodel.ai/v1/messages \
  -H "Content-Type: application/json" \
  -H "x-api-key: $API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
    "model": "deepseek-v4-flash",
    "max_tokens": 1024,
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Supported capabilities

Function Calling
Function calling (also known as tool calling) provides a powerful and flexible way for models to interface with external systems and access data outside their training data.
Parallel Function Calling
The model may choose to call multiple functions in a single turn.
Tool Choice
By default the model will determine when and how many tools to use. You can force specific behavior with the tool_choice parameter.
Structured Outputs
Ensures the model will always generate responses that adhere to your supplied JSON Schema.
Streaming
Lets you start printing or processing the beginning of the model's output while it continues generating the full response.
System Messages
You can guide the behavior of the model with system instructions.
Prompt Caching
Optimizes API usage by allowing resuming from specific prefixes in your prompts. This significantly reduces processing time and costs for repetitive tasks or prompts with consistent elements.

Context & limits

Context window

1M

Max output tokens

384K