خرابیاں

بنیادی URL https://arteza.ai/api/v1

OpenAPI 3.1 تفصیل، SDK جنریٹرز اور ایجنٹوں کے لیے: /api/v1/openapi.json

TypeScript اور Python کے لیے سرکاری SDKs، ایک کمانڈ لائن اور ایجنٹ کی صلاحیتیں: SDKs اور CLI

غلطیاں معیاری HTTP حالت کوڈز اور ایک JSON شکل استعمال کرتی ہیں۔ code مستحکم ہے اور اس پر شاخ لگانے کے لیے محفوظ ہے؛ message لوگوں کے لیے ہے۔ ہر غلطی نیچے اپنی صف سے جڑی ہوئی ہے۔

{
  "error": {
    "type": "billing_error",
    "code": "insufficient_balance",
    "message": "Your API balance is too low for this generation. Top up in the console.",
    "request_id": "req_8c2f1a9b6e3d",
    "doc_url": "https://arteza.ai/developers/docs/errors#insufficient_balance"
  }
}
کوڈحالتپیغام
missing_api_key401No API key was provided. Send it as `Authorization: Bearer ark_live_...`.
invalid_api_key401The API key is not valid.
revoked_api_key401This API key has been revoked.
expired_api_key401This API key has expired.
ip_not_allowed403This API key only accepts requests from its allowed IP addresses. Add this address to the key in the console, or use another key.
model_not_allowed403Your plan does not include this model.
token_not_allowed403A client token cannot call this endpoint. Call it from your server with the API key.
token_model_not_allowed403This client token is not allowed to use this model.
token_spend_exceeded402This client token has reached its spend cap. Mint a new token from your server.
invalid_json400The request body is not valid JSON.
invalid_request400The request is invalid.
missing_parameter400A required parameter is missing.
invalid_parameter400A parameter has an invalid value.
unknown_parameter400The input contains a field this model does not accept.
model_not_found404No model with this id is available on the API.
model_unavailable410This model is no longer available.
generation_not_found404No generation with this id exists on your account.
upload_not_found404No upload with this id exists on your account.
not_found404Not found.
idempotency_conflict409This Idempotency-Key was already used with a different request body.
idempotency_in_progress409A request with this Idempotency-Key is still being processed. Retry in a few seconds.
generation_in_progress409This generation is still running. Cancel it, or wait for it to finish, before deleting it.
not_cancellable409This generation has already started and can no longer be cancelled.
insufficient_credits402Your account does not have enough credits for this generation.
insufficient_balance402Your API balance is too low for this generation. Top up in the console.
key_limit_exceeded402This API key has reached its spend limit for the current period.
rate_limited429Too many requests. Retry after the time in the Retry-After header.
too_many_in_flight429Too many generations are running at once on your account. Retry when one finishes.
content_policy_violation422The prompt or input was rejected by the content policy.
provider_error502The model provider failed. You were not charged.
service_unavailable503The service is temporarily unavailable. Retry with backoff.
server_error500Something went wrong on our side. Retry with backoff.

پیغام انگریزی میں واپس کیے جاتے ہیں۔