gensta DOCS
api-platform.gensta.ai/v1 Developer portal

Error envelope

json
{
  "error": {
    "code": "invalid_request",
    "message": "The request is invalid",
    "request_id": "req-...",
    "details": [
      {
        "path": "parameters.duration_seconds",
        "code": "too_big",
        "message": "Number must be less than or equal to 30"
      }
    ]
  }
}

Log request_id and include it when contacting support. Never parse human-readable messages as stable program logic.

HTTP errors

HTTPCodeMeaning
400invalid_requestMalformed JSON, invalid fields, or an invalid constraint combination
401authentication_requiredBearer key missing, invalid, expired, or inactive
402insufficient_balanceNot enough available USD for the hold
403forbidden / model_not_availableScope is missing or external model sales are unavailable for this project
404generation_not_found / media_asset_not_foundThe resource does not exist in this project
409idempotency_conflict / media_upload_not_ready / media_asset_not_readyRequest conflicts with current state
410media_upload_expiredThe reserved upload expired
413payload_too_large / media_upload_limit_exceededHTTP or media-upload limit exceeded
415unsupported_media_typeRequest Content-Type is not application/json
422media_upload_mismatch / input_video_duration_invalidUploaded metadata or verified duration violates the contract
503media_upload_storage_unavailableImmutable upload verification is temporarily unavailable
500internal_errorInternal failure without provider or database details

Asynchronous generation failures

A provider failure after create is returned by normal GET with HTTP 200, status: failed, and an error object. Gensta does not forward the provider's raw HTTP envelope. Treat unknown asynchronous error codes as valid and display the safe message or request support.