Days of setup
Most platforms want projects, regions and deployments before you see a single token.
Developers
Sign up, create a key, send one POST request. That is the whole integration. Everything else, routing, fail-over, caching and metering, happens on our side.
is the whole integration
works from any language
monthly token allowance included
The problem
Most platforms want projects, regions and deployments before you see a single token.
You should not need a special package to send a prompt and read a response.
Experiments should tell you what they cost as you run them.
Capabilities
In the console, open Settings and create an API key. Copy it immediately: it is shown once and stored only as a hash.
POST https://<your-host>/api/ainf/inference with the header Authorization: Bearer <your key>, Content-Type: application/json and a body of {"prompt": "Write a haiku about latency"}.
The response is {"ok": true, "result": {...}} with response, model_id, model_name, input_tokens, output_tokens, total_tokens, latency_ms, cache_hit, price_micros and status.
Add "capability": "code" (or vision, reasoning and others in the catalog). Without it, chat is assumed and the lowest-priced enabled chat model answers.
Add "model_id" with an id from the model catalog to use exactly that model.
Optional temperature (0 to 2, default 0.7) and max_tokens (1 to 8192, default 1024) control the generation.
Use cases
The fastest way to see a real response and its price.
Any HTTP client in any language works. Keep the key server-side.
Configure a generic HTTP step with the URL, header and JSON body.
No code at all: run prompts from the console with your signed-in session.
How it works
Create an account. Your free monthly token allowance starts immediately.
Settings, API keys, create. Store it in your secret manager.
Send {"prompt": "..."} with your bearer key and read result.response.
Control
API keys are shown once at creation and stored only as a hash. Revoke any key instantly from Settings.
Every request carries its own receipt: tokens in, tokens out, latency and price. Nothing is billed that you cannot trace.
Per-account rate limits and a free monthly allowance keep experiments safe before they become production.
You choose exactly what you send. Repeat prompts can be served from your cache, and cache hits are never billed.
For developers
Send a prompt and a capability, or name a model. One bearer key, one small JSON body, and a full receipt on every response.
curl https://YOUR-DOMAIN/api/ainf/inference \
-H "Authorization: Bearer $AI_INFERENCE_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{"prompt":"Summarise this ticket in one line","capability":"chat"}'{"prompt": "your text"}. The prompt must be a non-empty string. Every other field is optional.
Send Authorization: Bearer <your API key>. Requests from the signed-in console use your session instead.
No package is needed. The API is plain HTTPS and JSON, so any HTTP client works.
The exact price of the call in millionths of a US dollar. Cached responses and calls inside your free allowance report zero.
Create a key and send one request. The free allowance covers it.