Getting started / 02
Quickstart
From account to first request in a few focused steps.
01
Choose your model
Choose a model currently available through Aonis.
Available through Aonis
02
Add your API key
Paste a key to fill the examples locally, or leave this blank to use the placeholder value.
Your key stays in your browser and is only used to fill the examples below.
03
Choose your integration
These examples use the verified OpenAI-compatible base URL.
04
Copy configuration
The selected model and local key are applied to this example. Copy it when you are ready to run it from a secure environment.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: "YOUR_AONIS_API_KEY",
baseURL: "https://api.aonis.space/v1",
});
const response = await client.chat.completions.create({
model: "claude-sonnet-5",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0]?.message.content);05
Send your first request
Requests use the Chat Completions path shown below. Create and manage production credentials from your dashboard.
API
https://api.aonis.spaceEndpoint
POST /v1/chat/completionsPrefer a generated setup? Use the Configuration Generator.