Guessing where time goes
Without per-call latency, slow features are hard to diagnose.
Latency
Users notice waiting. Choose responsive models, keep prompts and outputs lean, let repeats come from cache and measure latency on every call so you know what to fix.
latency_ms on every response
no generation needed
shorter prompts, tighter outputs
The problem
Without per-call latency, slow features are hard to diagnose.
Long boilerplate adds time on every single call.
Generating text nobody reads still costs time.
Capabilities
Each result reports how long the call took, so you can track it in your own monitoring.
The model catalog shows typical latency figures for each model, so you can compare before you choose.
Identical prompts inside the cache window skip generation entirely.
A tighter max_tokens and a clear instruction on length reduce generation time.
A busy model is skipped for another eligible one rather than leaving you waiting on an error.
Request history shows latency per call, so outliers are easy to spot.
Use cases
Pick responsive models and keep outputs short.
Trade latency for price where nobody is waiting.
Lean on the cache for instant answers.
Light models for quick intermediate steps.
How it works
Log latency_ms from every response.
Test candidate models in the playground and check catalog latency figures.
Shorten prompts, cap max_tokens and stabilise prompts for cache hits.
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"}'The time we spent completing the request, including any fail-over attempts.
Yes. They skip generation and return the stored answer.
Yes, alongside tokens and price for every run.
No. Each request returns the complete response when it finishes, so keep interactive outputs short.
Check latency in request history and start trimming.