Video from Text
Generate video clips from text prompts. Choose from multiple models depending on your quality, speed, and style requirements.
Endpoint
Section titled “Endpoint”POST /v1/vidsheet/{id}/cells/{cell_id}/generate?agent_id={agent_id}Path parameters
Section titled “Path parameters”| Parameter | Type | Description |
|---|---|---|
id | integer | The sheet ID. |
cell_id | integer | The cell ID. |
Query parameters
Section titled “Query parameters”| Parameter | Type | Description |
|---|---|---|
agent_id | integer | The agent ID. |
Models
Section titled “Models”| Model | generation_type | data.model | Duration (s) |
|---|---|---|---|
| Veo 3 | video_from_text | "veo-3" | 4, 6, 8 |
| Veo 3 Fast | video_from_text | "veo-3-fast" | 4, 6, 8 |
| Veo 3.1 | video_from_text | "veo-3.1" | 4, 6, 8 |
| Veo 3.1 Fast | video_from_text | "veo-3.1-fast" | 4, 6, 8 |
| Veo 3.1 Lite | video_from_text | "veo-3.1-lite" | 4, 6, 8 |
| Gemini Omni Flash | video_from_text | "gemini-omni-flash-preview" | 1–10 |
| Kling v3 | video_from_text | "kling-v3" | — |
| Kling v1.6 | video_from_text | "kling-v1-6" | — |
| Seedance Lite (legacy alias) | video_from_text | "seedance-lite" | 3–12 |
| Seedance Pro (legacy alias) | video_from_text | "seedance-pro" | 3–12 |
| Seedance 1.0 Lite | video_from_text | "seedance-1.0-lite" | 3–12 |
| Seedance 1.0 Pro | video_from_text | "seedance-1.0-pro" | 3–12 |
| Seedance 1.5 Pro | video_from_text | "seedance-1.5-pro" | 3–12 |
| Seedance 2.0 | video_from_text | "seedance-2.0" | 4–15 |
| Seedance 2.5 | video_from_text | "seedance-2.5" | 4–15 |
| Grok | video_from_text | "grok" | 1–15 |
Request body
Section titled “Request body”| Field | Type | Required | Description |
|---|---|---|---|
generation_type | string | Yes | "video_from_text". |
data.prompt | string | Yes | Text description of the video to generate. Supports {{variable_name}} syntax. |
data.negative_prompt | string | No | What to avoid in the generated video. |
data.model | string | No | Model variant. See Models table. |
data.aspect_ratio | string | No | "1:1", "9:16", or "16:9". Grok also supports "4:3", "3:4", "3:2", and "2:3". |
data.resolution | string | No | Output resolution. Use "1080p" or "720p" when supported by the selected model. If omitted, the API uses the cell default or the closest supported model default. |
data.duration | integer | No | Video duration in seconds. Accepted values depend on the model — see the Duration column in Models. |
data.native_audio | boolean | No | Request native audio when supported by the selected video model. Defaults to false when omitted. |
data.prompt_var | string | No | Variable name to map the prompt value from a column. |
data.negative_prompt_var | string | No | Variable name to map the negative prompt from a column. |
Response (201)
Section titled “Response (201)”{ "generation_id": 9020, "status": "pending"}Once complete, the generated video is available in output_resources. Poll with GET /v1/generations/{generation_id} to check status.
Example
Section titled “Example”curl -X POST "https://api.gen.pro/v1/vidsheet/101/cells/3100/generate?agent_id=42" \ -H "X-API-Key: your-api-key" \ -H "Content-Type: application/json" \ -d '{ "generation_type": "video_from_text", "data": { "prompt": "A drone shot flying over a tropical beach at golden hour, waves gently crashing on white sand, cinematic", "negative_prompt": "text, watermark, blurry, low quality", "model": "veo-3.1", "aspect_ratio": "16:9", "resolution": "1080p", "native_audio": false, "duration": 8 } }'Completed generation
Section titled “Completed generation”{ "id": 9020, "status": "completed", "user_job_type": "video_generation", "result": null, "failed_reason": null, "output_resources": [ { "id": 1700, "url": "https://cdn.gen.pro/outputs/vid_001.mp4", "thumbnail_url": "https://cdn.gen.pro/thumbnails/vid_001.jpg", "object_type": "video", "type": "output" } ], "execution_cost": 5.0}Cell configuration
Section titled “Cell configuration”| Field | Type | Description |
|---|---|---|
model | string | Default model: one of "veo-3", "veo-3-fast", "veo-3.1", "veo-3.1-fast", "veo-3.1-lite", "gemini-omni-flash-preview", "kling-v3", "kling-v1-6", "seedance-lite", "seedance-pro", "seedance-1.0-lite", "seedance-1.0-pro", "seedance-1.5-pro", "seedance-2.0", "seedance-2.5", "grok". |
ratio | string | Default aspect ratio: "1:1", "9:16", "16:9". Grok also supports "4:3", "3:4", "3:2", and "2:3". |
resolution | string | Default output resolution for supported video models: "1080p" or "720p". |
duration | number | Default duration in seconds. |
autoGenerate | boolean | Auto-trigger generation when dependent variables change. |