Space Bunny Alpha rate limits
The hosted Space Bunny Alpha API allows 30 requests per minute per API key by default. Go over it and you get a standard 429 with a Retry-After header. This page is the exact reference to the Space Bunny Alpha rate limits: the per-key limit, how a 429 differs from a 402, what happens when the upstream model is busy, and how to handle all of it from opencode, Cursor, Claude Code, or any OpenAI-compatible SDK.
The per-key request limit
Every call to our OpenAI-compatible endpoint (POST https://spacebunnymodel.com/api/v1/chat/completions) is counted against the sb_live_ key in the Authorization header. The default ceiling is 30 requests per minute per key, measured over a rolling 60-second window. The limit is per key, not per account, so each integration you issue a key to gets its own budget.
- Limit: 30 requests / minute / API key (default).
- Window: rolling 60 seconds, counted per key.
- Scope: the
/api/v1chat-completions surface. It protects the shared upstream key from any single integration. - Over the limit: HTTP
429with aRetry-Afterheader telling you how many seconds to wait.
The Space Bunny Alpha rate limits are a request-rate cap, not a token cap. How much you can actually spend is bounded by your prepaid balance (see below), not by the 30/min figure — the rate limit only stops one key from bursting too fast.
What a 429 looks like
A rate-limited request comes back in the standard OpenAI error shape, so existing SDK retry logic already understands it:
HTTP/1.1 429 Too Many Requests
Retry-After: 42
{
"error": {
"message": "Rate limit exceeded: 30 requests per minute per API key. Retry in 42s.",
"type": "rate_limit_error",
"code": "rate_limit_exceeded"
}
}Read the Retry-After value (seconds) and wait at least that long before retrying. Rate-limited requests are not billed and are not logged to your usage history.
429 vs 402 vs 503 — which did you hit?
Three different conditions produce three different status codes. They mean very different things, so check the code before you retry:
| Status | Code | Meaning | What to do |
|---|---|---|---|
| 429 | rate_limit_exceeded | You sent more than 30 requests in a minute on this key. | Wait for Retry-After seconds, then retry. Lower your concurrency. |
| 402 | insufficient_credits | Your prepaid balance is at or below zero. The API is prepaid. | Top up at /dashboard. Retrying without credit won't help. |
| 503 | — | The upstream model is momentarily busy (an upstream 429 is surfaced as a 503 on our side). | Retry in a few seconds. OpenAI-compatible SDKs retry 5xx automatically. |
| 401 | invalid_api_key | Missing, malformed, or revoked sb_live_ key. | Check the Authorization: Bearer sb_live_… header; reissue the key if needed. |
The common trap: treating a 402 like a 429 and retrying in a loop. A 402 means you are out of prepaid credit, not going too fast — no amount of waiting clears it, you need to top up.
How the balance bounds usage
Beyond the request rate, the real bound on usage is your prepaid balance. Billing is metered on total tokens (prompt + completion, including reasoning tokens) at one blended rate per model:
space-bunny-alpha— $1.50 per 1M total tokens (1M-context flagship).space-bunny-flash— $0.50 per 1M total tokens (fast, budget tier).
The API is prepaid from the first token: a balance of zero returns 402 insufficient_credits with a link to top up. Credit packs start at $5. So the 30/min rate limit controls burst speed; your balance controls total spend. See the pricing page for the current packs.
Handling limits in your agent or SDK
You rarely need custom code — most OpenAI-compatible clients already respect the Space Bunny Alpha rate limits, backing off on 429 and retrying 5xx. A few practical rules:
- Honor
Retry-After. On a429, wait the number of seconds in the header before the next call, then retry with exponential backoff. - Cap concurrency. 30 requests/minute is roughly one every two seconds; a parallel agent loop with 10 workers will blow past that. Keep in-flight requests modest, or add a small client-side queue.
- Let the SDK retry 5xx. The official
openaiSDKs retry502/503automatically, which covers the "model busy" case — don't disable that. - Don't retry a
402or401. Those are account/auth problems, not transient; surface them to the user instead. - Prefer fewer, bigger calls. Space Bunny Alpha's 1M-token context lets you send a lot in one request — one large call uses one request slot instead of many small ones.
Hosted endpoint vs OpenRouter limits
If you call the model through OpenRouter instead of our hosted endpoint, the Space Bunny Alpha rate limits are different — OpenRouter sets its own limits on its listing, tied to your OpenRouter credit and account, not to our 30/min per-key figure. Our hosted endpoint gives you one stable sb_live_ key with a predictable per-key request limit and a single prepaid balance. Either way the wire format is plain chat completions; see the OpenRouter setup for that route, or opencode for a coding-agent config.
Need a higher limit?
The default Space Bunny Alpha rate limits are 30 requests per minute per key. If a production workload needs more, reach out at [email protected] with your key prefix and expected throughput and we can raise it.
Quick FAQ
What are the Space Bunny Alpha rate limits?
30 requests per minute per sb_live_ API key by default, over a rolling 60-second window. Exceeding it returns a 429 with a Retry-After header.
Why am I getting a 429 from Space Bunny?
You sent more than 30 requests in a minute on one key. Wait for the seconds given in Retry-After, lower your concurrency, and retry. It is not a billing error — that's a 402.
Is the rate limit per key or per account?
Per key. Each sb_live_ key gets its own 30/min budget, so separate integrations don't compete for the same allowance.
Does a 429 cost credits?
No. Rate-limited requests are rejected before the model runs, so they aren't billed and don't appear in your usage history.
How do I handle rate limits in opencode or Cursor?
They use OpenAI-compatible clients that back off on 429 and retry 5xx automatically. Keep concurrency modest and let the client's built-in retry handle the rest. See the opencode and how-to-use guides.