DeepSeek API

DeepSeek API through llmbox: V4.1 Flash, V4 Flash and V4 Pro with one API key in an OpenAI-compatible format — ready for Codex CLI, Cursor and OpenCode.

6
DeepSeek models behind one key
−72%
below direct rates

DeepSeek models and pricing

ModelTypeInput · 1MOutput · 1M
DeepSeek V4.1 Flash 1017deepseek/deepseek-v4.1-flash-1017Text$0.09$0.36
DeepSeek V4.1 Flashdeepseek/deepseek-v4.1-flashText$0.10$0.27
DeepSeek V4 Flash 0731deepseek/deepseek-v4-flash-0731Text$0.10$0.28
DeepSeek V4 Pro 0813deepseek/deepseek-v4-pro-0813Text$0.10$0.28
DeepSeek V4 Flashdeepseek/deepseek-v4-flashText$0.144$0.396
DeepSeek V4 Prodeepseek/deepseek-v4-proText$0.19$0.555

Text model prices are per 1M tokens. Reasoning counts as output tokens.

About the DeepSeek API

DeepSeek models on llmbox

DeepSeek builds open language models, and with the V4 generation the company focuses on code, math and agent tasks. The weights of DeepSeek V4 and V4.1 are published under the MIT license, and the DeepSeek API itself is compatible with the OpenAI format. llmbox gives you these models with one key and one base URL, alongside models from other vendors: you don't need a DeepSeek account, and usage is deducted from a single prepaid balance as you go.

The catalog has three main DeepSeek models:

  • DeepSeek V4.1 Flash — the newest model and the first on DeepSeek's new architecture; accepts text and images as input;
  • DeepSeek V4 Pro — the larger V4 model with 1.6 trillion parameters, for agents, code and knowledge-heavy tasks;
  • DeepSeek V4 Flash — the smaller V4 model with 284 billion parameters, a lighter version of V4 Pro.

According to DeepSeek's documentation, all three models have a 1M-token context window, and V4.1 Flash and V4 Pro return up to 384K tokens per response. The models support reasoning with adjustable depth, function calling and streaming. Besides the main models, the catalog has pinned versions with a date in the ID, for projects that need one exact model version. The current list and rates are in the table on this page.

What you get

Access works the same way for every vendor on llmbox:

  • one API key for every model in the catalog;
  • an OpenAI-compatible API with Chat Completions and Responses;
  • one prepaid balance that covers usage across all models;
  • a request log with the status, tokens and cost of every call;
  • separate keys per project, each with its own spend limit.

All three DeepSeek models are available in both formats. So the same model works in your own OpenAI SDK code, in Codex CLI and in Cursor — with one key and one usage log.

How to connect

  1. Create an API key in the API keys section of your dashboard. You can copy it later with the Show key button.
  2. Give your client the key and the llmbox base URL from the Quickstart.
  3. Pick a model, for example deepseek/deepseek-v4.1-flash, and send your first request.

Topping up is described in Balance and pricing. Don't ship the key in browser or mobile code: it can be extracted from a client app, so send requests through your own server.

Which DeepSeek model to choose

TaskStart withCompare with
Coding agents in Codex CLI, Cursor, OpenCodeDeepSeek V4.1 FlashDeepSeek V4 Pro
Tasks that rely on the model's factual knowledgeDeepSeek V4 ProDeepSeek V4.1 Flash
Screenshots, charts and documents alongside textDeepSeek V4.1 Flash—
High-volume requests with JSON-schema outputDeepSeek V4.1 FlashDeepSeek V4 Pro
Projects already tuned on V4 FlashDeepSeek V4 FlashDeepSeek V4.1 Flash

The key thing to know when choosing: V4.1 Flash is newer than V4 Pro. DeepSeek calls it the smallest model of the new architecture and cites comparisons from several sources in which it beats V4 Pro. So for new projects it makes sense to start with V4.1 Flash and test V4 Pro where results fall short — above all on tasks that rely on factual knowledge. The key stays the same when you switch models, but check the result on your own workload.

Use cases

Code. DeepSeek develops the V4 and V4.1 generations primarily for programming: edits across a repository, terminal work, building a project from scratch. For new coding agents, test V4.1 Flash first; V4 Pro and V4 Flash have their own updates for agent work and the Codex format, so compare them on the same repository.

Agents. All three models call your functions, and in reasoning mode they can interleave thinking with tool calls before the final answer. V4.1 Flash suits agent sessions with a lot of input context — long history, files, tool results. A repeated prefix of such requests can hit the cache and is billed at the cache-read rate.

Reasoning. Reasoning is on by default for DeepSeek models and can be turned off; for V4.1 Flash and V4 Pro its depth is set with the levels low, high and max. DeepSeek recommends low for simple tasks, high for everyday agent work and max for hard problems. Reasoning tokens count as output, so the level directly affects spend.

High-volume tasks. For classification, labeling and data extraction, compare the Flash models on your own request volume first. If you need output that strictly follows a JSON schema, use V4.1 Flash. On these tasks, lower the reasoning level or turn reasoning off.

Developer tools

DeepSeek models plug into popular coding tools with an llmbox key:

  • Codex CLI — through the Responses format, which DeepSeek adapted for Codex; setup in Codex CLI;
  • Cursor and OpenCode — through Chat Completions; setup in Cursor and OpenCode;
  • OpenAI SDK — in your own code; examples in SDKs.

Cursor features tied to its own models, such as Tab completion, don't work with a third-party key — that's a Cursor limitation. An overview of all integrations is in Integrations.

What's available through llmbox

You get the three DeepSeek models and their core features: reasoning with selectable depth, calling your own functions, streaming and caching of a repeated prompt prefix. V4.1 Flash and V4 Pro also support JSON-schema output.

Supported parameters are covered in Request parameters.

Pricing and balance

You pay from a prepaid balance as you go — no subscriptions and no mandatory monthly payments. Models are billed per input and output token at rates per 1M tokens, with separate rates for cache reads and cache writes.

Your balance is shown in the Balance section of your dashboard. Spend by day and by model is in the Usage section, and every request with its cost is in the Logs section. That makes it easy to compare what the same workflow costs on V4.1 Flash and V4 Pro, or on models from other vendors.

Keys and spend control

You can have several keys: one for production, one for testing, one per agent or service. Each key gets its own spend limit; once it's reached, requests with that key stop while other keys keep working. That's handy for agents in Codex CLI and Cursor, which send many requests over a long session. A compromised key is revoked in the dashboard.

Getting started

  1. Pick a model in the table above and open its page — it lists the rates, a sample request and the use cases the model fits.
  2. Create a key in the dashboard and connect your tool using Integrations.
  3. Send test requests with a few typical inputs from your workload and try different reasoning levels.
  4. Open the request log: status, tokens and cost per call show whether the model fits or whether to compare it with its neighbor in the table.

FAQ

Which DeepSeek models are available?

DeepSeek V4.1 Flash, DeepSeek V4 Flash and DeepSeek V4 Pro, plus their pinned versions with a date in the ID. The rates for each model are in the table on this page. For a new project, start with V4.1 Flash — the newest DeepSeek model in the catalog.

Do I need a DeepSeek API key?

No. You don't need an account or a key on the DeepSeek platform: create an llmbox key in the API keys section of your dashboard and pass it instead of a DeepSeek key. The same key works for every model in the catalog, including other vendors.

How is DeepSeek API pricing calculated?

Per input and output token at rates per 1M tokens. Reasoning tokens count as output, and a repeated prompt prefix can hit the cache, which has its own rate.

Is this a subscription?

No. You pay from a prepaid balance as you go: there is no subscription and no monthly fee, and only actual usage is deducted.

How do I top up my balance?

Open the Balance section of your dashboard and add the amount you need in US dollars. The same balance pays for DeepSeek and for every other model in the catalog.

Can I use DeepSeek in Codex CLI, Cursor or OpenCode?

Yes. All three models are available in the Responses format used by Codex CLI and in Chat Completions used by Cursor and OpenCode. Setup steps are in the Integrations section of the docs.

What model name do I pass to the API?

The model ID with the vendor prefix, for example deepseek/deepseek-v4.1-flash or deepseek/deepseek-v4-pro. Each ID is listed in the table on this page and on the model's own page, next to a sample request.

Can I cap spend for one project?

Yes. Create a separate key for the project and set a spend limit on it in your dashboard. Once the limit is reached, that key stops accepting requests while your other keys keep working.

Other vendors