deepseek-v4-flash API
deepseek-v4-flash is DeepSeek's fast, budget-tier V4 chat model. On CaMeL Hub it costs $1 per 1M input tokens and $2 per 1M output tokens via the OpenAI-compatible API — point base_url to https://api.camel-hub.com/v1, keep your existing SDK code, and you are live. It supports streaming and function calling and handles a 1M-token context window.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub | $1.00 | $2.00 |
| Provider list price | $0.14 | $0.28 |
Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11
Specifications
- Provider
- DeepSeek
- Context window
- 1000000 tokens
- Max output
- 384000 tokens
- Capabilities
- streaming, function-calling
- Endpoints
- openai
What it is good for
- High-volume summarization and classification pipelines where per-request cost dominates the budget
- Customer-support and product chatbots that need fast streamed replies at predictable per-token cost
- Agent tool-calling loops: v4-flash's function calling drives multi-step agents without frontier-model pricing per iteration
- Structured data extraction — turning invoices, logs, or scraped pages into typed JSON via function-call schemas
- Long-document work that actually uses the 1M-token context: whole contracts, sizable codebases, or multi-file review in a single request
- Cheap first-pass drafting or triage in cascade setups, escalating only hard cases to a stronger model
Quickstart
OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.
cURL
curl https://api.camel-hub.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_HUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Python
from openai import OpenAI
client = OpenAI(
api_key="$CAMEL_HUB_KEY",
base_url="https://api.camel-hub.com/v1", # <-- the only change vs. the OpenAI default
)
resp = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.CAMEL_HUB_KEY,
baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});
const resp = await client.chat.completions.create({
model: "deepseek-v4-flash",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
Get an API key Browse integration guides
Frequently asked questions
How is deepseek-v4-flash billed on CaMeL Hub?
Input and output tokens are billed separately: $1 per 1M input tokens and $2 per 1M output tokens. Streaming responses are billed the same way — you pay for the tokens actually generated. There is no per-request fee and no minimum; usage is deducted from your CaMeL Hub balance.
Does deepseek-v4-flash support streaming and function calling?
Yes to both. Set stream=true in a standard OpenAI-style chat.completions request to receive tokens as they are generated, and pass tools/tool_choice to use function calling. It is a text model — it does not accept image inputs.
What are the context window and maximum output?
DeepSeek's official documentation lists a 1M-token context window and up to 384K output tokens for deepseek-v4-flash, so single requests can carry very long documents or conversation histories.
How is it different from deepseek-v4-pro?
Flash is the throughput tier: faster and cheaper, aimed at everyday chat, extraction, and agent traffic. Pro is the heavier tier for harder reasoning workloads. Both are available on CaMeL Hub under the same endpoint, so you can switch by changing only the model name.
How do I start using deepseek-v4-flash through CaMeL Hub?
Create an account at https://api.camel-hub.com/console, generate an API key, and top up a balance (Alipay, WeChat Pay, and international cards are supported). Then point any OpenAI-compatible SDK at base_url https://api.camel-hub.com/v1 and request model deepseek-v4-flash.