Docs & agent guides
One base URL, one key, every model. The gateway speaks the OpenAI, Anthropic and Gemini APIs, so most tools only need a base URL and an API key.
Quickstart
- Create an account, top up your credit and turn on pay-as-you-go on Credit.
- Create a key on API keys. It starts with
sk-live-and is shown once. - Point your client at
https://api.skiddle.my.id(OpenAI-style clients usually wanthttps://api.skiddle.my.id/v1).
curl https://api.skiddle.my.id/v1/chat/completions \
-H "Authorization: Bearer sk-live-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"qwen-3.8-flash","messages":[{"role":"user","content":"Hello"}]}'Authentication
Send your key in any of these, whichever your SDK uses:
Authorization: Bearer sk-live-…(OpenAI SDKs, most tools)x-api-key: sk-live-…(Anthropic SDKs, Claude Code)x-goog-api-key: sk-live-…or?key=sk-live-…(Gemini SDKs)
Keys can be limited to specific models, a requests-per-minute rate and a lifetime token budget.
Endpoints
| Endpoint | API | Streaming |
|---|---|---|
| POST /v1/chat/completions | OpenAI | yes |
| POST /v1/completions | OpenAI (legacy) | yes |
| POST /v1/responses | OpenAI Responses | yes |
| POST /v1/embeddings | OpenAI | — |
| POST /v1/messages | Anthropic | yes |
| POST /v1/messages/count_tokens | Anthropic (free) | — |
| POST /v1beta/models/{model}:generateContent | Gemini (also on /v1) | — |
| POST /v1beta/models/{model}:streamGenerateContent | Gemini (also on /v1) | yes (SSE or JSON array) |
| POST /v1beta/models/{model}:countTokens | Gemini (free, also on /v1) | — |
| GET /v1/models | OpenAI / Anthropic format | — |
Requests are forwarded in the format you send. Calling a model through an API style its provider doesn't use natively (for example a GPT model through /v1/messages) works only where the upstream translates it — check the model on System status first.
Models & prices
Use the exact model id in the model field. Listed aliases (dated or short names) resolve to the same model. GET /v1/models returns what your key may use.
Each model has one price per 1M tokens, input and output alike. Prompt tokens the provider serves from its cache and tokens written to its cache cost the same.
Prices are set in US dollars and charged in rupiah at the European Central Bank's rate, checked every 6 hours. The pricing page shows each price in both, with the rate in use.
cost = (input + cache_write + cache_read + output) × price / 1,000,000
Reasoning ("thinking") tokens count as output.
Credit & billing
- Top up credit in Rupiah (QRIS, card or voucher), and turn on pay-as-you-go. Credit doesn't expire.
- Each request briefly holds an estimate of its cost; the exact cost is charged right after it finishes. A long answer can take your credit slightly below zero; the next top-up covers it.
- Every request appears in Usage with its tokens and cost. Export it as CSV any time.
Errors
Errors come back in the envelope of the API you called (OpenAI, Anthropic or Gemini style).
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | Body is not valid JSON or has no model field. |
| 401 | missing_api_key · invalid_api_key | No key, or the key is unknown. |
| 401 | api_key_revoked · api_key_expired | The key was revoked or passed its expiry date. |
| 402 | quota_exhausted | Your plan's daily quota for the model is used up. The message says when it resets. |
| 402 | payg_disabled | Pay-as-you-go is off for the account. Turn it on in the console (Credit). |
| 402 | insufficient_credit | Not enough credit left to start the request. Top up. |
| 403 | model_not_in_plan | Your plan doesn't cover the model, and credit can't pay for it. |
| 403 | model_not_in_payg | The model isn't sold pay-as-you-go. |
| 403 | model_not_allowed | The key is restricted to other models. |
| 403 | token_limit_reached | The key hit its own token limit. |
| 403 | account_suspended | The account is suspended. |
| 404 | model_not_found | Neither a model id nor an alias matches. |
| 413 | request_too_large | Request body over the gateway limit (32 MB). |
| 429 | rate_limit_exceeded | Your key's or your plan's requests-per-minute limit. Honor Retry-After. |
| 429 | upstream_rate_limited | Every provider for the model is rate limited right now. |
| 502 | upstream_unavailable | Every routing attempt failed. Safe to retry. |
| 503 | no_upstream | The model has no active route right now. |
| 504 | gateway_timeout | The request hit the gateway's time limit before a response started. Retry, or ask for a shorter response. |
| in stream | upstream_stream_interrupted | The provider broke off a stream after it started. Retry the request. |
| in stream | gateway_timeout | A stream ran past the gateway's time limit and was cut off. Retry, or ask for a shorter response. |
Rate limits
Each key has a requests-per-minute limit, and your plan has one across all your keys. Responses carry X-RateLimit-Limit-Requests and X-RateLimit-Remaining-Requests for the tighter of the two; a 429 includes Retry-After in seconds. X-Billing-Source says what pays for the request: quota (your plan) or credit. Every response has an X-Request-Id — include it when contacting support.
Agent setup
Claude Code
Anthropic Messages APIAdd to your shell profile (or the env block of ~/.claude/settings.json):
export ANTHROPIC_BASE_URL="https://api.skiddle.my.id" export ANTHROPIC_AUTH_TOKEN="sk-live-YOUR_KEY" export ANTHROPIC_MODEL="claude-fable-5" export ANTHROPIC_SMALL_FAST_MODEL="claude-fable-5"
Setting the small/fast model avoids errors if a background model isn't offered here.
Codex CLI
OpenAI Responses APIIn ~/.codex/config.toml, then export AERIA_API_KEY=sk-live-YOUR_KEY:
model = "gpt-5.6-luna" model_provider = "aeria" [model_providers.aeria] name = "Aeria Gateway" base_url = "https://api.skiddle.my.id/v1" env_key = "AERIA_API_KEY" wire_api = "responses"
env_key is the variable's name, not the key itself.
Cursor
OpenAI-compatibleSettings → Models → API keys: enter your key, enable Override OpenAI Base URL with https://api.skiddle.my.id/v1, then add model ids (e.g. claude-fable-5) as custom models. Cursor calls the gateway from its own servers, so the URL must be public HTTPS.
Cline · Roo Code · Kilo Code
OpenAI-compatible or AnthropicAPI provider OpenAI Compatible: base URL https://api.skiddle.my.id/v1, your key, model id claude-fable-5. Or provider Anthropic with a custom base URL https://api.skiddle.my.id.
OpenCode
OpenAI-compatibleIn opencode.json (key from AERIA_API_KEY), then pick aeria/claude-fable-5:
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"aeria": {
"npm": "@ai-sdk/openai-compatible",
"name": "Aeria Gateway",
"options": { "baseURL": "https://api.skiddle.my.id/v1", "apiKey": "{env:AERIA_API_KEY}" },
"models": { "claude-fable-5": {}, "gpt-5.6-luna": {} }
}
}
}Aider
OpenAI-compatibleexport OPENAI_API_BASE="https://api.skiddle.my.id/v1" export OPENAI_API_KEY="sk-live-YOUR_KEY" aider --model openai/claude-fable-5
Gemini CLI
Gemini API (API-key mode)export GOOGLE_GEMINI_BASE_URL="https://api.skiddle.my.id" export GEMINI_API_KEY="sk-live-YOUR_KEY" gemini -m qwen-3.8-flash
Use the bare gateway URL (no path). Only models routed for the Gemini API style will answer here.
OpenAI & Anthropic SDKs
Your own code# Python — OpenAI
from openai import OpenAI
client = OpenAI(base_url="https://api.skiddle.my.id/v1", api_key="sk-live-YOUR_KEY")
client.chat.completions.create(model="qwen-3.8-flash", messages=[{"role": "user", "content": "Hi"}])
# Python — Anthropic
import anthropic
client = anthropic.Anthropic(base_url="https://api.skiddle.my.id", api_key="sk-live-YOUR_KEY")
client.messages.create(model="claude-fable-5", max_tokens=1024, messages=[{"role": "user", "content": "Hi"}])Streaming
Set "stream": true (or call streamGenerateContent). Events are relayed as they arrive, with the model name shown as the one you requested. For chat completions the gateway always asks the upstream for usage at the end of the stream, so billing is exact; if a stream is cut off before that, usage is estimated and flagged in your Usage log.
If the provider breaks off a stream after it has started, the stream ends with an error event instead of its normal ending (no [DONE] or message_stop), so your SDK raises an error rather than returning a cut-off answer as complete. OpenAI streams carry the code upstream_stream_interrupted, Anthropic streams an api_error, and Gemini streams get an error object with code 502 and status UNAVAILABLE. What was streamed before the break is billed. Retry the request.
A stream that runs past the gateway’s time limit ends the same way, with a message saying so: code gateway_timeout for OpenAI, an api_error for Anthropic, and 504 DEADLINE_EXCEEDED for Gemini. Ask for a shorter response, or split the work.