generation

Submit a video generation job

Changed on

Developer-facing endpoint. Takes a prompt and model, submits the job immediately, and returns a jobId. Poll GET /v1/jobs/{jobId} every 2–5 seconds until status is 'succeeded' or 'failed'. Requires generate:video scope.

post/v1/video/generate

Request

  • Base URL: https://varosity.ai/api
  • URL: https://varosity.ai/api/v1/video/generate
  • Auth: HTTP bearer

Request body

promptstring required
modelIdstring required

Model ID from GET /v1/models

aspectRatio'16:9' | '9:16' | '1:1' | '4:5' | '21:9'

Each model renders a subset (aspectRatios in GET /v1/models; every video model supports 16:9). An unsupported value is refused with 400 unsupported_aspect_ratio and the supported list.

durationSecinteger

Seconds. The upper limit is the chosen model's maxDurationSec (see GET /v1/models). Many models render fixed lengths (for example 4/6/8 or 5/10 seconds): the request is fitted to the nearest length the model makes, and you are charged for the seconds produced, not the seconds requested.

referenceImageUrlstring uri
referenceVideoUrlstring uri

Source or driving video, for models that take one.

audioUrlstring uri

External audio track for avatar / lip-sync models (omnihuman, heygen-photo-avatar, muapi-latentsync). The provider lip-syncs to THIS track instead of synthesizing its own TTS. For muapi-latentsync, referenceImageUrl carries the source VIDEO url.

authPreference'byok' | 'platform'
providerOptionsobject

Advanced per-model knobs (e.g. fal veo/kling/seedance resolution/cfgScale/generateAudio, WaveSpeed seed/loop, muapi resolution/effect). Full field list per model: /docs/provider-options.

Response

Job submitted

okboolean
jobIdstring uuid
projectIdstring uuid
status'queued' | 'rendering' | 'succeeded'
outputUrlstring uri nullable
billingMode'byok' | 'platform'

Changes

    • info

      added the non-success response with the status

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status