CostIQ API · v1
AI inference through one clean API.
Use an OpenAI-compatible endpoint, a CostIQ-issued key, and the stable general-fast model alias to add inference to products, tools, and agent workflows.
The API
CostIQ exposes a deliberately small public surface. Discover the models available to your key, then create chat completions with or without streaming.
GET
/v1/modelsPOST
/v1/chat/completionsBase URL
https://inference.costiq.xyz/v1Default alias
general-fastAuthentication
Bearer keyStreaming
Server-sent eventsYour credentials
Every person, application, and environment should use a separate CostIQ key. Each credential can have its own expiry, model access, request rate, token rate, concurrency, and estimated-spend budget.
Make a request
With COSTIQ_BASE_URL and COSTIQ_API_KEY set in your shell:
cURL
curl "$COSTIQ_BASE_URL/chat/completions" \
-H "Authorization: Bearer $COSTIQ_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "general-fast",
"messages": [
{"role": "user", "content": "Explain this in one sentence."}
],
"stream": false
}'