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

  1. Create an account, top up your credit and turn on pay-as-you-go on Credit.
  2. Create a key on API keys. It starts with sk-live- and is shown once.
  3. Point your client at https://api.skiddle.my.id (OpenAI-style clients usually want https://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

EndpointAPIStreaming
POST /v1/chat/completionsOpenAIyes
POST /v1/completionsOpenAI (legacy)yes
POST /v1/responsesOpenAI Responsesyes
POST /v1/embeddingsOpenAI—
POST /v1/messagesAnthropicyes
POST /v1/messages/count_tokensAnthropic (free)—
POST /v1beta/models/{model}:generateContentGemini (also on /v1)—
POST /v1beta/models/{model}:streamGenerateContentGemini (also on /v1)yes (SSE or JSON array)
POST /v1beta/models/{model}:countTokensGemini (free, also on /v1)—
GET /v1/modelsOpenAI / 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).

StatusCodeMeaning
400invalid_requestBody is not valid JSON or has no model field.
401missing_api_key · invalid_api_keyNo key, or the key is unknown.
401api_key_revoked · api_key_expiredThe key was revoked or passed its expiry date.
402quota_exhaustedYour plan's daily quota for the model is used up. The message says when it resets.
402payg_disabledPay-as-you-go is off for the account. Turn it on in the console (Credit).
402insufficient_creditNot enough credit left to start the request. Top up.
403model_not_in_planYour plan doesn't cover the model, and credit can't pay for it.
403model_not_in_paygThe model isn't sold pay-as-you-go.
403model_not_allowedThe key is restricted to other models.
403token_limit_reachedThe key hit its own token limit.
403account_suspendedThe account is suspended.
404model_not_foundNeither a model id nor an alias matches.
413request_too_largeRequest body over the gateway limit (32 MB).
429rate_limit_exceededYour key's or your plan's requests-per-minute limit. Honor Retry-After.
429upstream_rate_limitedEvery provider for the model is rate limited right now.
502upstream_unavailableEvery routing attempt failed. Safe to retry.
503no_upstreamThe model has no active route right now.
504gateway_timeoutThe request hit the gateway's time limit before a response started. Retry, or ask for a shorter response.
in streamupstream_stream_interruptedThe provider broke off a stream after it started. Retry the request.
in streamgateway_timeoutA 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 API

Add 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 API

In ~/.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-compatible

Settings → 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 Anthropic

API 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-compatible

In 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-compatible
export 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.