1Create an account
Sign up with a work email and the billing country. API keys open once the account is approved.
2Recharge
Balance is prepaid and held in US$. Every recharge adds 10% extra.
- India accounts recharge in ₹, from ₹500, with GST 18% and a GST tax invoice.
- Accounts outside India recharge in US$, from US$5, with Processing 3%.
Full details: Exchange rate and charges.
3Create an API key
Create a key in the console under API keys. The key is shown once. Store it in an environment variable, not in code.
export AIGHT_API_KEY="sk-aight-..."
4Send the first request
The API is OpenAI-compatible. Point an OpenAI SDK or any HTTP client at the base URL below.
Base URL: https://api.getaight.ai/v1
Python
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.getaight.ai/v1",
api_key=os.environ["AIGHT_API_KEY"],
)
response = client.chat.completions.create(
model="gpt-5.4-mini",
messages=[{"role": "user", "content": "Say hello in Hindi."}],
)
print(response.choices[0].message.content)
cURL
curl https://api.getaight.ai/v1/chat/completions \
-H "Authorization: Bearer $AIGHT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.4-mini",
"messages": [{"role": "user", "content": "Say hello in Hindi."}]
}'
Choose any text model from Models & pricing and use its ID as model.
Endpoints
| Endpoint | Use |
|---|---|
POST /v1/chat/completions | Text and chat models |
POST /v1/embeddings | Embedding models |
GET /v1/models | Models available to the API key |