Plugsky API

Error codes that tell you what to do

Every Plugsky error keeps the OpenAI-compatible error.message, error.type, and legacy error.code. New clients can read error.error_code, error.status, error.retry_after, error.request_id, and error.limit for a precise, actionable response.

Response shape

{
  "error": {
    "message": "You have 12 requests in flight, which is the Starter limit. Retry in 8 seconds.",
    "type": "rate_limit_error",
    "code": "429",
    "param": null,
    "error_code": "plan_concurrency_limit",
    "status": 429,
    "retry_after": 8,
    "limit": {
      "name": "concurrent_requests",
      "limit": 12,
      "used": 12,
      "remaining": 0,
      "reset_at": "2026-11-03T18:55:00Z"
    },
    "request_id": "7ef88ad36ec7d0f0",
    "docs_url": "https://plugsky.com/docs/errors#plan_concurrency_limit"
  }
}

Rate-limit headers

Success and error responses may include:

Retry-After · X-RateLimit-Limit · X-RateLimit-Remaining · X-RateLimit-Reset · X-Request-Id · X-Plugsky-Error-Code · X-Plugsky-Limit-Scope

Honor Retry-After when present. Otherwise use exponential backoff with jitter. Do not retry invalid_api_key, plan_required, or billing_error until the account is fixed.

Codes

HTTPerror_codeWhat it meansWhat to do
401invalid_api_keyKey missing, revoked, or malformed.Create a new key in Dashboard → API Keys.
403plan_requiredFeature is subscriber-only (for example image generation).Upgrade to Hobby or higher.
403forbiddenAuthenticated but not allowed.Check scopes, IP allow-list, or account status.
402billing_errorSubscription or payment needs attention.Open Billing and resolve the invoice.
404model_not_foundModel ID is not in the current catalog.Use GET /v1/models.
400invalid_requestMalformed JSON or missing field.Fix the request body.
400context_too_largePrompt exceeds the selected model's context.Shorten history or choose a larger-context model.
400invalid_tool_schemaTool/function schema rejected by the upstream.Remove unsupported JSON Schema keywords.
429plan_concurrency_limitToo many in-flight requests for the plan.Wait retry_after or upgrade.
429plan_rpm_limitRequests-per-minute limit reached.Pace requests; honor Retry-After.
429plan_tpm_limitTokens-per-minute limit reached.Reduce prompt/output size or wait.
429daily_token_capDaily token allowance used.Wait for 00:00 UTC or upgrade.
429daily_request_capDaily request allowance used.Wait for 00:00 UTC or upgrade.
429daily_rescue_budget_exceededPaid rescue allowance used for today.Free lanes still run; paid fallback resets at 00:00 UTC.
429fair_use_heavy_agentHeavy-agent fair-use guardrail paused paid rescue.Retry free lanes after retry_after; contact support.
429idempotency_in_progressSame Idempotency-Key is already running.Wait briefly; the first result will be reused.
429upstream_capacityProvider capacity is saturated, not your plan limit.Retry in a few seconds.
503upstream_unavailableAll routing lanes failed.Retry after Retry-After (usually 5 s).
503upstream_timeoutUpstream timed out before answering.Retry or use a smaller/faster request.
504gateway_timeoutGateway hard deadline exceeded.Retry with a smaller request.
500internal_errorUnexpected server error.Contact support with request_id.

Free vs paid

Free accounts use NVIDIA only. They never touch FreeLLMAPI or paid lanes. A free request normally sees 429 for plan/capacity limits or 503 if NVIDIA is fully unavailable. Free image generation is 403 plan_required.

Paid accounts retry NVIDIA backups, FreeLLM free lanes, then paid lanes. They normally see only the terminal 503 upstream_unavailable if every lane fails, or a specific 429 when their own plan or daily budget is exhausted. Raw provider 502s are not exposed.

Need help?