DeepSeek V4 Flash
Run DeepSeek V4 Flash by DeepSeek on Inference.net through a serverless, OpenAI-compatible API at $0.23 per 1M input tokens and $0.62 per 1M output tokens. Built on a Mixture-of-Experts architecture with a 1M-token context window with tool calling and structured outputs support, it streams low-latency responses with Zero Data Retention enabled by default.
- Developed by
- DeepSeek
- Model family
- DeepSeek V4 Flash
- Size
- Not disclosed
- Architecture
- Mixture-of-Experts
- Context window
- 1M tokens
- Max output
- 384K tokens
- License
- MIT
DeepSeek V4 Flash is a tool-calling model from DeepSeek built on a Mixture-of-Experts architecture, available through the Inference.net serverless API. Use the same OpenAI-compatible request shape across the catalog and switch models by changing a single identifier.
The API supports streaming responses and project-scoped credentials. Usage, token volume, and spend appear in the dashboard automatically, so the model can move from evaluation to production without a second integration path.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://api.inference.net/v1',
apiKey: process.env.INFERENCE_API_KEY,
})
const completion = await client.chat.completions.create({
model: 'deepseek-v4-flash',
messages: [{ role: 'user', content: 'Hello' }],
})import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.inference.net/v1",
api_key=os.environ["INFERENCE_API_KEY"],
)
completion = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello"}],
)curl https://api.inference.net/v1/chat/completions \
-H "Authorization: Bearer $INFERENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [
{ "role": "user", "content": "Hello" }
]
}'PRICING & TOKEN RATES
USD per 1M tokens| Token type | Rate (per 1M) | Details |
|---|---|---|
| Input | $0.23 | Standard prompt tokens |
| Cache read | $0.003 | 99% savings vs. standard input |
| Output | $0.62 | Generated completion tokens |
| Reasoning | $0.62 | Reasoning / thinking output tokens |
SPECIFICATIONS & CAPABILITIES
deepseek-v4-flash| Specification | Value |
|---|---|
| Maker | DeepSeek |
| Architecture | Mixture-of-Experts |
| Parameters | Not disclosed |
| Quantization | Native / Unspecified |
| Context window | 1M tokens (1,000,000) |
| Max output | 384K tokens (384,000) |
| Input modalities | Text |
| Output modalities | Text |
| Tool calling | Supported |
| Structured outputs | Supported |
| JSON object mode | Supported |
| Logprobs | Not specified |
| Reasoning efforts | Not supported |
| Supported wire endpoints | /v1/chat/completions/v1/responses/v1/messages |
| Data residency | Global (api.inference.net) |
| License | MIT |
| Artificial Analysis Intelligence Index | 40 (captured Jul 31, 2026) |
| Hugging Face repository | deepseek-ai/DeepSeek-V4-Flash |
| Release date | Apr 24, 2026 |
- Cache pricing may appear for this model, but the route does not currently expose reliable cache accounting. Do not plan around cached-token pricing for this model.
Claude Code
Native Anthropic /v1/messages. Six model slots for every Claude Code workload.
fast claude onCodex
OpenAI-compatible Responses API with a reversible Codex configuration.
fast codex onGrok
Chat completions with a catalog-backed section for each supported alias.
fast grok onOpenCode
Chat completions with Inference.net models registered as an OpenCode provider.
fast opencode onPi
Chat completions with model and provider settings written for Pi Agent.
fast pi onHermes
Hermes provider configuration is documented while its CLI adapter is in preview.
CLI adapter in previewOpenClaw
OpenClaw provider routing is documented while its CLI adapter is in preview.
CLI adapter in previewFx
Fx gateway configuration is documented while its CLI adapter is in preview.
CLI adapter in previewCursor
Cursor base URL routing is documented while its CLI adapter is in preview.
CLI adapter in previewFrequently asked questions about DeepSeek V4 Flash
On Inference.net, DeepSeek V4 Flash is priced at $0.23 per 1M input tokens and $0.62 per 1M output tokens. Cached input reads are $0.003 per 1M tokens (99% less than standard input). This route does not currently expose reliable cached-token accounting, so plan budgets around standard input token pricing.
DeepSeek V4 Flash supports a 1M tokens (1,000,000) input context window and up to 384K tokens (384,000) output tokens per request. It accepts text input and produces text output.
DeepSeek V4 Flash supports tool calling, structured outputs (JSON Schema), and JSON object mode. It is callable over /v1/chat/completions, /v1/responses, and /v1/messages on Inference.net.
Yes. Zero Data Retention (ZDR) is enabled by default for new accounts on Inference.net, so prompts and outputs sent to DeepSeek V4 Flash are not retained after processing. Inference.net is SOC 2 Type 2 compliant; see our ZDR policy for full details. Requests are served via the global api.inference.net endpoint.
Yes. Point the official OpenAI TypeScript or Python SDK (or any OpenAI-compatible coding agent) to https://api.inference.net/v1 with your Inference.net API key and set model to "deepseek-v4-flash".
Start building with DeepSeek V4 Flash today
Serverless, OpenAI-compatible, and billed per token. No commitments.