Get started
Quickstart
Make your first metered API call in 60 seconds.
1. Get a key
Sign up at runaii.cloud (you get $1 in free credits), then create a key
at Console → API Keys. Keys start with sk-runaii- and are shown once — store
them somewhere safe.
2. Point your SDK at us
The API is OpenAI-compatible — if you already use the OpenAI SDK, this is a two-line change:
from openai import OpenAI
client = OpenAI(
api_key="sk-runaii-...", # your runaii key
base_url="https://api.runaii.cloud/v1", # ← the only change
)
resp = client.chat.completions.create(
model="glm-5.3-flash", # or any id from /api/v1/models
messages=[{"role": "user", "content": "Hello, fleet."}])
print(resp.choices[0].message.content)
print(resp.usage.cost) # exactly what you were charged
3. Or plain curl
curl https://api.runaii.cloud/v1/chat/completions \
-H "Authorization: Bearer sk-runaii-..." \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3-flash",
"messages": [{"role": "user", "content": "Hello, fleet."}]
}'
What you get back
{
"choices": [{ "message": { "content": "Hello, fleet." } }],
"usage": {
"prompt_tokens": 14,
"completion_tokens": 9,
"total_tokens": 23,
"cost": 0.000006
}
}
usage.cost is exactly what your balance was charged for this request — metered per
token, verified to the micro. Check your running balance any time with
GET /api/v1/key.