Skip to content
Docs ·Quickstart

Quickstart

Create a key and send your first request

1. Creating an API Key

Create an API key in the console.. The key will only be visible when it’s created, so please copy it right away.

2. Send the first request.

You can use the OpenAI SDK as it is. All you need to do is change the address and key.

from openai import OpenAI

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

answer = client.chat.completions.create(
    model="anthropic/claude-opus-5.5",
    messages=[{"role": "user", "content": "Hello"}],
)
print(answer.choices[0].message.content)

3. Next to see…