API Docs
Call every model on this site with one API key. The API is compatible with the OpenAI, Claude (Anthropic) and Gemini protocols, so the official SDKs from these three providers and common clients work after changing the base URL and key. The URLs and models in the examples below come from this site; add your key and run them as is.
Quick start
- Sign in to the console and create a key under API Keys. Create an API key
- Use the API URL below as the base URL of your SDK or client (OpenAI SDKs need /v1 appended).
- Put the key in the API_KEY environment variable and run the example below.
API endpoint
Set the Base URL in your client or SDK to the address below, then add your API key
https://api.88si.si/v1curl https://api.88si.si/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5.5",
"messages": [
{
"role": "user",
"content": "Explain quantum entanglement in one paragraph."
}
],
"temperature": 0.7
}'
Authentication
Every request must carry your API key. Each protocol passes it its own way, and the gateway accepts all of them:
| Protocol | Header |
|---|---|
| OpenAI compatible (chat, images, audio, video, …) | Authorization: Bearer <API_KEY> |
| Claude (Anthropic Messages) | x-api-key: <API_KEY> · Authorization: Bearer <API_KEY> |
| Gemini native | x-goog-api-key: <API_KEY> · ?key=<API_KEY> |
A key spends your quota: never put it in front-end code or commit it to a repository. If it leaks, revoke it in the console and create a new one. Calls are bound by the organization quota pool, department budgets and member limits.
Endpoints
All endpoints share one API URL. Only endpoints that at least one model on this site supports are listed; see a model's API tab in the model market for the formats it supports.
| Endpoint | Format | Purpose |
|---|---|---|
| GET /v1/models | — | List the models the current key can use |
Streaming
Add "stream": true to a chat request to receive Server-Sent Events (text/event-stream): one data: line per chunk, ending with data: [DONE]. The Claude and Gemini formats stream too (Gemini uses :streamGenerateContent?alt=sse).
curl https://api.88si.si/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-5.5", "stream": true, "messages": [{"role": "user", "content": "Hello"}]}'
data: {"object":"chat.completion.chunk","choices":[{"index":0,"delta":{"content":"Hi"}}]}
data: {"object":"chat.completion.chunk","choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
data: [DONE]
Note: if the upstream fails after the stream has started, the HTTP status is still 200 and the error arrives as a data: {"error": …} line in the stream. Clients should handle it.
Error codes
Errors return a non-2xx status with a uniform JSON body. The message contains a request id; include it when contacting support.
{
"error": {
"code": "model_not_found",
"message": "No available channel for model xxx under group default (request id: …)",
"type": "new_api_error"
}
}
| Status | code | Meaning and what to do |
|---|---|---|
| 400 | invalid_request | Invalid request (missing field, value out of range, parameter the model doesn't support). Fix it per the message and retry. |
| 401 | — | Missing, wrong or revoked key. |
| 403 | insufficient_user_quota | Insufficient quota: the organization pool, department budget or personal limit is used up, or the key may not use this model. |
| 429 | — | Too many requests, rate limited. Retry later or lower concurrency. |
| 503 | model_not_found | No channel currently serves this model: the model name is wrong, or your organization's group doesn't include it. |
| 502 | — | Upstream error or timeout (also 500 / 504). The gateway already retried on backup channels; try again later. |
Clients
Common AI coding tools and chat clients connect directly with the API URL and your key:
Claude Code
export ANTHROPIC_BASE_URL=https://api.88si.si
export ANTHROPIC_AUTH_TOKEN=$API_KEY
claude
Codex CLI
export OPENAI_BASE_URL=https://api.88si.si/v1
export OPENAI_API_KEY=$API_KEY
codex
Other OpenAI-compatible clients
Cherry Studio, Chatbox, LobeChat, Cursor and other tools with a custom OpenAI endpoint: set the base URL to https://api.88si.si/v1, the API key to your key, and use model names from the model market.
Billing and quota
- Each model's price (per token, per request or per usage) is listed in the model market: Open the model market
- Calls are charged to the organization quota pool and bound by department budgets and member limits; when quota runs out you get a 403.
- Failed calls (upstream errors, timeouts, rejections) are not charged; the pre-deducted quota is refunded.
- Model, usage and cost of every call are listed under Usage in the console.