QuickstartStart
In this guide you create an account, make an API key and send your first chat completion. Every endpoint lives under https://api.kaer.ai/v1.
Before you begin
curl, or Python withpip install openai, or Node.js withnpm install openai.
1. Create an account
Sign up at api.kaer.ai. Your new account gets $10 of free credit, once per network, device and inbox, valid for 90 days. It pays for models straight away.
2. Create a key
- In the dashboard, open Keys and create a key.
- Keep the
modelsscope every new key starts with, and ticksearch,mapsormailif you need them. - Copy the key right away. It starts with
kaer_live_.
3. Make your first call
Export your key as KAER_API_KEY, then send a chat completion. Every sample in these docs reads the key from that variable.
export KAER_API_KEY="kaer_live_..."
curl https://api.kaer.ai/v1/chat/completions \
-H "Authorization: Bearer $KAER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "x1-kaer",
"messages": [{"role": "user", "content": "Hello, world!"}]
}'The response tells you what the call cost: kaer.cost_usd in the body and, for chat that is not streamed, an x-kaer-cost-usd header.