GPT Image 2.5 is live — OpenAI's newest image model, targeted edits that leave the rest of the frame alone

DeepSeek V4 API — Flash & Pro, 1M Context

The DeepSeek V4 API ships two open-weight models on one unified endpoint — Flash for fast, low-cost everyday work and Pro for frontier reasoning, agentic coding, and STEM. Both bring a 1M-token context window, 384K max output, thinking mode on by default, vision input, tool use, and context caching. Pay-as-you-go from your reAPI balance.

Highlights
Open-weights flagship · penalty controls
Best for
Cost-efficient reasoning, coding
Input
Chat messages (OpenAI-compatible)
Output
Text, streaming optional

Pricing

Credit-based — 1 credit = $0.001 USD. Pay only for completed generations.

Pricing by group · deepseek-v4-flash

Pricing by group
deepseek
deepseek-v4-flash
Default0.6×
Input$0.18
Output$0.72
Cache read$0.0036
Cache write$0.18

USD per 1M tokens. Tool charges may apply.

Pricing by group · deepseek-v4-pro

Pricing by group
deepseek
deepseek-v4-pro
Default0.6×
Input$0.792
Output$2.376
Cache read$0.0264
Cache write$0.792

USD per 1M tokens. Tool charges may apply.

What is the DeepSeek V4 API?

DeepSeek V4 is DeepSeek's latest open-weight model generation, served on reAPI through one OpenAI-compatible /api/v1/chat/completions endpoint that carries two variants: deepseek-v4-flash (284B total / 13B active MoE) for fast, low-cost everyday work, and deepseek-v4-pro (1.6T total / 49B active MoE) for frontier reasoning and agentic coding. Both read a 1M-token context window, return up to 384K tokens per call, think before answering by default, and accept vision input, tool calls and context caching. Billing is per 1M tokens, with input and output priced separately and a lower rate for cached input.

What you can build with this model

Real-world workflows and production use cases you can build and ship with this model.

DeepSeek V4 Pro driving a long-horizon agentic coding session

Long-horizon agentic coding with DeepSeek V4 Pro

DeepSeek V4 Pro is the flagship of the DeepSeek V4 API — a 1.6T-parameter mixture-of-experts model (49B active) tuned for agentic coding, complex reasoning, and STEM. DeepSeek reports open-source state-of-the-art results on agentic coding benchmarks, and V4 is integrated with agent harnesses like Claude Code, OpenClaw, and OpenCode. Point a coding agent at the DeepSeek V4 API and it scopes the task, calls tools, and reasons through multi-step work in one run.

Read the API docs
DeepSeek V4 Flash powering high-throughput coding and batch jobs

High-throughput, low-cost work with DeepSeek V4 Flash

DeepSeek V4 Flash is the fast lane of the DeepSeek V4 API — 284B parameters (13B active) whose reasoning closely approaches Pro at a fraction of the cost. Use the DeepSeek V4 API for in-IDE autocomplete, inline suggestions, CI-stage code review, bulk summarization, and chat backends. Context caching trims repeated system prompts and tool schemas to the low cache-hit rate, so agent loops and high-volume traffic stay cheap.

DeepSeek V4 reasoning across a million-token analysis pack

Million-token codebase and document analysis

Both DeepSeek V4 API models default to a 1M-token context window — enough to load a whole mid-size repository, a long research pack, or a multi-turn agent trace in a single call. DeepSeek Sparse Attention keeps long-context inference efficient, so DeepSeek V4 API workloads like architecture review, dependency audits, and migration planning rarely need chunking.

Why reAPI for DeepSeek V4

Drop-in access — plus an Anthropic surface

The DeepSeek V4 API speaks OpenAI Chat Completions verbatim. Moving an existing OpenAI integration to the DeepSeek V4 API is a base URL, an API key, and a model-string change — `deepseek-v4-flash` or `deepseek-v4-pro` — not a platform rewrite. The same `messages` array, the same streaming format, and a native Anthropic-style surface for SDK callers that prefer it.

Frontier reasoning at value pricing

The DeepSeek V4 API is open-weight and priced to match. Pro rivals top closed-source models on reasoning, math, and coding while costing a fraction of them per token; Flash drops the price by another order of magnitude for everyday traffic. Run premium work on Pro and route high-volume calls to Flash on the same key.

One key across DeepSeek, GPT, Claude, and Gemini

A single reAPI key unlocks the DeepSeek V4 API alongside GPT-5.5, Claude Opus 4.8, Gemini, and every other frontier chat model on the platform. Compare vendors, add fallbacks, and route traffic per call with a configuration change instead of an integration project.

DeepSeek V4 vs DeepSeek V3.2

The DeepSeek V4 API is a generational jump over V3.2 — a bigger context window, two model tiers, thinking on by default, vision, and agent-focused tuning. Here is what changed between the two.

Capability
DeepSeek V4 API on reAPI
DeepSeek V3.2
Model lineup
Two variants — Flash (284B / 13B active) and Pro (1.6T / 49B active) — on the same API key.
A single chat / reasoner model line.
Context window
1M tokens by default, with DeepSeek Sparse Attention for efficient long context.
128K-token context window.
Max output
Up to 384K output tokens per response.
Substantially smaller output cap.
Thinking mode
On by default, with a dual thinking / non-thinking switch and chain-of-thought in `reasoning_content`.
Reasoning available through a separate reasoner model.
Vision input
Image input supported (beta) on the same endpoint.
Text-only.
Agentic tuning
Dedicated agent optimizations; integrated with leading coding-agent harnesses; open-source SOTA on agentic coding per DeepSeek.
Capable general model without V4's agent-specific tuning.

Comparison reflects publicly documented behavior from DeepSeek's V4 release notes and model documentation at the time of writing. Some benchmark claims are vendor-reported. Model behavior and pricing can change; check the pricing card above and the API docs for current values.

Ship the DeepSeek V4 API in three steps

  1. step 01

    Create a reAPI API key

    Sign in to reAPI and create a key under API keys. That one key reaches DeepSeek V4 Flash and Pro and every other model on the platform, billed from a single balance.

    Open
  2. step 02

    Send your first request

    POST https://api.reapi.ai/v1/chat/completions with `model` set to `deepseek-v4-flash` (or `deepseek-v4-pro`), your `messages` array, and `max_tokens`. The DeepSeek V4 API endpoint uses the standard chat-completions format, including streamed responses; switch models with a one-line change.

    Open
  3. step 03

    Tune for cost and reasoning

    Across the DeepSeek V4 API, reach for Flash on latency-sensitive, high-throughput work and Pro when a task needs deep reasoning. Reuse stable system prompts to hit the low cache-read rate, and toggle thinking mode off for the fastest, cheapest replies.

    Open
docs/api/deepseek-v4

API reference

Drop-in code and the full parameter table.

curl https://api.reapi.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-flash",
    "messages": [
      { "role": "user", "content": "Hello" }
    ],
    "stream": true,
    "max_tokens": 4096,
    "temperature": 0.7
  }'

Parameter validation failed

Rejected synchronously with the failing field named. Check enum values, ranges, and URL fields — nothing is charged.

Authentication or balance issue

401 means a missing or invalid Bearer key; 402 means the reserve exceeds your balance. Manage keys and credits in the console.

Content or material rejected

Reference material and outputs pass automated moderation. Rejected tasks fail with a clear error and a full refund.

Task failed or timed out

A task that reaches a failed state is never charged — the reserve refunds automatically. Keep the task id and retry when ready.

Frequently asked questions

Common questions about this model.

The DeepSeek V4 API is billed pay-as-you-go from your reAPI balance. The pricing card on this page shows the live per-1M-token input and output rates for both Flash and Pro, plus the cache-hit rate. Cache hits are dramatically cheaper than re-sending the same tokens, and failed requests are not charged.

Both are part of the DeepSeek V4 API and share a 1M context window, 384K max output, thinking mode, and tool use. Flash (284B / 13B active) is the fast, low-cost default for autocomplete, batch analysis, and chat backends; Pro (1.6T / 49B active) is the flagship for deep reasoning, complex debugging, and agentic coding. They share one DeepSeek V4 API key — mix them per request.

Yes. The DeepSeek V4 API is a drop-in for OpenAI's /api/v1/chat/completions — same request shape, same `messages` array, same `stream` / `temperature` / `max_tokens` parameters, same SSE wire format. Most teams migrate by changing the base URL to https://api.reapi.ai/v1, swapping the API key, and setting `model` to `deepseek-v4-flash` or `deepseek-v4-pro`.

Both DeepSeek V4 API models default to a 1M-token context window and support up to 384K output tokens per response. DeepSeek Sparse Attention keeps long-context inference efficient, so you can feed entire repositories and long documents without chunking.

DeepSeek V4 runs in thinking mode by default: it produces a chain of thought before the final answer and returns it in a `reasoning_content` field alongside `content`. For latency-sensitive or simple calls you can switch to non-thinking mode for faster, cheaper responses — the model id stays the same.

Yes. The DeepSeek V4 API accepts image inputs (beta) alongside text in the same call, and supports function calling / tool use plus JSON output. It is tuned for agentic, multi-step workflows and integrates with leading coding-agent harnesses.

The DeepSeek V4 API raises the default context window to 1M tokens (up from 128K), splits into two variants (Flash and Pro) instead of one, turns thinking on by default with a dual thinking / non-thinking mode, adds vision input, and ships dedicated agentic optimizations. Pro rivals top closed-source models on reasoning and coding while staying open-weight.

Both on reapi.ai: sign in, create a key under API keys and top up credits in the dashboard. The same key and the same balance serve every model on the platform, chat included.

Paid. Each request is charged per token from your reAPI balance at the rates in this page's pricing table, with reasoning tokens counted as output. Requests that fail before a response is delivered are not charged.

No. Pricing is pay-as-you-go: top up your reAPI balance and pay only for the input and output tokens each request uses. Cost scales with what you generate rather than with a recurring fee.
start building

Ready to ship?

Try it in the playground or grab an API key to integrate now.