API reference
Every route of the public API, with a panel to try each one.
The API is served at https://api.ai.ml. Every response carries x-aiml-request-id.
Every operation has a Try it panel: paste an API key into its authorization field and press Send. The call goes through this site to the API (the browser cannot call the API across origins) and is billed and rate-limited like any other call with that key. The docs site passes on the call's body and API headers, drops cookies, stores nothing, and reaches no host but the API.
OpenAI-compatible
Chat Completions, streaming, tools, structured output
Anthropic-compatible
Messages, streaming, tool use, thinking
Native
generate, embed, rerank, count_tokens, dry_run
Catalog
models, endpoints, prices
Usage
look a request up, tail the activity feed
Keys
create, rotate, revoke
Credits
balance, ledger, top-ups, invoices
Account
organisations, projects, members
Routing policies
versioned policies, canary and shadow
Your provider keys
upload, validate, rotate, delete
Webhooks
your endpoints, secrets, signatures, deliveries, OpenTelemetry export
Media
files uploaded once and referenced from requests
Evals
prompt suites graded across models and hosts
Apps
the app registry and attribution
OAuth
keys issued to a third-party app's users
SSO and SCIM
identity providers, verified domains, directory tokens
Privacy requests
erasure and access for one data subject
Legal
documents, acceptances, the sub-processor list
Reseller
customers, credit allocation, billable usage
Payment callbacks
what the payment gateways post to us