API Quickstart

Three steps to your first token. The gateway is OpenAI-compatible — one endpoint, multi-provider routing, per-key cost caps.

1Get an API key

Create an account (free tier, no card), then open the portal Keys page and click Generate Key. The key is shown once — copy it somewhere safe.

2Make your first call

Replace mg_live_YOUR_API_KEY with your key and paste this in a terminal:

curl https://api.monstergaming.ai/v1/chat/completions \
  -H "Authorization: Bearer mg_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "otto",
    "messages": [{"role": "user", "content": "Say hello to my game studio."}]
  }'

Want tokens as they generate? Add "stream": true — the response arrives as server-sent events:

curl -N https://api.monstergaming.ai/v1/chat/completions \
  -H "Authorization: Bearer mg_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "otto",
    "stream": true,
    "messages": [{"role": "user", "content": "Say hello to my game studio."}]
  }'
otto is the in-house model. Any catalog model id works in the same request — see the API reference for the full list.

3See your usage

Every request is metered live. Open the portal — the dashboard shows requests, tokens, latency, and spend per key, and you can set monthly cost caps per key from the Keys page.