Docs/Getting started

Quickstart

Follow three steps to make a first request: set a key, point the base_url and send a chat completion.

On this page

1. Get an API key

Create a key on the console's “API Keys” page. The full value is shown once — store it in a secret manager or environment variable immediately. See Get an API key.

bash
export APIONE_API_KEY="YOUR_APIONE_KEY"

2. Point at the APIONE base_url

If your project already uses the OpenAI SDK, two lines of configuration change — the SDK, request body and response shape stay the same.

FieldValue
Base URLhttps://api.apione.ai/v1
API keyYOUR_APIONE_KEY
Model nameA model ID, e.g. claude-sonnet-4-6

3. Send your first request

bash
curl https://api.apione.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIONE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      { "role": "user", "content": "Explain what an API gateway is in one sentence." }
    ]
  }'
python
# pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apione.ai/v1",
    api_key="YOUR_APIONE_KEY",
)

resp = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Explain what an API gateway is in one sentence."}],
)
print(resp.choices[0].message.content)
javascript
// npm i openai
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.apione.ai/v1",
  apiKey: process.env.APIONE_API_KEY,
});

const resp = await client.chat.completions.create({
  model: "claude-sonnet-4-6",
  messages: [{ role: "user", content: "Explain what an API gateway is in one sentence." }],
});
console.log(resp.choices[0].message.content);
Tip

Swap model for gpt-5.6-sol, gemini-2.5-pro or deepseek-v4-flash — nothing else changes. Full names are in the model list.

Check that it worked

The response contains choices[0].message.content and a usage object. On a 4xx, check the error codes — the two most common causes are stray whitespace around the key and a base_url missing /v1.

Next

Contact us

Something unclear, or need a human? Pick the channel that fits your question.