Everything you need to use the DeepSeek API Gateway — from purchase to integration.
This is an independent third-party API gateway that provides OpenAI-compatible access to DeepSeek models. It is not an official DeepSeek service. You purchase an API budget, get your own API key, and call DeepSeek models through our endpoint.
Go to Pricing and choose a plan (Trial, Starter, Standard, or Pro).
Enter your email address on the checkout page.
Pay with PayPal. The amount is in USD.
After successful payment, your API key appears automatically on the page.
Copy and save your API key now. If you close this page, you may need your Order ID and email to check it later. You can also check your order status at Check Order.
Use the standard openai package:
from openai import OpenAI
client = OpenAI(
base_url="https://modelrelayapis.cc/v1",
api_key="sk-gateway-YOUR-KEY",
)
response = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role":"user","content":"Hello!"}],
max_tokens=500,
)
print(response.choices[0].message.content)
Streaming works too:
stream = client.chat.completions.create(
model="deepseek-v4-flash",
messages=[{"role":"user","content":"Tell me a story"}],
stream=True,
)
for chunk in stream:
if chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
curl https://modelrelayapis.cc/v1/chat/completions \
-H"Authorization: Bearer sk-gateway-YOUR-KEY" \
-H"Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello"}],"max_tokens":100}'
| Model | Description | Available In |
|---|---|---|
deepseek-v4-flash | Fast, cost-effective chat model | Trial / Starter / Standard / Pro |
deepseek-v4-pro | Higher capability for complex tasks | All plans |
All plans include both flash and pro models.
Go to Dashboard, enter your sk-gateway-xxx key, and click Check Usage. You will see:
You are not billed by simple"total tokens". Instead, each request deducts from your API budget based on real DeepSeek token pricing:
Pro model (deepseek-v4-pro) costs more per token. When your remaining budget reaches $0, your key becomes exhausted and further requests return HTTP 402. Buy a new package to continue.
https://modelrelayapis.cc/v1sk-gateway-xxx key.deepseek-v4-flash (or deepseek-v4-pro if you prefer higher capability; pro costs more per token).| Code | Meaning | What to Do |
|---|---|---|
401 | Invalid or missing API key | Check your key is correct and starts with sk-gateway-. |
402 | API budget exhausted | Your budget is used up. Buy a new package. |
403 | Budget exhausted | Your API budget is exhausted. Please buy a new package to continue. |
429 | Rate limit exceeded | Slow down. Trial/Starter/Pro: 30 RPM. Standard: 60 RPM. |
500/502 | Server error | Temporary issue. Retry. If persistent, contact support. |