DeepSeek API: how to get a key and pay without a foreign cardAn API for AI coding agents: one key, any OpenAI-compatible tool

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

ModelContextInput (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’s peak prices per 1M tokens, api-docs.deepseek.com, 5 October 2026. Off-peak is half price.

DeepSeek through Twelver

SeriesModel$ per 1MUse
deepseek-flashDeepSeek V4.1 Flash0.488 / 1.95Cheap bulk requests
deepseekDeepSeek V4 Pro2.15 / 6.44Hard 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.

Template — this will not work as isdeepseek.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 month
request: $0.0171,000 requests: $16.98
deepseekDeepSeek V4 Pro$217 per month
request: $0.0721,000 requests: $72.23
autoQwen3.7-Plus$67.86 per month
request: $0.0231,000 requests: $22.62
zaiGLM-5.3$231 per month
request: $0.0771,000 requests: $76.98

Twelver 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?
On platform.deepseek.com: sign up, top up, then API keys → Create new API key. Base URL https://api.deepseek.com, models deepseek-flash and deepseek-v4-pro.
Is the DeepSeek API OpenAI-compatible?
Yes. Change the base_url and key in the OpenAI SDK and the request code stays the same.
Can I use DeepSeek without the official top-up?
Yes, through an OpenAI-compatible provider. Twelver serves DeepSeek as the deepseek-flash and deepseek series, with a key issued without signup or a card.

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
Rate your experience