Skip to main content
This guide uses an OpenAI-compatible SDK. To wire up a coding agent instead (Claude Code, Cursor, Cline, aider, Codex), see Coding Agents.

Step 1: Get your API key

Sign up at omniakey.com and create a key in the Dashboard. New accounts include free credit, so you can run these examples right away — no top-up needed to start. Every request authenticates with Authorization: Bearer <your-key>.

Go to Dashboard

Create your API key

Step 2: Install an SDK

OmniaKey works with the official OpenAI SDKs — no OmniaKey-specific library needed.
pip install openai

Step 3: Make your first request

Set the base URL to https://api.omniakey.com/v1 and use your key. Pick any model id from Models — here we use claude-opus-4-8.
from openai import OpenAI

client = OpenAI(
    api_key="your-omniakey-api-key",
    base_url="https://api.omniakey.com/v1",
)

response = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Explain what a race condition is."}],
)

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

Step 4: Stream responses

Set stream: true to receive tokens as they are generated:
stream = client.chat.completions.create(
    model="claude-opus-4-8",
    messages=[{"role": "user", "content": "Write a haiku about clean code."}],
    stream=True,
)

for chunk in stream:
    if chunk.choices[0].delta.content is not None:
        print(chunk.choices[0].delta.content, end="")

Next steps

API Reference

All three protocols, the model matrix, and curl/SDK examples

Coding Agents

Configure Claude Code, Cursor, Cline, aider, and Codex

Models

Browse the full Claude, GPT, and Gemini lineup