Generation
Generate images and videos, submit batches, transfer motion from a reference, and browse video styles.
generate_image
Start an image generation job in the connected workspace.
Operation Write, approval required
Sample prompt: Generate one square image of a blue ceramic vase on a white background.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Image generation input. |
body.model | string | Yes | — | Model ID from image_models_list. |
body.prompt | string | Yes | — | Describe the image to create or the change to make. |
body.character_element_id | string | No | — | The ID of a trained character element in this workspace for Soul 2. |
body.medias | array of object | No | — | Reference uploads or completed jobs in the same workspace. Set the role to image or image_references. Resolved images are appended after image_urls. |
body.image_urls | array of string | No | — | Public HTTPS URLs for reference images, if the model supports them. |
body.mask_url | string | No | — | Public HTTPS URL of a mask image that marks the area to edit. Use it with a model that supports masks. |
body.aspect_ratio | string | No | — | Output aspect ratio supported by the model. |
body.image_size | string / object | No | — | A preset, a WIDTHxHEIGHT value, or an object with width and height. Takes precedence over aspect_ratio. |
body.quality | string | No | — | Generation quality. Check the model catalog for supported values. |
body.resolution | string | No | — | Output resolution. Check the model catalog for supported values. |
body.num_images | integer | No | — | Number of images to generate in one job. The selected model may impose a lower maximum than the shared schema. |
body.output_format | string | No | — | Output file format. Supported formats vary by model. |
body.metadata | object | No | — | Tracking data stored with the job. The model does not receive it. |
body.mode | string | No | "async" | Use async (the default) to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal job events, using the default port and at most 2,048 characters. Use it with async or webhook mode. Localhost, private, loopback, and link-local addresses are excluded. The server sends one notification when the job completes, fails, or is canceled and signs it with the workspace secret. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response, from 0 to 30. The job continues after the wait expires. |
body.project_id | string | No | — | ID of the project associated with the job or output destination. |
body.model_params | object | No | — | Model-specific settings. Usually omitted or an empty object. For higgsfield-ai-influencer, set tier to normal, freak, or total. Use selection to map group IDs to up to four selected IDs. |
body.background | string | No | — | Background for compatible GPT Image 2.5 models. Use auto, transparent, or opaque. |
body.rendering_speed | string | No | — | Trade-off between generation speed and quality. Choose a supported value from TURBO, BALANCED, and QUALITY. |
body.complexity | string | No | — | Amount of planning before rendering with a GPT Image 2.6 model. Use low, medium, or high. The default is high. This setting is independent of quality. |
body.frame_count | integer | No | — | Number of frames in a GPT Image 2.6 GIF, from 2 to 16. Defaults to 9. The image_size setting applies to each frame. |
body.frame_duration_ms | integer | No | — | Display time per GIF frame, from 20 to 2,000 milliseconds. The value is rounded to the nearest 10 milliseconds and defaults to 200. |
idempotency_key | string | Yes | — | Use a unique key per action. Reuse it to retry identical input. |
approval_receipt | string | No | — | Receipt returned with the plan. Supply it after user confirmation. |
generate_image_batch
Alpha
Submit 1 to 12 image generation requests in parallel. The first call returns a plan. After approval, resend the inputs with the receipt and the plan’s idempotency key in tools/call metadata. Use the returned job IDs to check progress.
Operation Write, approval required, requires the creative flag
Sample prompt: Plan three square product images with the same lighting and different backgrounds. Show me the batch before submitting it.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
context | string | No | — | Optional context for analytics. |
requests | array of object / object | Yes | — | — |
Send these values in tools/call request metadata under params._meta.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
generate_video
Start a video generation job in the connected workspace.
Operation Write, approval required
Sample prompt: Generate a five-second video of clouds moving over a meadow. Wait for the job and return the video URL.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Video generation input. |
body.model | string | Yes | — | Model ID from video_models_list. |
body.prompt | string | No | — | Describe the video to create or the change to make. Check the model’s prompt and reference requirements. |
body.medias | array of object | No | — | Reference uploads or completed jobs in the same workspace. Use image or image_references for reference images, start_image for the opening frame, and end_image for the closing frame. |
body.image_url | string | No | — | Public HTTPS URL for the opening video frame or a face image. |
body.end_image_url | string | No | — | Public HTTPS URL for the closing video frame. Supply it with image_url. MAGI-2 accepts either start and end frames or reference media in a single request. |
body.video_url | string | No | — | Public HTTPS URL of the input video to edit or extend. |
body.motion_video_url | string | No | — | Motion reference video. Available on motion control models. |
body.character_orientation | string | No | — | Use video to prioritize the motion reference or image to prioritize the still image composition. |
body.keep_original_sound | boolean | No | — | Set to true to keep audio from the motion reference video. Set to false for silent output. |
body.reference_images | array of string / object | No | — | Reference images as URLs or objects with a media type. Check the model capabilities for limits. MAGI-2 accepts up to 10 JPEG, PNG, or WebP files of at most 30 MB each. |
body.reference_videos | array of string / object | No | — | Reference videos as URLs or objects with a media type. Check the model capabilities for limits. MAGI-2 accepts up to five MP4 or MOV files of at most 200 MB each. Each clip must be 2 to 30 seconds, with a combined limit of 30 seconds. |
body.reference_audio | array of string / object | No | — | Reference audio as URLs or objects with a media type. Check the model capabilities for per-file and combined limits. MAGI-2 accepts up to five MP3 or WAV files of at most 15 MB each. Each clip must be 2 to 30 seconds, with a combined limit of 30 seconds. |
body.resolution | string | No | — | Output resolution. Check the model catalog for supported values. MAGI-2 supports only 1080p. HeyGen Avatar 6 and Turbo support 1080p by default and also accept 2k or 2K. |
body.duration_seconds | integer | No | — | Output length in seconds. Use a duration supported by the model. |
body.aspect_ratio | string | No | — | Output width-to-height ratio. Use auto to match the input image. Check the selected model for supported values. MAGI-2 supports 16:9 by default and accepts 21:9, 4:3, 1:1, 3:4, and 9:16. |
body.generate_audio | boolean | No | — | Whether to generate audio alongside video on models that support it. |
body.genre | string | No | — | Genre for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.era | string | No | — | Era for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.pacing | string | No | — | Pacing for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.light | string | No | — | Lighting for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.camera_model | string | No | — | Camera model for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.camera_lens | string | No | — | Camera lens for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.camera_aperture | string | No | — | Lens aperture for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.camera_movement | string | No | — | Camera movement for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.color_palette | string | No | — | Color palette for higgsfield-cinema-studio-4. Omit it for automatic selection. |
body.metadata | object | No | — | Tracking data stored with the job. The model does not receive it. |
body.mode | string | No | "async" | Use async to receive a job immediately. |
body.webhook_url | string | No | — | Public HTTPS URL for terminal job events, using the default port and at most 2,048 characters. Use it with async or webhook mode. Localhost, private, loopback, and link-local addresses are excluded. The server sends one notification when the job completes, fails, or is canceled and signs it with the workspace secret. |
body.wait_timeout_seconds | integer | No | — | Seconds to wait for the HTTP response, from 0 to 30. The job continues after the wait expires. |
body.project_id | string | No | — | ID of the project associated with the job or output destination. |
body.seed | integer | No | — | Random seed for reproducibility, from 0 to 4,294,967,295. |
body.task | string | No | — | Creative intent passed to automatic model selection with auto-. Named models ignore it. |
body.audio_url | string | No | — | Public HTTPS URL of the audio for lip sync. Use image_url for a face image or video_url for a face video. HeyGen Avatar 6 and Turbo set the video duration from the audio length. |
body.model_params | object | No | — | Reserved for model-specific settings. Omit it or send an empty object. The server rejects additional keys. |
body.prompt_enhancement | string | No | — | Prompt enhancement for heygen-video-1. For videos longer than 15 seconds, use turbo, quality, or default. The value default is equivalent to turbo. |
body.end_user_id | string | No | — | Opaque end-user ID passed to heygen-video-1. Use 1 to 128 characters without whitespace or personal information. |
body.callback_id | string | No | — | Tracking ID for heygen-video-1, up to 256 characters. The server saves it in metadata.callback_id and includes it in notifications. |
body.draft | boolean | No | — | Create a 480p draft with seedance-2.5. Requires duration_seconds. Omit video_url, extend, source_duration, and draft_job_id. |
body.draft_job_id | string | No | — | ID of a completed seedance-2.5 draft. Send it with model to reuse the original generation inputs. You can specify 1080p resolution and a destination project_id. Use the draft within 14 days of its creation. |
body.extend | boolean | No | — | Extend the video at video_url with seedance-2.5. Set duration_seconds to the length of the new segment, from 4 to 30 seconds. |
body.source_duration | integer | No | — | Source video duration in seconds, rounded up to an integer from 1 to 30. Used when extending a video with seedance-2.5. Billing assumes 15 seconds if omitted. |
body.dubbing | object | No | — | Translated dubbing settings for veed-dubbing. Supply video_url and a duration_seconds value from 8 to 600. Omit prompt, resolution, and aspect_ratio. |
body.captions | object | No | — | Subtitle settings for veed-subtitles. Supply video_url and a duration_seconds value from 2 to 600. The minimum billed duration is 60 seconds. Resolution defaults to 1080p. |
body.upscale | object | No | — | Model-specific upscale options. FLUX requires resolution and creativity, Starlight accepts resolution, or factor with the Topaz Video preset model "Starlight Precise 2.5" (served by Starlight Precise 2.6). ByteDance requires resolution, fps, tier and preset. Billing uses the server-measured duration. |
body.background | object | No | — | SAM segmentation options. The prompt identifies the subject. Billing uses the measured source duration (2–60 seconds). |
body.hdr | object | No | — | — |
body.interpolate | object | No | — | — |
body.depth | object | No | — | — |
body.bitrate_mode | string | No | — | Output bitrate. Use standard or high with a supported model. |
body.frame_images | array of object | No | — | Up to two opening or closing frames for auto- model selection. You can also supply image_url. |
body.input_references | array of object | No | — | Up to 20 media references for auto- model selection. Each URL object must match its declared type. |
idempotency_key | string | Yes | — | Use a unique key per action. Reuse it to retry identical input. |
approval_receipt | string | No | — | Receipt returned with the plan. Supply it after user confirmation. |
generate_video_batch
Alpha
Submit 1 to 12 video generation requests in parallel. The first call returns a plan. After approval, resend the inputs with the receipt and the plan’s idempotency key in tools/call metadata. Use the returned job IDs to check progress.
Operation Write, approval required, requires the creative flag
Sample prompt: Plan two five-second clips with the same reference image and different camera moves. Show me the batch before submitting it.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
context | string | No | — | Optional context for analytics. |
requests | array of object / object | Yes | — | — |
Send these values in tools/call request metadata under params._meta.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | The plan’s request.idempotencyKey. Reuse it after approval or when retrying the same action. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
kling_motion_control
Alpha
Animate a reference image with motion from a source video when the connected workspace has the Creative flag.
Operation Write, approval required, requires the creative flag
Sample prompt: Animate my character image using the imported dance clip. Keep the clip’s original audio.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Video settings. |
body.image_url | string | Yes | — | Public HTTPS reference image URL. |
body.motion_video_url | string | Yes | — | Public HTTPS reference video URL. Up to 100 MB. |
body.prompt | string | No | — | Describe the desired action or scene. |
body.duration_seconds | number | Yes | — | Source duration in seconds. Billing uses the measured duration rounded up. |
body.keep_original_sound | boolean | No | — | Keep the source audio. Defaults to true. |
body.character_orientation | string | No | — | Use video for clips up to 30 seconds, or image for clips up to 10 seconds. Defaults to video. |
body.metadata | object | No | — | Caller data to keep with the job. |
body.mode | string | No | — | Choose async, sync, subscribe, or webhook. |
body.webhook_url | string | No | — | Public HTTPS URL for the terminal job event. |
body.wait_timeout_seconds | integer | No | — | Maximum synchronous wait from 0 to 30 seconds. |
body.project_id | string | No | — | Destination project in the connected workspace. |
idempotency_key | string | Yes | — | Reuse this key to retry the same request. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
remix_lite_motion_transfer
Alpha
Transfer movement from a source video at 480p when the connected workspace has the Creative flag.
Operation Write, approval required, requires the creative flag
Sample prompt: Transfer the movement in the video I imported to my reference character and return the finished video.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Video settings. |
body.video_url | string | Yes | — | Public HTTPS video URL. 4–15 seconds, up to 200 MiB. |
body.image_urls | array of string | No | — | One to eight public HTTPS reference images, in reference order. |
body.prompt | string | No | — | Instructions for the transfer. |
body.resolution | string | No | "480p" | 480p. Defaults to 480p. |
body.duration | integer | No | — | Source duration rounded up to a whole second. The API measures the source when this field is omitted. |
idempotency_key | string | Yes | — | Reuse this key to retry the same request. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
remix_motion_transfer
Alpha
Transfer movement from a source video in the connected workspace when its Creative flag is enabled.
Operation Write, approval required, requires the creative flag
Sample prompt: Transfer the movement in the video I imported to my reference character and return the finished video.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
body | object | Yes | — | Video settings. |
body.video_url | string | Yes | — | Public HTTPS video URL. 4–15 seconds, up to 200 MiB. |
body.image_urls | array of string | No | — | One to eight public HTTPS reference images, in reference order. |
body.prompt | string | No | — | Instructions for the transfer. |
body.resolution | string | No | "720p" | 480p or 720p. Defaults to 720p. |
body.duration | integer | No | — | Source duration rounded up to a whole second. The API measures the source when this field is omitted. |
idempotency_key | string | Yes | — | Reuse this key to retry the same request. |
approval_receipt | string | No | — | The plan’s approval_id. Supply it after the user approves the plan. |
remix_restyle_presets
Alpha
List Remix restyle presets and preview images when the connected workspace has the Creative flag.
Operation Read only, requires the creative flag
Sample prompt: List the available Remix restyle presets and show their previews.
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
idempotency_key | string | No | — | Use a unique key per action and reuse it when retrying the same input. |