aiml documentation
One API key for every model. OpenAI and Anthropic wire formats, transparent routing, prepaid billing in integers.
Quick start: OpenAI SDK
Change the base URL and the key; keep the code.
Quick start: Anthropic SDK
The Messages API, served by the gateway.
Quick start: curl
Streams, headers and the route trace from a shell.
Errors
One envelope, stable codes, what to retry.
Billing
Prepaid credits, integer micro-USD, no surprises.
API reference
Every route, generated from the OpenAPI spec.