gateway and extensions parameters use identical structure in Chat Completions and the Response API. Pass them at the top level of the request body.
Prerequisites
- An Auriko API key
- Python 3.10+ with the OpenAI SDK (
pip install openai) or the Auriko SDK (pip install auriko)- OR Node.js 18+ with the OpenAI SDK (
npm install openai) or@auriko/sdk(npm install @auriko/sdk)
- OR Node.js 18+ with the OpenAI SDK (
Route across models
Route a request across multiple models:Set routing options
Control routing strategy withgateway.routing:
Pass provider extensions
Pass provider-specific parameters withextensions:
Access routing metadata
Every Auriko response includes routing metadata with provider, cost, and latency details. With the Auriko SDK (Python, TypeScript):provider, provider_model_id, model_canonical, routing_strategy, ttft_ms, throughput_tps, cost.usd.
See Routing Options, Advanced Routing, Response Metadata, and Response Headers for details.