Skip to content

Video from Ingredients

Generate video by combining a text prompt with uploaded assets (images, clips, logos). Reference your assets in the prompt and pass their IDs via asset_resource_ids.

POST /v1/autocontentengine/{id}/cells/{cell_id}/generate?agent_id={agent_id}
ParameterTypeDescription
idintegerThe sheet ID.
cell_idintegerThe cell ID.
ParameterTypeDescription
agent_idintegerThe agent ID.

Modelgeneration_typedata.model
Pikavideo_from_ingredients"pika"
Kling 1.6video_from_ingredients"kling_1_6"
Seedance Litevideo_from_ingredients"seedance_lite"
Veo 3.1video_from_ingredients"veo_3_1"
Veo 3.1 Fastvideo_from_ingredients"veo_3_1_fast"

FieldTypeRequiredDescription
generation_typestringYes"video_from_ingredients".
data.promptstringYesText description that references the uploaded assets. Supports {{variable_name}} syntax.
data.asset_resource_idsarrayYesArray of content resource IDs to include in the generation.
data.modelstringNoModel variant. See Models table.
data.aspect_ratiostringNo"1:1", "9:16", or "16:9".
data.durationintegerNoVideo duration in seconds.
data.prompt_varstringNoVariable name to map the prompt from a column.
data.content_resource_varsarrayNoVariable names to map content resource IDs from columns.

{
"generation_id": 9040,
"status": "pending"
}

Once complete, the generated video is available in output_resources. Poll with GET /v1/generations/{generation_id} to check status.


Terminal window
curl -X POST "https://api.gen.pro/v1/autocontentengine/101/cells/3300/generate?agent_id=42" \
-H "X-API-Key: your-api-key" \
-H "Content-Type: application/json" \
-d '{
"generation_type": "video_from_ingredients",
"data": {
"prompt": "A dynamic product showcase video featuring the uploaded product image, camera orbiting around it with particle effects and dramatic lighting",
"model": "pika",
"asset_resource_ids": [501, 502],
"aspect_ratio": "16:9",
"duration": 5
}
}'
{
"id": 9040,
"status": "completed",
"user_job_type": "video_generation",
"result": null,
"failed_reason": null,
"output_resources": [
{
"id": 1900,
"url": "https://cdn.gen.pro/outputs/vid_ingredients_001.mp4",
"thumbnail_url": "https://cdn.gen.pro/thumbnails/vid_ingredients_001.jpg",
"object_type": "video",
"type": "output"
}
],
"execution_cost": 3.5
}

FieldTypeDescription
modelstringDefault model: "kling_1_6", "seedance_lite", "pika", "veo_3_1", or "veo_3_1_fast".
ratiostringDefault aspect ratio.
durationnumberDefault duration in seconds.
autoGeneratebooleanAuto-trigger generation when dependent variables change.