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 balance
403forbidden / model_not_availableThe key lacks the required scope or the project cannot use the model
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
422input_media_dimensions_invalidVerified Seedance image/video dimensions violate the model limits; details identifies the file, dimensions and limits. No generation or balance reservation is created.
503media_upload_storage_unavailableFile verification is temporarily unavailable
500internal_errorInternal server error

Asynchronous generation failures

If an error occurs after creation, GET returns HTTP 200, status: failed, and an error object. Treat unknown asynchronous error codes as valid and display the message or contact support.

Branch on error.code, not the message or an upstream HTTP status mentioned in it. A provider HTTP 400 alone does not mean content moderation.

CodeMeaningNext step
moderation_blocked / content_policy_violationProvider content policy rejected the image requestDo not automatically repeat the same prompt; revise the request. A definitive rejection releases the reservation.
invalid_parameter / openai_http_400 / openai_http_422Provider rejected request parametersReview model parameters; do not retry the identical request automatically.
provider_submission_unknownThe provider may have accepted the request, but the outcome is unknownDo not create a duplicate generation. Keep the generation ID and contact support.
billing_reconciliation_requiredUsage or billing needs verificationKeep polling the existing generation; do not assume the reservation has been refunded.

These are common codes, not an exhaustive enumeration of provider errors. Unknown codes must not crash the client. Record the generation ID and request ID. Statuses submission_unknown and billing_reconciliation are unresolved states, not a confirmed failure or a signal to create a new paid request.