Base URL
API ??
https://modelrelayapis.cc/v1
Available Models
????
deepseek-v4-flash? Fast, affordable (Trial / Starter / Standard / Pro)deepseek-v4-pro? Higher quality (Pro plan only)
Setup Steps
????
- Install the LangChain OpenAI package:
pip install langchain-openai - Configure
ChatOpenAIwith our gateway as shown in the Python example below. - Set
base_urltohttps://modelrelayapis.cc/v1. - Set
api_keyto your sk-gateway API Key. - Set
modeltodeepseek-v4-flash.
Python Example (LangChain)
Python ?? (LangChain)
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
base_url="https://modelrelayapis.cc/v1",
api_key="sk-gateway-YOUR-KEY",
model="deepseek-v4-flash"
)
response = llm.invoke("Explain quantum computing in one sentence.")
print(response.content)
Quick curl Test
curl ????
curl https://modelrelayapis.cc/v1/chat/completions -H "Content-Type: application/json" -H "Authorization: Bearer sk-gateway-YOUR-KEY" -d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello"}]}'
Common Errors
????
| HTTP | Meaning |
|---|---|
| 401 | Invalid or missing API key |
| 402 | API budget exhausted ? buy a new package |
| 403 | Model not allowed for your plan |
| 429 | Rate limit exceeded |
| 500/502 | Gateway error ? try again or contact support |
Get Your DeepSeek API Key ? From $1
?? DeepSeek API Key??? $1 ?
Instant key delivery after PayPal payment. Check your usage anytime on the Dashboard.
View Plans & Buy