Quickstart
Discover an available model and make your first request with a regular API key.
Building an agent? Start with the agent integration guide for model discovery, tool-call examples and directly readable Markdown.
Introduction
Aether API gives you access to models from multiple providers through OpenAI-compatible routes. Chat, image, audio, embeddings, and more with one API key.
Install the SDK
We recommend using the official OpenAI SDK for the best experience. Install the Python package with pip or the JavaScript package with npm:
pip install openai
# Or, for JavaScript:
npm install openaiMake your first request
Grab your API key from the dashboard and store it privately as AETHER_API_KEY. Read the public catalogue, choose an exact ID whose supported_endpoints includes /v1/chat/completions, then set AETHER_MODEL to that ID. Generation can consume credits; the separately enabled sandbox is simulated.
curl --fail-with-body https://api.aetherapi.dev/v1/modelsChoose your preferred language. The examples require those two environment variables; cURL also requires jq.
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.aetherapi.dev/v1",
api_key=os.environ["AETHER_API_KEY"]
)
response = client.chat.completions.create(
model=os.environ["AETHER_MODEL"],
messages=[{"role": "user", "content": "Hello, world!"}]
)
print(response.choices[0].message.content)JavaScript
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.aetherapi.dev/v1",
apiKey: process.env.AETHER_API_KEY,
});
const response = await client.chat.completions.create({
model: process.env.AETHER_MODEL,
messages: [{ role: "user", content: "Hello, world!" }],
});
console.log(response.choices[0].message.content);cURL
jq -n --arg model "$AETHER_MODEL" \
'{model: $model, messages: [{role: "user", content: "Hello, world!"}]}' \
| curl --fail-with-body https://api.aetherapi.dev/v1/chat/completions \
-H "Authorization: Bearer $AETHER_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @-Tip
Select the protocol and endpoint advertised for the model. OpenAI-compatible text routes work with the corresponding SDK methods; other protocols and advanced features need their own validation.Connect with Pi
Pi can use AetherAPI as a custom provider. Run the installer, enter your AetherAPI key, then start pi and choose an AetherAPI model from /model.
curl -fsSL https://aetherapi.dev/pi/install | bashRe-run the same command whenever AetherAPI publishes new Pi models. The installer updates only the AetherAPI provider entry and keeps your other Pi providers intact.