Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.opper.ai/llms.txt

Use this file to discover all available pages before exploring further.

You’ll get an API key, pick an API, and run one call. The rest of the docs build on this.

Make your first call

1

Get an API key

Sign in at platform.opper.ai and create a key. Each key belongs to one project, so make a new project for each app or environment.Calls draw from your account balance, so add credits under Billing before your first call.Put the key in your shell:
export OPPER_API_KEY="your-api-key"
2

Pick an API and run your first call

There are two patterns. The Chat API is multi-turn chat with messages and tools, which suits chatbots and agents. The JSON API handles one-shot tasks: send an input, get a typed JSON object back. Pick the one that matches what you’re building.
Messages with roles, optional tools, multiple turns. It works with the OpenAI, Anthropic, and Google AI SDKs.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.opper.ai/v3/compat",
    api_key=os.environ["OPPER_API_KEY"],
)

response = client.chat.completions.create(
    model="openai/gpt-5-mini",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
The same trick works with the Anthropic and Google AI SDKs. See Drop-in SDKs for all three.
3

See it in the platform

Open platform.opper.ai and click into the most recent trace. You’ll see your call, the model that ran it, the cost, the latency, and any Control Plane rules that fired.

What to do next

Pick the right API

A short guide to choosing between Chat, JSON, and Realtime.

Models

Browse the 300+ models Opper supports and how to call them.

Drop-in SDKs

Use the OpenAI, Anthropic, or Google AI SDK against Opper.

Control Plane

Observe, route, and guard everything you build.