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
- Create an API key in the API keys section of your dashboard. You can copy it later with the Show key button.
- Give your client the key and the llmbox base URL from the Quickstart.
- 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
| Task | Start with | Compare with |
|---|---|---|
| Coding agents in Codex CLI, Cursor, OpenCode | DeepSeek V4.1 Flash | DeepSeek V4 Pro |
| Tasks that rely on the model's factual knowledge | DeepSeek V4 Pro | DeepSeek V4.1 Flash |
| Screenshots, charts and documents alongside text | DeepSeek V4.1 Flash | — |
| High-volume requests with JSON-schema output | DeepSeek V4.1 Flash | DeepSeek V4 Pro |
| Projects already tuned on V4 Flash | DeepSeek V4 Flash | DeepSeek 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
- 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.
- Create a key in the dashboard and connect your tool using Integrations.
- Send test requests with a few typical inputs from your workload and try different reasoning levels.
- 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.