Skip to main content
Auriko’s 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)

Route across models

Route a request across multiple models:

Set routing options

Control routing strategy with gateway.routing:
See Routing Options for all strategies and Advanced Routing for constraint combinations.

Pass provider extensions

Pass provider-specific parameters with extensions:
See Extensions and Thinking for all provider extension fields.

Access routing metadata

Every Auriko response includes routing metadata with provider, cost, and latency details. With the Auriko SDK (Python, TypeScript):
For routing metadata with the OpenAI SDK, see OpenAI Compatibility. For streaming, access routing metadata from the completed response:
For routing metadata with the OpenAI SDK, see OpenAI Compatibility. Fields: 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.