Skip to content

Start here

What is Cairva

Cairva is a private market for AI inference. Buyers negotiate capacity with authorized suppliers and call the agreement through an OpenAI-compatible API.

On this page

You describe the inference capacity you need, verified suppliers quote you privately, and the version you accept becomes an allocation: a fixed token allowance, delivery window and set of rate limits that your code calls through an OpenAI-compatible API.

You don't buy credits from a price list. You negotiate an agreement for one model, a token allowance, a window and limits, and the gateway enforces exactly those terms on every request.

Note

Cairva is in its Genesis phase. The only route open today is a sandbox route serving the open-weight model gemma4:e2b through Ollama on Cairva's development infrastructure. The full deal flow runs on it, but no money moves and no live commercial supply is listed yet. See Sandbox.

What you can do here

The API in one minute

The gateway lives under one base URL and speaks the OpenAI chat completions format. A key is bound to one allocation, so it can only call that allocation's model and spend that allocation's allowance.

MethodPathScopeWhat it does
POST/v1/chat/completionsinferenceRuns a chat completion, streamed or not, and meters it
GET/v1/modelsinferenceLists the one model your key can call
GET/v1/allocations/currentusage:readQuota, usage, holds, remaining allowance and limits
GET/v1/usageusage:readMetered usage events, newest first
Terminal
curl https://cairva.xyz/v1/chat/completions \
  -H "Authorization: Bearer $CAIRVA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemma4:e2b", "max_tokens": 200,
       "messages": [{"role": "user", "content": "Say hello in five words."}]}'

Every response carries a cairva object with the request id, the allocation id and the allowance left after the request. Read Chat completions for the full shape.

Where to go next

All pages