API Gateway
← Back to home

DEVELOPERS / API v1

Developer integration guide

From your first request to recovery: fields, examples and handling rules in integration order.

01 / START

Quick start

  1. Sign in, create an application API key and save its once-visible secret; ensure sufficient balance.
  2. Obtain the HTTPS gateway origin from your operator. GATEWAY_URL excludes /v1 and a trailing slash.
  3. Query models and prices, select a model with matching capabilities, then submit generation.
export GATEWAY_URL="https://<gateway-host>"
export GATEWAY_API_KEY="<your-api-key>"
curl "$GATEWAY_URL/v1/models" -H "Authorization: Bearer $GATEWAY_API_KEY"
curl "$GATEWAY_URL/v1/prices" -H "Authorization: Bearer $GATEWAY_API_KEY"

Commands use Bash. Replace all angle-bracket placeholders; example sizes, durations, prices and dates are illustrative. Use a new idempotency key per new operation and preserve it for recovery. Discovery determines availability; contact the operator if the list is empty.