ReferenceAPI reference
API reference
Every route of the public API, generated from schemas/openapi.yaml at build time.
The gateway serves inference (/v1/chat/completions, /v1/messages); cp-api serves everything else. Both are reachable at https://api.ai.ml. Every response carries x-aiml-request-id.
OpenAI-compatible
Chat Completions, streaming, tools, structured output
Anthropic-compatible
Messages, streaming, tool use, thinking
Native IR
generate, embed, rerank, count_tokens, dry_run (M2)
Catalog
models, endpoints, prices
Usage
look a request up, tail the activity feed
Credits
balance, ledger, top-ups, invoices
Keys
create, rotate, revoke
Account
orgs, projects, members
Webhooks
payment gateway callbacks
Policies
versioned routing policies (M3)