DeepSeek V4 Pro 0813 (Phala) API

Phala · serves deepseek-v4

Pricing

Input / 1M$1.45
Output / 1M$4.36
Blended / 1M$5.81
Cached input / 1M$0.15
Context window1,048,576 tokens
Max output393,216 tokens
LicenseOpen weights · MIT permissive
Knowledge cutoffMarch 2026 · source

textfunction-calling

Price verified 2026-09-05 (0 days ago) · sourcecorroborated

Sources

SourceInput / 1MOutput / 1MVerified
OpenRouter$1.45$4.362026-09-05
LiteLLM$1.32$3.962026-09-03
models.dev$1.44$4.312026-09-04

Two independent sources agree within 20%.

Cheaper providers for deepseek-v4

ProviderBlended / 1MEndpoint
Alibaba$2.323view →
DeepSeek$2.64view →
Baidu$2.788view →

Compare all 18 providers serving deepseek-v4 →

Call it

Served via OpenRouter, pinned to Phala — the provider these prices are resolved from. Set OPENROUTER_API_KEY. Provider page.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek/deepseek-v4-pro-0813",
    "messages": [{"role": "user", "content": "Hello"}],
    "provider": {"only": ["Phala"], "allow_fallbacks": false}
  }'
from openai import OpenAI  # pip install openai

client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key="...",  # OPENROUTER_API_KEY
)
resp = client.chat.completions.create(
    model="deepseek/deepseek-v4-pro-0813",
    messages=[{"role": "user", "content": "Hello"}],
    extra_body={"provider": {"only": ["Phala"], "allow_fallbacks": false}},
)
print(resp.choices[0].message.content)

Price unchanged since 2026-09-03 — 1 point on record.

Use this data

Raw JSON for this page: deepseek-v4.json. Free to reuse under CC BY 4.0 with attribution to apipriceindex.com.