DeepSeek V4 Pro
Model ID: deepseek-pro · fixed version deepseek-v4-pro-0813
For complex code, reasoning and long agent tasks. 1M-token context.
| Input | $1.0296 |
|---|---|
| Cached input | $0.0343 |
| Output | $3.0888 |
DeepSeek V4 Pro & V4.1 Flash · 1M context
One BetterToken key for Python, curl, Claude Code and OpenCode. Pay for the tokens you use, with prices in USD.
Create an account, copy your key and fund your BetterToken balance.
API documentation ↗BetterToken is an independent API service, not DeepSeek or an official DeepSeek reseller. Top-ups fund your BetterToken balance, not an account at platform.deepseek.com.
OpenAI-compatible Base URL
https://www.bettertoken.ai/v1Use deepseek-pro or deepseek-flash with your BetterToken API key.
USD per 1 million tokens. Input, cached input and output are billed separately.
Model ID: deepseek-pro · fixed version deepseek-v4-pro-0813
For complex code, reasoning and long agent tasks. 1M-token context.
| Input | $1.0296 |
|---|---|
| Cached input | $0.0343 |
| Output | $3.0888 |
Model ID: deepseek-flash · fixed version deepseek-v4.1-flash-1017
For faster, lower-cost tasks. Supports image input, thinking and non-thinking modes, tool calling and JSON. 1M-token context.
| Input | $0.2340 |
|---|---|
| Cached input | $0.0047 |
| Output | $0.9360 |
Set your BetterToken Base URL, API key and model. Use the Anthropic-compatible endpoint for Claude Code.
https://www.bettertoken.ai/v1https://www.bettertoken.aifrom openai import OpenAI
client = OpenAI(
base_url="https://www.bettertoken.ai/v1",
api_key="YOUR_API_KEY",
)
response = client.chat.completions.create(
model="deepseek-flash",
messages=[{"role": "user", "content": "Explain this function briefly."}],
)
print(response.choices[0].message.content)curl https://www.bettertoken.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-pro","messages":[{"role":"user","content":"Hello!"}]}'{
"env": {
"ANTHROPIC_BASE_URL": "https://www.bettertoken.ai",
"ANTHROPIC_AUTH_TOKEN": "YOUR_API_KEY",
"ANTHROPIC_DEFAULT_OPUS_MODEL": "deepseek-pro",
"ANTHROPIC_DEFAULT_SONNET_MODEL": "deepseek-pro",
"ANTHROPIC_DEFAULT_HAIKU_MODEL": "deepseek-v4.1-flash-1017"
}
}{
"$schema": "https://opencode.ai/config.json",
"model": "bettertoken/deepseek-pro",
"provider": {
"bettertoken": {
"npm": "@ai-sdk/openai-compatible",
"name": "BetterToken",
"options": {
"baseURL": "https://www.bettertoken.ai/v1"
},
"models": {
"deepseek-pro": {
"name": "DeepSeek V4 Pro"
},
"deepseek-flash": {
"name": "DeepSeek V4.1 Flash"
}
}
}
}
}YOUR_API_KEY is your BetterToken key.
Create an API keyRegister with BetterToken. Your API key is created automatically.
Use your BetterToken key with the Base URL and model ID shown above. Keep the key out of source control.
Top up your BetterToken balance in USD, then check token usage and charges in Workspace.
Create your BetterToken key, fund your USD balance and send your first request.