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
401Invalid or missing API keyCheck the key in your dashboard.
402Insufficient balanceTop up from the billing page.
404Model not foundCheck the model id against the list above.
429Rate limit or quota exceededSlow down or top up.
500Gateway errorRetry; 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.