Base URL
Make a request
Send a chat completion request:stream to true:
Endpoints
OpenAI compatibility
Auriko supports the same request/response format as OpenAI. Switch to Auriko by changing two values:- Base URL:
https://api.openai.com/v1→https://api.auriko.ai/v1 - API Key: Use your Auriko API key (starts with
ak_)
Auriko extensions
Auriko responses carry additional fields beyond the OpenAI format.Response extensions
Every chat completion response includes arouting_metadata object with routing and cost details:
warnings carries one or more structured entries:
Request extensions
Pass routing options to optimize your requests via thegateway field:
Request metadata
Attach custom metadata to requests for tracking and observability viagateway.metadata. Auriko strips this metadata before forwarding to the provider.
| Field | Type | Limits |
|---|---|---|
tags | string[] | Max 100 tags, each max 50 chars |
user_id | string | Max 255 chars |
trace_id | string | Max 255 chars |
custom_fields | Record<string, string> | Max 10 fields, keys max 50 chars, values max 200 chars |
Response headers
Every response carries custom headers. See Response headers for the full reference.Authentication
Learn how to authenticate your requests