API reference
Low-cost model API for agents: gpt-5.6-terra at US$0.100 input / US$0.600 output per 1M tokens. Prepaid credit from US$5; no monthly fee.
Base URL and routes
Use the same key across all supported compatibility layers.
Quickstart
Keep the key in an environment variable, not source code.
Authentication
Send Authorization: Bearer <key>. Anthropic clients may use x-api-key. Plaintext keys are shown once and stored hashed.
Billing and usage
Each response includes usage.reseller_cost_usd, usage.reseller_cost_micros, usage.charged_cents, sell_rate_in_usd, and sell_rate_out_usd.
Errors
Issue or claim a valid API key.
Top up the prepaid balance.
Use an ID returned by /v1/models.
Back off or retry the upstream request.
Security
Keys are hashed at rest. The edge applies TLS, frame denial, strict response headers, and managed WAF rules.
Successful API requests are billed at the displayed token rates, metered to a fraction of a cent. Charges accumulate and are deducted from your prepaid balance in whole US cents, so a small request is not rounded up to a minimum charge.