DeepSeek General Purpose

DeepSeek V4

1 Million Context. Unlimited Possibilities.

DeepSeek's general-purpose flagship with unprecedented context length.

Pricing

Metric Official Price tokencnn.com Price
Input $0.14 $0.21
Output $0.28 $0.42

* tokencnn.com applies a 1.5x multiplier on official pricing for gateway and aggregation services.

API Reference

cURL
Python
curl -X POST https://api.tokencnn.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4",
    "messages": [{"role": "user", "content": "Review this codebase for vulnerabilities"}],
    "temperature": 0.3
  }'
import openai

client = openai.OpenAI(
    base_url="https://api.tokencnn.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="deepseek-v4",
    messages=[
        {"role": "user", "content": "Implement a key-value store from scratch in Python"}
    ],
    temperature=0.5,
    max_tokens=8192
)

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

Model Capabilities

🚀1 million token context window - process entire codebases and book-length docs
⚡Outstanding programming performance across all major languages
🧠Strong mathematical reasoning and problem-solving abilities
🔧Long-range dependency handling for complex document analysis
📊Cost-effective pricing for the capabilities offered
🎯Open-source friendly with community-driven improvements

Ready to Build with DeepSeek V4?

Get your API key in minutes and start integrating China's best AI models.

Get API Key →