switchx

Poll the status of a SwitchX job.

get/v1/switchx/generations/{job_id}

Request

  • Base URL
    https://api.beeble.ai
  • Auth
    API key in header x-api-key

Path parameters

job_idstring required

Response

Successful Response

organization_idstring nullable
billing_unit'usd' | 'credits'
credits_chargedinteger nullable
credit_billing_statestring nullable
idstring required

Job identifier (swx_...)

statusstring required

in_queue, processing, completed, or failed

progressinteger nullable

Progress percentage (0-100)

generation_typestring nullable

'image' or 'video'

alpha_modestring nullable

'auto', 'fill', 'custom', or 'select'

seedinteger nullable

Random seed used for this generation (always present after job creation)

errorstring nullable

Error message (present when status is failed)

created_atstring nullable

ISO 8601 timestamp when the job was created

modified_atstring nullable

ISO 8601 timestamp of the last status change

completed_atstring nullable

ISO 8601 timestamp when the job completed or failed

Example response

{
  "progress": 72,
  "webhook": {
    "attempts": 1
  }
}

Changes

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status