Text2Video Workflow
Cinna Text-to-Video Workflow
Overview
Supported Models
Workflow ID
Model
Before You Begin
envCopy codeCINNA_API_KEY=your_api_key
CINNA_WORKFLOW_URL=https://sequencer-v2.cinna.aiExample Request
tsCopy codeimport Cinna from 'cinna'
const cinna = new Cinna({
apiKey: process.env['CINNA_API_KEY']
})
async function generateVideo() {
const task = new Text2VideoTask({
workflow_id: '1',
prompt: 'a rabbit moving quickly in a beautiful winter scenery nature trees sunset tracking camera',
timeout_seconds: 600
})
const response = await cinna.workflow.executeWorkflowAndWaitForResult(
task,
600000,
15000
)
console.log('Generated video URL:', response.result)
}Example Response
Parameters
Property
Type
Required
Description
Return Type
Property
Type
Description
Authentication
Task Class Definition
Workflow Task Type
Last updated