QUICKSTART
Call the gateway in minutes.
Base URL
https://mixapi.duckdns.org
Authentication
Pass your API key as a bearer token on every request.
Authorization: Bearer sk-...
OpenAI-compatible chat completion
curl https://mixapi.duckdns.org/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{"model":"deepseek-v4-flash","messages":[{"role":"user","content":"Hello"}]}'
Node.js
const response = await fetch('https://mixapi.duckdns.org/v1/chat/completions', {
method: 'POST',
headers: {
'Authorization': 'Bearer sk-...',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'deepseek-v4-flash',
messages: [{ role: 'user', content: 'Hello' }]
})
});
const data = await response.json();
MODELS & PRICING
Reference pricing — from $5/M tokens.
| Model | Reference price |
|---|
ERROR CODES
Common errors and how to fix them.
| Code | Meaning | Action |
|---|---|---|
| 401 | Invalid or missing API key | Check the key in your dashboard. |
| 402 | Insufficient balance | Top up from the billing page. |
| 404 | Model not found | Check the model id against the list above. |
| 429 | Rate limit or quota exceeded | Slow down or top up. |
| 500 | Gateway error | Retry; contact us if it persists. |
FAQ
Frequently asked questions.
How does billing work?
You top up a balance (from $5) and pay only for the tokens your API calls consume.
What is the minimum top-up?
The minimum is $5.
Where is the gateway hosted?
Requests are served through a US-hosted OpenAI-compatible gateway.
What happens when my balance runs out?
Calls stop until you top up again — no surprise charges.