Erori

URL de bază https://arteza.ai/api/v1

Specificație OpenAPI 3.1, pentru generatoare de SDK și agenți: /api/v1/openapi.json

SDK-uri oficiale pentru TypeScript și Python, o linie de comandă și competențe pentru agenți: SDK-uri și CLI

Erorile folosesc coduri HTTP standard și o singură formă JSON. code este stabil și sigur pentru a ramifica; message este pentru oameni. Fiecare eroare face legătura la rândul acesteia mai jos.

{
  "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"
  }
}
CodStatusMesaj
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.

Mesajele sunt returnate în limba engleză.