How to Use DeepSeek API from the US and Europe (2026 Guide)

๐Ÿ“… June 2026 โฑ 8 min read ๐Ÿท๏ธ DeepSeek ยท API ยท Tutorial

Why Is DeepSeek Hard to Access from the US and Europe?

DeepSeek R1 and DeepSeek V3 are among the most capable open-weight LLMs available today. They rival GPT-4o and Claude 3.5 Sonnet on many benchmarks โ€” at a fraction of the cost. DeepSeek R1's reasoning capabilities, in particular, have made it a go-to model for complex problem-solving, code generation, and analytical tasks.

But if you're a developer sitting in San Francisco, London, or Berlin, signing up for DeepSeek's official API is surprisingly difficult. Two main barriers stand in your way:

๐Ÿ’ก The Bottom Line: DeepSeek's models are world-class and open-weight, but accessing them from outside China requires a workaround. This guide covers all the viable options.

The China Phone Number Problem

DeepSeek's registration flow (platform.deepseek.com) looks straightforward โ€” email, password, then SMS verification. But there's a catch: the SMS verification only accepts Chinese (+86) phone numbers.

Why does this matter?

This is the primary friction point that has driven developers to seek alternatives. Below, we evaluate the three main approaches for accessing DeepSeek from the US and Europe.

Option 1: Direct (Official DeepSeek API)

Pros: Official source, gets updates first, lowest base price per token.

Cons: China phone required, higher latency from US/EU, Chinese-centric support.

# Official DeepSeek API endpoint
API_BASE_URL = "https://api.deepseek.com"

# Requires Chinese phone (+86) to register
# Higher latency from US/EU data centers

If you have a Chinese phone number or can reliably obtain one, this is technically the most direct path. However, many developers find the registration friction and latency issues make it impractical for serious production use outside China.

Option 2: Proxy / Unified API Providers

This is where services like ModelHub, OpenRouter, and Together AI come in. They aggregate DeepSeek (and many other models) behind a single, OpenAI-compatible API endpoint. You sign up with your email, get an API key, and start calling DeepSeek immediately โ€” no Chinese phone number required.

# ModelHub API โ€” same endpoint for all models
curl https://api.modelhub-api.com/v1/chat/completions \
  -H "Authorization: Bearer $MODELHUB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Key advantages of this approach: no phone verification, US/EU-optimized infrastructure (low latency), unlimited model switching, OpenAI-compatible SDK, and typically lower prices than official channels due to competitive pricing and batch inference optimizations.

Option 3: Self-Host DeepSeek

Since DeepSeek R1 and V3 are open-weight models, you can download and run them on your own infrastructure. The model weights are available on Hugging Face.

# Using Ollama (easiest local setup)
ollama pull deepseek-r1:7b
ollama run deepseek-r1:7b

# For the full DeepSeek R1 (671B parameters), you need:
# - 4-8x NVIDIA A100 80GB GPUs
# - ~$30-50/hour cloud compute cost
# - vLLM or SGLang for serving

Pros: Full control, no API costs at scale, no phone or API key dependency.

Cons: The full DeepSeek R1 model (671B parameters) requires significant GPU resources (~$30-50/hour on cloud providers like Lambda Labs or RunPod Running deepseek-r1:7b or 14b distilled versions locally is feasible but doesn't match the full model's capabilities. You're responsible for infrastructure maintenance, scaling, and uptime.

For hobbyists and small-scale use, distilled versions (7B, 14B) running locally are a reasonable option. For production workloads requiring the full model's reasoning capacity, self-hosting is cost-prohibitive unless you're operating at very high volume.

3-Method Comparison Table

Feature Official DeepSeek ModelHub (Proxy) Self-Host
China Phone Required โœ— Yes โœ“ No โ€” email only โœ“ No
US/EU Latency โœ— High (China servers) โœ“ Low (US/EU servers) โœ“ Depends on infra
Setup Time โœ— 15-30 min โœ“ 2 min โœ— Hours-days
Full Model Access โœ“ Yes โœ“ Yes โœ“ Yes (with hardware)
Pay-as-you-go โœ“ Yes โœ“ Yes โœ— Fixed infra cost
Free Tier / Trial Credit โœ— Limited โœ“ $50 free credit โœ— No
Model Selection โœ— DeepSeek only โœ“ 100+ models โœ— DeepSeek only
OpenAI SDK Compatible โœ“ Yes โœ“ Yes โœ“ If configured
Cost per 1M tokens (R1) ~$2.19 ~$2.19 $10-50 (GPU cost)
Scalability โœ“ Easy โœ“ Easy โœ— Manual
Best For China-based users US/EU devs High-volume (>100M tok/day)

Why ModelHub Is the Best Option for US and EU Developers

ModelHub (modelhub-api.com) is a unified API platform that aggregates 100+ open-source and proprietary LLMs โ€” including DeepSeek R1, DeepSeek V3, Qwen 2.5, Llama 3, Mistral, and more โ€” behind a single OpenAI-compatible endpoint.

Here's why ModelHub is the preferred choice for developers in the US and Europe:

  1. No Chinese Phone Required. Sign up with just your email. No SMS verification, no +86 number needed.
  2. US/EU-Optimized Infrastructure. ModelHub's API servers are deployed in US and European data centers. You get low-latency responses without routing through China.
  3. Full DeepSeek Access. Access DeepSeek R1 and V3 in full precision. Same model quality as the official API, without the registration headache.
  4. $50 Free Credit. New users get $50 in free API credits to test and experiment โ€” no credit card required to get started.
  5. 100+ Models Under One API Key. Need to switch from DeepSeek to Qwen to Llama? Just change the model name in your API call. One key, one base URL, unlimited models.
  6. Pricing 50-80% Below OpenAI. DeepSeek R1 at ~$2.19/M tokens vs GPT-4o at ~$15/M tokens for input. DeepSeek V3 is even cheaper.
  7. OpenAI-Compatible SDK. Drop-in replacement. If you already have code using the OpenAI Python / Node.js SDK, just change the base URL and API key.
โšก Quick Start: Go to modelhub-api.com โ†’ sign up with email โ†’ grab your API key โ†’ start calling DeepSeek in 2 minutes.

Code Examples

Python (OpenAI SDK)

Works with the standard openai Python package โ€” just change the base URL.

terminal
pip install openai
app.py
from openai import OpenAI

client = OpenAI(
    base_url="https://api.modelhub-api.com/v1",
    api_key="your-modelhub-api-key-here"
)

response = client.chat.completions.create(
    model="deepseek-r1",
    messages=[
        {"role": "user", "content": "Explain quantum computing in 3 sentences."}
    ],
    temperature=0.7,
    max_tokens=500
)

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

Node.js (OpenAI SDK)

app.js
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://api.modelhub-api.com/v1',
  apiKey: 'your-modelhub-api-key-here'
});

const response = await client.chat.completions.create({
  model: 'deepseek-v3',
  messages: [{ role: 'user', content: 'Write a Python function to sort a list.' }]
});

console.log(response.choices[0].message.content);

Switching Models

ModelHub's power: use the same code, just change the model name.

# DeepSeek R1 โ€” best for reasoning & math
model: "deepseek-r1"

# DeepSeek V3 โ€” best for general chat & code
model: "deepseek-v3"

# Qwen 2.5 72B โ€” Alibaba's top model
model: "qwen-2.5-72b"

# Llama 3 70B โ€” Meta's workhorse
model: "llama-3-70b"

# Mixtral 8x22B โ€” Mistral's MoE model
model: "mixtral-8x22b"

Streaming

stream = client.chat.completions.create(
    model="deepseek-r1",
    messages=[{"role": "user", "content": "Write a story about AI."}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

FAQ

Is using a proxy like ModelHub legal?

Yes. ModelHub is a legitimate API aggregation service. DeepSeek's models are MIT-licensed / open-weight and can be served by third parties. You are simply making API calls to a US-based service that hosts these models.

Will I get the same quality as the official DeepSeek API?

Yes. ModelHub uses the same model weights and inference configurations as the official API. The responses you get are from the same DeepSeek R1/V3 models โ€” just served from US/EU infrastructure.

Can I use ModelHub for production workloads?

Absolutely. ModelHub offers 99.9% uptime SLA, rate scaling for high-volume workloads, and enterprise support plans. Many production applications run on ModelHub.

What if I need a specific model that isn't listed?

ModelHub adds new models regularly. Contact support and they can fast-track adding a specific model, especially if it's open-weight and popular.

๐Ÿš€ Start Using DeepSeek from the US/EU Today

No Chinese phone number. No friction. Just great AI models at competitive prices.

Get $50 Free Credit โ†’

No credit card required ยท Sign up in 30 seconds ยท 100+ models