deepseek-v4-flash API

streamingfunction-calling

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 tokensper 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
deepseek-v4-flash is the speed-and-throughput tier of DeepSeek's V4 generation. DeepSeek's own API docs position it as the successor to the long-running deepseek-chat line (the legacy deepseek-chat and deepseek-reasoner names are being retired in favor of the V4 models), and give it a 1M-token context window with up to 384K output tokens — an unusually large window for a model in this price class. If you have pipelines built around earlier DeepSeek chat models, this is the natural drop-in upgrade. On CaMeL Hub the model is billed purely per token at $1 per 1M input and $2 per 1M output, with no subscription required — top up a wallet balance and pay only for what you send. You call it through the same OpenAI-compatible endpoint as every other model on the platform: set base_url to https://api.camel-hub.com/v1 in the official OpenAI SDK (Python, Node.js, or any compatible client), pass your CaMeL Hub API key, and request the model name deepseek-v4-flash. Switching between it and a GPT, Claude, or Gemini model is a one-line model-name change. In practice v4-flash behaves like a workhorse: it streams tokens quickly, follows structured instructions reliably, and its function-calling support makes it a solid engine for agent loops and structured-extraction jobs where you would rather not pay frontier-model rates per iteration. For tasks that need deeper multi-step reasoning, DeepSeek offers the heavier deepseek-v4-pro tier — also available on CaMeL Hub — but for the bulk of everyday chat, summarization, and tool-calling traffic, flash is the cost-effective default.

What it is good for

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.

More from DeepSeek

DeepSeek

deepseek-v3

Compare with other models