DeepSeek API: how to get a key and pay without a foreign card
The DeepSeek API is OpenAI-compatible: a key, a base_url and a model name, and it works in any code, Cline, Kilo Code or OpenCode. Below: the official route, an OpenAI-compatible route through Twelver, and a Python example.
Short answer
Officially: a key at platform.deepseek.com (API keys), base URL https://api.deepseek.com, models deepseek-flash and deepseek-v4-pro; top-ups by card or PayPal. Through Twelver: series deepseek-flash and deepseek, with a key issued on this page with no signup and no card.
Models and official prices
| Model | Context | Input (no cache) | Output |
|---|---|---|---|
| deepseek-flash (V4.1 Flash) | 1M tokens | $0.30 | $1.20 |
| deepseek-v4-pro (V4 Pro) | 1M tokens | $1.32 | $3.96 |
DeepSeek through Twelver
| Series | Model | $ per 1M | Use |
|---|---|---|---|
| deepseek-flash | DeepSeek V4.1 Flash | 0.488 / 1.95 | Cheap bulk requests |
| deepseek | DeepSeek V4 Pro | 2.15 / 6.44 | Hard reasoning, code edits |
Right here
Base URL and key for DeepSeek
Your own values appear in the block and drop straight into the code below.
Press it and get your base_url and API key.
No sign-up, no card.
Free. Your key appears right here.
deepseek.pyThe highlighted parts are stand-ins. The button above issues them in seconds, no sign-up.from openai import OpenAI
client = OpenAI(base_url="https://twelver.ru/api/ai/<your-config-id>/v1", api_key="sk-<your-key>")
reply = client.chat.completions.create(
model="deepseek-flash",
messages=[{"role": "user", "content": "Explain what this code does: ..."}],
)
print(reply.choices[0].message.content)Next: Cline, Kilo Code, OpenCode, API for AI agents.
Work out what the requests cost
Pick a workload or type your own numbers — the calculator multiplies them by each series’ rates. A token is roughly 4 characters of English text or code.
deepseek-flashDeepSeek V4.1 Flash$50.94 per monthdeepseekDeepSeek V4 Pro$217 per monthautoQwen3.7-Plus$67.86 per monthzaiGLM-5.3$231 per monthTwelver rates as of 4 November 2026; tokens are billed as actually used, caching and discounts not included. The arithmetic runs in your browser.
Frequently asked questions
How do I get a DeepSeek API key?
Is the DeepSeek API OpenAI-compatible?
Can I use DeepSeek without the official top-up?
Try it yourself
Everything in this guide runs inside Twelver
One chat for text, images, video, music and voice — no separate services or subscriptions.
Open Twelver chat