All models
DeepSeek

DeepSeek V4 Flash API: pricing, base URL and quick setup

Use DeepSeek V4 Flash on A2Agent with model ID deepseek-v4-flash. The catalog lists a 1M context window. Check token rates below and verify the features your app needs.

Specifications and pricing

Model IDdeepseek-v4-flash
PlatformDeepSeek
Context window1M
Tagged forchat, reasoning
Discount-40%
Input / 1M tokens$0.140$0.084
Output / 1M tokens$0.280$0.168

USD per 1M tokens. Final billing depends on your API key group and metered usage.

Cheapest way to use DeepSeek V4 Flash

The official price is $0.140 input and $0.280 output per 1M tokens. On A2Agent it is $0.084 and $0.168. A month of 10M input and 2M output tokens costs $1.96 at the official price and $1.18 on A2Agent.

Quick setup

curl https://a2agent.me/v1/chat/completions \
  -H "content-type: application/json" \
  -H "authorization: Bearer sk-your-a2agent-key" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [{"role": "user", "content": "Reply with OK"}]
  }'

Using it from a coding client

In Cline and Roo Code, track total tokens across the session, since the cost adds up across requests. Watch the output rate rather than the input one if your prompts are short and the answers run long.

How it compares within its family

These comparisons use catalog context limits, tags and reference rates, not independent quality benchmarks. Rates can change. Check current pricing above and test your workload; a higher price or a larger context window does not establish better results.

V4 Flash costs less than V4 Pro here, and price is the measured difference in this reference data. Context is 1M on both. The reasoning tag is on both. Flash lists at $0.14 per million input tokens against $0.435 for V4 Pro, and $0.28 output against $0.87. At that spread you can run a task three times on Flash for the price of one Pro call, which changes what is worth trying: sampling several answers and picking, or re-running a failed parse, stops being expensive. Neither rate establishes answer quality. Use a reviewed task set before relying on either model. Record input and output tokens separately so differences in answer length are included in the comparison.

Other models on this platform

Questions

Is Flash weaker than V4 Pro?

They share a window and a tag, and the catalog records no capability difference beyond the tier. Price is the visible split: Pro lists about three times higher on both sides.

What is the context window?

1M tokens, the same as V4 Pro.

Can I point a coding agent at it?

Yes. It is tagged for chat and reasoning rather than coding, but the 1M window covers repository-scale prompts and agents call it over the standard OpenAI endpoint.

How is it billed?

Per token, at the rate shown on this page, drawn from the same table the gateway charges against. Top up from $1, with no top-up fee.

Billed per token. Top up from $1, no top-up fee.