DeepSeek Beginner

How to Get a DeepSeek API Key: Step-by-Step with Screenshots (2026)

Complete walkthrough to register DeepSeek, get your API key, top up credits, and make your first API call. Includes 4 payment solutions for users without a Chinese bank card.

DeepSeekAPI KeyRegistrationBeginnerPayment

📌 Disclosure: Some links in this tutorial are affiliate links. We may earn a commission at no extra cost to you if you sign up through them. All steps below were tested and screenshotted on June 24, 2026.

What Problem Does This Tutorial Solve?

You want to use DeepSeek’s API — the most cost-effective frontier model in 2026 — but you’re stuck at step one: getting an API key. This guide walks you through the entire process:

  • Register a DeepSeek account (with screenshots of every page)
  • Navigate the Chinese-language interface even if you don’t read Chinese
  • Top up your account with 4 alternative payment methods
  • Generate your first API key and test it in 30 seconds
  • Troubleshoot the 5 most common registration problems

🎯 12,000+ people search for this every month. Most give up at the payment screen. Don’t be one of them.


Why DeepSeek API? (Quick Numbers)

Before we dive in, here’s why you’re making the right choice:

ModelInput Price / 1M tokensOutput Price / 1M tokensContext Window
DeepSeek V4$0.14$0.28128K
GPT-5$3.00$12.00128K
Claude Opus 4$15.00$75.00200K
Gemini 2.5 Pro$1.25$10.001M

DeepSeek is 20× cheaper than GPT-5 and 100× cheaper than Claude Opus 4. New users get 5 million free tokens on signup — that’s enough to build and test a prototype without spending a cent.


Step 1: Register a DeepSeek Account

1.1 Go to the Platform

Open platform.deepseek.com in your browser.

You’ll see the login page. Since DeepSeek’s interface is primarily in Chinese, here’s what each button means:

ChineseEnglishWhat It Does
登录Log InSign in to existing account
注册RegisterCreate new account
手机号Phone NumberLogin with phone
邮箱EmailLogin with email
验证码Verification CodeOne-time code sent to phone/email

1.2 Choose Registration Method

DeepSeek offers three ways to register:

  1. Phone number (Chinese or international) — fastest, requires SMS code
  2. Email — works globally, no phone needed
  3. Google / GitHub OAuth — one-click if you have those accounts

Recommendation for international users: Use Email or Google OAuth. Phone registration sometimes requires a Chinese number for the SMS code.

1.3 Complete Registration

After entering your email:

  1. Check your inbox for a 6-digit verification code (subject: “DeepSeek 验证码”)
  2. Enter the code on the registration page
  3. Set a password (8+ characters, mix of letters and numbers)
  4. Click the register button

⚠️ Common Issue #1: Verification email going to spam. Check your spam/junk folder. Gmail users: look in the “Promotions” tab.


Step 2: Navigate to the API Key Page

Once registered and logged in:

  1. Click 「API Keys」 in the left sidebar (it’s in English on the platform)
  2. Alternatively, go directly to: platform.deepseek.com/api_keys

The API Keys page shows:

  • Your current keys (none yet if you’re new)
  • A 「Create new key」 button
  • Usage statistics per key

Step 3: Top Up Your Account (The Hard Part)

DeepSeek requires prepaid credits before you can use the API. This is where most international users get stuck.

3.1 Go to Billing Page

Click 「Billing」 or 「充值」 in the left sidebar, or go to platform.deepseek.com/billing.

You’ll see the top-up page with amounts in Chinese Yuan (¥ / CNY):

Top-Up AmountUSD EquivalentFree BonusTotal Credits
¥10~$1.40¥0¥10
¥50~$7.00¥5¥55
¥100~$14.00¥15¥115
¥500~$70.00¥100¥600
¥1,000~$140.00¥300¥1,300

💡 Tip: Start with ¥50 (~$7). At DeepSeek’s prices, that’s enough for ~180 API calls with 4K token input + 1K token output each.

3.2 Payment Methods: 4 Solutions for International Users

This is the #1 pain point for users outside China. Here are your options, ranked from easiest to most involved:

✅ Method 1: International Credit/Debit Card (Visa/Mastercard)

Works for: Most countries (US, EU, UK, Japan, Korea, Southeast Asia)

DeepSeek accepts international cards through Alipay’s international payment gateway. At checkout:

  1. Select 「支付宝」 (Alipay)
  2. On the Alipay payment page, choose “Pay with International Card”
  3. Enter your Visa/Mastercard details
  4. Complete 3D Secure verification

⚠️ Some banks block transactions to Chinese payment processors. If your card is declined, try Method 2.

Works for: EVERYONE — this is the most reliable method

WildCard is a virtual Visa card service designed specifically for paying Chinese AI platforms. Here’s the process:

  1. Go to wildcard.online and register (takes 2 minutes)
  2. Verify your identity with a government ID (required by Chinese regulations)
  3. Top up your WildCard with USDT, BTC, or international bank transfer
  4. Generate a virtual Visa card
  5. Use this card on DeepSeek’s Alipay payment page (same as Method 1)
WildCard FeatureDetail
Setup Fee~$10 one-time
Top-Up Fee1.5%
Monthly Limit$10,000
Supported PlatformsDeepSeek, Alibaba Cloud, Tencent Cloud, Zhipu, Moonshot

🔗 Affiliate Note: If you sign up for WildCard through our link, we earn a commission at no extra cost to you. You also get a $5 signup bonus.

✅ Method 3: Direct Bank Transfer (For Large Amounts)

Works for: Businesses topping up ¥1,000+ ($140+)

Contact DeepSeek support at support@deepseek.com to request an invoice and bank transfer details. Processing takes 1-3 business days.

✅ Method 4: Ask a Friend in China

If you know someone with Alipay or WeChat Pay, they can top up your account directly using your DeepSeek account ID. This is the fastest method if available.


Step 4: Create Your API Key

Once your account has credits:

  1. On the API Keys page, click 「Create new key」
  2. Give your key a name (e.g., “My Python App” or “Testing”)
  3. Click 「Create」
  4. COPY THE KEY IMMEDIATELY — it will only be shown once!
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

🔴 CRITICAL: DeepSeek shows the full key only once. Copy it to a password manager immediately. If you lose it, you must create a new one — there’s no way to view an existing key.

Key Security Best Practices

DoDon’t
Store keys in environment variablesHardcode keys in source code
Use .env files (add to .gitignore)Commit keys to GitHub
Rotate keys every 90 daysShare keys in screenshots or chat
Set usage limits per keyUse one key for everything

Step 5: Test Your API Key (30 Seconds)

Let’s make sure your key works. Copy-paste one of these commands:

Python

import requests

headers = {
    "Authorization": "Bearer sk-YOUR-KEY-HERE",
    "Content-Type": "application/json"
}

data = {
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello! Respond in one word."}]
}

response = requests.post(
    "https://api.deepseek.com/v1/chat/completions",
    headers=headers,
    json=data
)

print(response.json()["choices"][0]["message"]["content"])

cURL (Terminal)

curl https://api.deepseek.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-YOUR-KEY-HERE" \
  -d '{
    "model": "deepseek-chat",
    "messages": [{"role": "user", "content": "Hello! Respond in one word."}]
  }'

Node.js

const response = await fetch("https://api.deepseek.com/v1/chat/completions", {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Authorization": "Bearer sk-YOUR-KEY-HERE"
  },
  body: JSON.stringify({
    model: "deepseek-chat",
    messages: [{ role: "user", content: "Hello! Respond in one word." }]
  })
});

const data = await response.json();
console.log(data.choices[0].message.content);

If you get a response like "Hello!", your key is working. 🎉


Step 6: Set Usage Limits (Important!)

Before you start building, set a monthly spending cap to avoid surprise bills:

  1. Go to API Keys → click on your key name
  2. Set 「Monthly Budget」 to an amount you’re comfortable with (e.g., ¥100 / ~$14)
  3. Enable 「Usage Alerts」 at 50% and 80% thresholds
  4. Save

With DeepSeek’s pricing, ¥100/month covers approximately:

  • 700+ API calls at 4K input + 1K output tokens
  • 35+ long conversations at 32K context each
  • 3+ codebase-level tasks at 128K context each

Common Issues & Solutions

❌ “API Key Invalid” Error

Cause: You copied the key incorrectly, or the key has been revoked.

Fix:

  • Check for extra spaces at the beginning/end of your key
  • Create a new key if the old one was accidentally deleted
  • Verify you’re using the key in the Authorization: Bearer sk-... header

❌ “Insufficient Balance” Error

Cause: Your account has no credits.

Fix: Go to the Billing page and top up with at least ¥10.

❌ “Region Not Supported” Error

Cause: DeepSeek API is not available in your country.

Current supported regions: Most countries worldwide except those under international sanctions. If you’re unsure, check the DeepSeek documentation.

❌ “Rate Limit Exceeded” Error

Cause: You’re sending requests too fast.

DeepSeek rate limits (for paid accounts):

  • RPM (Requests Per Minute): 500
  • TPM (Tokens Per Minute): 500,000

Fix: Implement exponential backoff in your code:

import time
import random

def call_with_retry(max_retries=3):
    for attempt in range(max_retries):
        try:
            return make_api_call()
        except RateLimitError:
            wait = (2 ** attempt) + random.uniform(0, 1)
            time.sleep(wait)
    raise Exception("Max retries exceeded")

❌ Verification Email Never Arrives

Fix:

  1. Check spam/junk folder
  2. Wait 5 minutes (sometimes delayed)
  3. Click “Resend” on the registration page
  4. Try registering with Google OAuth instead
  5. Contact support@deepseek.com

What’s Next?

Now that you have your API key, here’s what you can build:

ProjectDifficultyTimeTutorial
AI Chatbot with Streaming⭐ Beginner30 minDeepSeek Streaming Guide
Function Calling Agent⭐⭐ Intermediate1 hourDeepSeek Function Calling
RAG Knowledge Base⭐⭐⭐ Advanced2 hoursLangChain + DeepSeek RAG
Fine-Tuned Model⭐⭐⭐ Advanced4 hoursDeepSeek LoRA Fine-Tuning

Quick Reference Card

DeepSeek Platform:    https://platform.deepseek.com
API Endpoint:         https://api.deepseek.com/v1/chat/completions
API Documentation:    https://platform.deepseek.com/docs
Model Name:           deepseek-chat (V4) / deepseek-reasoner (R1)
Pricing:              $0.14/M in / $0.28/M out
Free Credits:         5M tokens for new users
Support Email:        support@deepseek.com
Context Window:       128K tokens

🔗 Ready to start? Sign up for DeepSeek and get 5 million free tokens. Need a payment solution? WildCard virtual card works with all Chinese AI platforms.

📖 Related Tutorials:

Advertisement