Text2Video Workflow
Supported Models to Workflow ID Mapping
Workflow ID
Model
Before you start
XALORA_API_KEY=your_api_key
XALORA_WORKFLOW_URL=https://sequencer-v2.xalora.xyzExample Request
import Xalora from 'xalora'
const xalora = new Xalora({
apiKey: process.env['XALORA_API_KEY']
});
async function generateVideo() {
const text2VideoTask = new Text2VideoTask({
workflow_id: '1',
prompt: 'a rabbit moving quickly in a beautiful winter scenery nature trees sunset tracking camera',
timeout_seconds: 600 // optional
});
const response = await xalora.workflow.executeWorkflowAndWaitForResult(
text2VideoTask,
600000, // 10 minutes timeout
15000 // 15 seconds polling interval
);
console.log('Generated video URL:', response.result);
}Example Response
Parameters
Property
Type
Required
Description
Returns
Property
Type
Required
Description
Authentication
Types
Last updated