خرابیاں
بنیادی 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_key | 401 | No API key was provided. Send it as `Authorization: Bearer ark_live_...`. |
invalid_api_key | 401 | The API key is not valid. |
revoked_api_key | 401 | This API key has been revoked. |
expired_api_key | 401 | This API key has expired. |
ip_not_allowed | 403 | This 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_allowed | 403 | Your plan does not include this model. |
token_not_allowed | 403 | A client token cannot call this endpoint. Call it from your server with the API key. |
token_model_not_allowed | 403 | This client token is not allowed to use this model. |
token_spend_exceeded | 402 | This client token has reached its spend cap. Mint a new token from your server. |
invalid_json | 400 | The request body is not valid JSON. |
invalid_request | 400 | The request is invalid. |
missing_parameter | 400 | A required parameter is missing. |
invalid_parameter | 400 | A parameter has an invalid value. |
unknown_parameter | 400 | The input contains a field this model does not accept. |
model_not_found | 404 | No model with this id is available on the API. |
model_unavailable | 410 | This model is no longer available. |
generation_not_found | 404 | No generation with this id exists on your account. |
upload_not_found | 404 | No upload with this id exists on your account. |
not_found | 404 | Not found. |
idempotency_conflict | 409 | This Idempotency-Key was already used with a different request body. |
idempotency_in_progress | 409 | A request with this Idempotency-Key is still being processed. Retry in a few seconds. |
generation_in_progress | 409 | This generation is still running. Cancel it, or wait for it to finish, before deleting it. |
not_cancellable | 409 | This generation has already started and can no longer be cancelled. |
insufficient_credits | 402 | Your account does not have enough credits for this generation. |
insufficient_balance | 402 | Your API balance is too low for this generation. Top up in the console. |
key_limit_exceeded | 402 | This API key has reached its spend limit for the current period. |
rate_limited | 429 | Too many requests. Retry after the time in the Retry-After header. |
too_many_in_flight | 429 | Too many generations are running at once on your account. Retry when one finishes. |
content_policy_violation | 422 | The prompt or input was rejected by the content policy. |
provider_error | 502 | The model provider failed. You were not charged. |
service_unavailable | 503 | The service is temporarily unavailable. Retry with backoff. |
server_error | 500 | Something went wrong on our side. Retry with backoff. |
پیغام انگریزی میں واپس کیے جاتے ہیں۔