CostIQDocs

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/models
POST/v1/chat/completions
Base URLhttps://inference.costiq.xyz/v1
Default aliasgeneral-fast
AuthenticationBearer key
StreamingServer-sent events

Your 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
  }'

Where to go next