DeepSeek V4 Flash 0731:batch API pricing
DeepSeek V4 Flash 0731:batch is a language model from DeepSeek with a 1M-token context window. On FastInfra it costs $0.05 per million input tokens and $0.16 per million output tokens, billed per token from prepaid credit with no subscription. It supports tool calling, structured JSON output and adjustable reasoning. It was released in July 2026. Call it as "deepseek/deepseek-v4-flash-0731:batch" from any OpenAI SDK by changing the base URL and API key.
This is the asynchronous batch rate for DeepSeek V4 Flash 0731. See that page for specs, standard pricing and code samples.
Prices synced December 1, 2026 · Model ID deepseek/deepseek-v4-flash-0731:batch
DeepSeek V4 Flash 0731:batch specs and pricing
DeepSeek V4 Flash 0731:batch API pricing per token
You pay for prompt tokens at the input rate and generated tokens at the output rate. No subscription, seat fee or minimum — credit never expires.
| Rate | Input / 1M tokens | Output / 1M tokens | Input / 1K tokens |
|---|---|---|---|
| Standard (real-time) | $0.05 | $0.16 | $0.000052 |
Typical list price for DeepSeek V4 Flash 0731:batch is $0.0456 input and $0.27 output per 1M tokens. At a 3:1 input-to-output mix, FastInfra is about 23% cheaper for the same model.
What DeepSeek V4 Flash 0731:batch costs in practice
Worked examples at the standard rate above. Real token counts depend on your prompts.
| Workload | Tokens | Cost |
|---|---|---|
| 1,000 chatbot replies | 1,500 input + 400 output tokens each | $0.14 |
| Summarise a 100-page report | ≈60,000 input + 1,500 output tokens | $0.0033 |
| RAG answers over your docs, 10,000 queries | 4,000 input + 300 output tokens each | $2.54 |
| Coding-agent session | ≈250,000 input + 25,000 output tokens | $0.02 |
| 1M input + 1M output tokens | the per-million list rates combined | $0.21 |
DeepSeek V4 Flash 0731:batch cost calculator
Enter your traffic to estimate daily and monthly spend at the live FastInfra rate.
Run DeepSeek V4 Flash 0731:batch on your own GPU
Same model, same OpenAI-compatible API, on a pod only you use. The configurator opens pre-filled with the vLLM image and command; the pod is billed per minute while it exists.
vllm/vllm-openai:latest
--model deepseek/deepseek-v4-flash-0731 --host 0.0.0.0 --port 8000 --served-model-name deepseek/deepseek-v4-flash-0731 --max-model-len 32768 --gpu-memory-utilization 0.90 --tensor-parallel-size 2
The pod serves deepseek/deepseek-v4-flash-0731 on port 8000 behind a VLLM_API_KEY generated for you in the pod's environment. Weights download from Hugging Face on first start, so the first boot takes a few minutes; gated repos need an HF_TOKEN in the environment variables. GPU sizing uses 80% of VRAM for weights and the rest for KV cache; long contexts or big batches need a larger tier.
How to call the DeepSeek V4 Flash 0731:batch API
Works with the official OpenAI SDKs — change the base URL and API key only. One key covers every model on FastInfra.
| Field | Value |
|---|---|
| Model ID | deepseek/deepseek-v4-flash-0731:batch |
| Capability | Chat |
| Base URL | https://api.fastinfra.ai/v1 |
| Primary endpoint | POST https://api.fastinfra.ai/v1/chat/completions |
| Auth | Authorization: Bearer YOUR_API_KEY |
| OpenAI Chat SDK | Yes — set base_url to the Base URL |
| Validate model id | GET https://api.fastinfra.ai/v1/models/deepseek/deepseek-v4-flash-0731:batch |
| Docs | Integration reference |
Point the OpenAI SDK at the Base URL above with your FastInfra API key.
Python
from openai import OpenAI
client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.fastinfra.ai/v1")
stream = client.chat.completions.create(
model="deepseek/deepseek-v4-flash-0731:batch",
messages=[{"role": "user", "content": "Explain vector databases in two sentences."}],
stream=True,
)
for chunk in stream:
print(chunk.choices[0].delta.content or "", end="")
Node.js
import OpenAI from "openai";
const client = new OpenAI({ apiKey: process.env.FASTINFRA_API_KEY, baseURL: "https://api.fastinfra.ai/v1" });
const response = await client.chat.completions.create({
model: "deepseek/deepseek-v4-flash-0731:batch",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);
curl
curl https://api.fastinfra.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-flash-0731:batch",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Served over 1 independent route. Requests go to the lowest-cost healthy route and fail over automatically if one is unavailable. Live latency and uptime are on the status page.
DeepSeek V4 Flash 0731:batch vs alternatives
Live FastInfra prices per 1M tokens. Every model uses the same API key, so switching is a one-line change.
| Model | Input | Output | Context | |
|---|---|---|---|---|
| DeepSeek V4 Flash 0731:batch (this page) | $0.05 | $0.16 | 1M | |
| Claude Opus 5 | $5.00 | $25.00 | 1M | Compare |
| Claude Sonnet 5 | $2.00 | $10.00 | 1M | Compare |
| Claude Haiku 5.5 | $0.10 | $0.50 | 1M | Compare |
| Claude Fable 5.1 | $10.00 | $50.00 | 1M | Compare |
| GPT-5.5 | $5.00 | $30.00 | 1.05M | Compare |
| DeepSeek V4 1 Flash 1017 | $0.02 | $0.22 | 1M | Compare |
| DeepSeek V4 Flash | $0.10 | $0.19 | 1M | Compare |
DeepSeek V4 Flash 0731:batch API — frequently asked questions
How much does the DeepSeek V4 Flash 0731:batch API cost?
On FastInfra, DeepSeek V4 Flash 0731:batch (deepseek/deepseek-v4-flash-0731:batch) costs $0.0518/1M input, $0.1555/1M output tokens. Billing is per token used from prepaid credit, with no subscription or minimum spend. That is about 23% below the typical market list price for the same model.
What is the DeepSeek V4 Flash 0731:batch context window?
DeepSeek V4 Flash 0731:batch accepts up to 1,048,576 tokens of context (about 1M) and can generate up to 943,718 output tokens per response. Prompt and response tokens share that window.
Is DeepSeek V4 Flash 0731:batch compatible with the OpenAI SDK?
Yes. Point the OpenAI Python or Node SDK at https://api.fastinfra.ai/v1, use a FastInfra API key and set model to "deepseek/deepseek-v4-flash-0731:batch". Chat completions, streaming, tool calling and JSON structured output use the same request shape.
Does DeepSeek V4 Flash 0731:batch support tool calling and vision?
DeepSeek V4 Flash 0731:batch supports tool (function) calling, JSON structured output and configurable reasoning. It accepts text input only.
Start using DeepSeek V4 Flash 0731:batch today
Create an account, add credit from $5 and make your first DeepSeek V4 Flash 0731:batch request in under five minutes. Compare every model on the pricing page.