endpoint
POST

/v1/images/generations

Image generation

auth: API keybase https://app.nz/v1
Request
curl -sX POST https://app.nz/v1/images/generations \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{}'

Models gateway

An OpenAI-compatible API in front of 15+ providers. Point any OpenAI or Anthropic client at the base URL and keep your code. Use app/auto to let the router pick a model from the prompt, or bias it with a variant, or pin a specific provider model. The same key meters usage across every call.

Model routes (the model field)
app/autorouteDefault. Reads the prompt and picks the backend.
app/auto-coderouteBias toward strong coding models.
app/auto-fastrouteLowest latency for interactive use.
app/auto-cheaprouteBias toward lowest cost per token.
app/auto-reasoningrouteRoute reasoning depth automatically.
app/auto-visionrouteBias toward image-input models.
app/auto-imagerouteBias toward image-generation models.
routing_strategyparamprice by default; use config to preserve catalogue order or app/auto-fast for latency bias.
provider/modelpinPin a specific upstream model, e.g. anthropic/claude or openai/gpt.
Chat completion with auto routing
curl -s https://app.nz/v1/chat/completions \
  -H "Authorization: Bearer pk_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "model": "app/auto",
    "messages": [{"role": "user", "content": "Explain CRDTs in one paragraph."}],
    "reasoning_effort": "auto",
    "stream": false
  }'