Access DeepSeek V4, V3, and R1 through a single OpenAI-compatible endpoint. Start coding in under 2 minutes.
Get API Key →DeepSeek has emerged as one of China's most capable AI companies. Their models consistently rival GPT-4 on coding and reasoning benchmarks, at a fraction of the cost.
DeepSeek V3 and R1 outperform many Western models on HumanEval and MBPP coding benchmarks.
Up to 80% cheaper than equivalent GPT-4 API calls while maintaining competitive quality.
Drop-in replacement — just change the base_url. Works with LangChain, LlamaIndex, etc.
| Model | Context | Best For | Speed |
|---|---|---|---|
| deepseek-v4 | 128K | Latest flagship, general tasks | Medium |
| deepseek-v3 | 128K | Previous gen, proven reliability | Medium |
| deepseek-r1 | 128K | Chain-of-thought reasoning | Slower (thinking) |
| deepseek-v4-flash | 64K | Fast, cost-efficient tasks | Fast |
from openai import OpenAI
# Connect to our unified API gateway
client = OpenAI(
base_url="https://eaf9553505eeb8f5-115-190-107-107.serveousercontent.com/v1",
api_key="your-api-key"
)
# Use DeepSeek V4 just like OpenAI
response = client.chat.completions.create(
model="deepseek-v4",
messages=[
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Write a Python function to find prime numbers"}
],
temperature=0.7,
max_tokens=1024
)
print(response.choices[0].message.content)
import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://eaf9553505eeb8f5-115-190-107-107.serveousercontent.com/v1',
apiKey: 'your-api-key'
});
const response = await client.chat.completions.create({
model: 'deepseek-v4',
messages: [
{ role: 'user', content: 'Explain recursion in simple terms' }
]
});
console.log(response.choices[0].message.content);
curl https://eaf9553505eeb8f5-115-190-107-107.serveousercontent.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4",
"messages": [
{"role": "user", "content": "Hello, DeepSeek!"}
]
}'
DeepSeek R1 uses chain-of-thought reasoning for complex problems. Enable extended thinking for math, logic, and multi-step analysis:
response = client.chat.completions.create(
model="deepseek-r1",
messages=[
{"role": "user", "content": "Prove that sqrt(2) is irrational"}
],
extra_body={"thinking": {"type": "enabled"}},
max_tokens=4096
)
# R1 returns reasoning in response.choices[0].message.reasoning_content
Latest model with best overall performance. Use for general-purpose tasks, content generation, code generation, and when you need the highest quality output.
Previous generation model with proven reliability. Slightly cheaper, excellent for production workloads where you've already optimized prompts.
Specialized reasoning model. Best for math problems, logic puzzles, code debugging, and any task requiring step-by-step thinking.
Build chatbots powered by DeepSeek's strong conversational abilities at lower cost.
DeepSeek R1 and V3 excel at code generation, review, and debugging tasks.
Analyze data, generate SQL queries, and create reports using DeepSeek's reasoning capabilities.
Strong Chinese-English translation capabilities, ideal for cross-border applications.
Yes! Our endpoint implements the OpenAI Chat Completions API. Just change the base_url and use the same SDK you already know.
Absolutely. Since the API is OpenAI-compatible, it works seamlessly with LangChain, LlamaIndex, and any framework that supports OpenAI endpoints.
Rate limits depend on your plan. Free tier includes generous limits for testing. Contact us for production-level access.
Yes! Sign up to get free credits to test all DeepSeek models. No credit card required for the free tier.