Generate Asset (Legacy API)
Start a new image, video, or audio generation using your chosen model and inputs.
Body
- GenerateVideoRequest
- GenerateTextToSpeechRequest
- GenerateTextToSoundRequest
- GenerateTextToMusicRequest
- GenerateImageRequest
- GenerateImageUpscaleRequest
- GenerateVideoUpscaleRequest
- GenerateIsolatedAudioRequest
- GenerateSpeechToSpeechRequest
- GenerateVoiceCloneRequest
- GenerateVideoToVideoRequest
- GenerateVideoBackgroundRemovalRequest
- GenerateMotionControlRequest
Optional pre-reserved asset ID. Used as the produced media+asset resource_id so the client knows the asset's identity at request time. For batch operations (batch_size > 1), use reserved_asset_ids instead. Named distinctly from the response's asset_id (the produced asset) so the two don't collide across the request/response inheritance chain — mirrors generation_id (request) vs id (response).
Audio start offset in milliseconds. Negative values prepend silence (e.g., -1000 adds 1s silence before audio). Positive values crop from the beginning of the source audio (e.g., 2000 skips the first 2s). Use with generated_video_inputs.duration_ms to control total output length.
Optional client-minted identifier linking generations submitted as one batch. Clients that fan a batch out as separate requests stamp the same value on each so grids can group the variations. When batch_size > 1 and this is omitted, the server mints one.
64Response
Successful Response
- GenerateVideoResponse
- GenerateTextToSpeechResponse
- GenerateTextToSoundResponse
- GenerateTextToMusicResponse
- GenerateImageResponse
- GenerateImageUpscaleResponse
- GenerateVideoUpscaleResponse
- GenerateIsolatedAudioResponse
- GenerateSpeechToSpeechResponse
- GenerateVoiceCloneResponse
- GenerateVideoToVideoResponse
- GenerateVideoBackgroundRemovalResponse
- GenerateMotionControlResponse
Optional pre-reserved asset ID. Used as the produced media+asset resource_id so the client knows the asset's identity at request time. For batch operations (batch_size > 1), use reserved_asset_ids instead. Named distinctly from the response's asset_id (the produced asset) so the two don't collide across the request/response inheritance chain — mirrors generation_id (request) vs id (response).
Audio start offset in milliseconds. Negative values prepend silence (e.g., -1000 adds 1s silence before audio). Positive values crop from the beginning of the source audio (e.g., 2000 skips the first 2s). Use with generated_video_inputs.duration_ms to control total output length.