Bring a key. Get tokens.
An OpenAI-compatible gateway in front of the ring. Point any client at the base URL, send a bearer key, and chat completions, streaming and tool calls behave the way they do against OpenAI. Search rides along, gated by the same key.
A base URL and a key.
Three requests, all real. Replace the key placeholder with yours and they run as written.
# stream a completion curl https://api.snail3d.com/v1/chat/completions \ -H "Authorization: Bearer snail-YOUR-KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "snail-top", "messages": [{"role": "user", "content": "explain the ring in one paragraph"}], "stream": true }'
from openai import OpenAI client = OpenAI( base_url="https://api.snail3d.com/v1", api_key="snail-YOUR-KEY", ) stream = client.chat.completions.create( model="snail-top", messages=[{"role": "user", "content": "what runs on the ring?"}], stream=True, ) for chunk in stream: print(chunk.choices[0].delta.content or "", end="")
# SearXNG, behind the same key curl "https://api.snail3d.com/v1/search?q=helix+snail" \ -H "Authorization: Bearer snail-YOUR-KEY"
Standard shape, nothing new.
No SDK of ours to install. If a client takes a base URL, it works.
OpenAI-compatible
Chat completions, models and the usual request body. The official SDKs, OpenWebUI, Hermes and your own scripts all take it.
Streaming
Server-sent events. Set "stream": true and read deltas, with usage in the final chunk.
Tool calls
Function calling passes through untouched, so agents and loops work the same way they do upstream.
Key-gated search
A SearXNG instance behind the same key. Web results without the tracking, at /v1/search?q=….
Limits sit on the key.
No metered billing. A key carries the rules, and the gate enforces them before the ring sees the request.
| Field | What it does |
|---|---|
| max_concurrency | How many requests may run at once. Past it the gate answers 429. Blank means no cap. |
| models | Allow-list of model names. Blank means every alias. A name outside the list answers 403. |
| max_prompt_tokens | Ceiling on a single prompt, rejected at the gate. Blank falls back to the global cap. |
| active_hours | A window such as 08:00-22:00 during which the key works. Blank means always. |
| expires | Days from issue. After that the key is dead, not throttled. |
| no_thinking | Forces reasoning off for every request on the key. |
GET /health needs no key and returns 200 with the
backend and search state — that is what the dot at the top of this page reads.
GET /v1/models requires a key and answers 401 without one, so it is a poor liveness check.
Need a key?
Keys are hand-issued from the workshop. Say what you are building and how hard you will lean on it. Existing keys are managed in the console.