Skip to main content
Install an SDK, set your API key, and make a chat completion call.

Prerequisites

1. Get an API Key

Sign Up

Create your account and get an API key from the dashboard
Base URL: Use https://api.auriko.ai/v1 as your base URL with the OpenAI SDK, Auriko SDK, or cURL. The Anthropic SDK and Claude Code append /v1 on their own, so use https://api.auriko.ai instead.

2. Install

pip install openai

3. Make Your First Request

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AURIKO_API_KEY"],
    base_url="https://api.auriko.ai/v1"
)

response = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "Hello!"}]
)

print(response.choices[0].message.content)

4. Enable Routing Features (Optional)

response = client.chat.completions.create(
    model="gpt-5.4",
    messages=[{"role": "user", "content": "Hello!"}],
    extra_body={"gateway": {"routing": {
        "optimize": "cost-focus",   # Optimize for cost
        "max_ttft_ms": 1000,        # Max 1s to first token
        "ttft_percentile": "p50",
    }}}
)

Next Steps

API Reference

Full API documentation

Routing Options

Configure cost/latency optimization

Streaming

Real-time streaming responses

Tool Calling

Let LLMs call your functions

Vision

Analyze images with chat completions

Structured Output

Get JSON responses matching a schema

LangChain

Use with LangChain

Machine-readable sources

You can access Auriko’s documentation in machine-readable formats for AI agents and programmatic use.