AkaRouter Logo

DEVELOPER_SDK_INTEGRATIONS

Integrate AkaRouter directly into your app using standard OpenAI-compatible libraries.

MiniMax M3 (REASONING & VISION)

Frontier vision + reasoning model with massive context.

[CONTEXT]: 1M TOKENS
[PRICING]: 2 POINTS / REQUEST
✓ Vision
Owl Alpha (LONG-CONTEXT)

Long-context heavyweight tuned for agentic tool use and multi-file editing.

[CONTEXT]: 1.0M TOKENS
[PRICING]: 10 POINTS / REQUEST
Text-Only
Nemotron Ultra (LOW-LATENCY)

Reasoning model for complex code, math, and chain-of-thought tasks.

[CONTEXT]: 262K TOKENS
[PRICING]: 1 POINT / REQUEST
Text-Only
python_openai_sdk.py
from openai import OpenAI

# Initialize OpenAI-compatible client pointed at the AkaRouter gateway.
client = OpenAI(
    base_url="https://api.akarouter.dev/v1",
    api_key="YOUR_AKAROUTER_API_KEY"
)

# 1. Text completion — try any alias from the /models catalog.
response = client.chat.completions.create(
    model="akarouter-mini",  # See https://akarouter.dev/models for the full list.
    messages=[{"role": "user", "content": "Hello AkaRouter!"}]
)
print("Text response:", response.choices[0].message.content)

# 2. Vision (image analysis) — only works on vision-capable models.
#    Check the "supports" field in /v1/models, or use the docs cards below.
vision = client.chat.completions.create(
    model="akarouter-mini",
    messages=[
        {
            "role": "user",
            "content": [
                {"type": "text", "text": "Describe this image:"},
                {"type": "image_url", "image_url": {"url": "https://example.com/cat.jpg"}},
            ],
        }
    ],
)
print("Vision response:", vision.choices[0].message.content)