cURL
curl --request POST \ --url http://localhost:3000/api/v1/resources/generate/video \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "prompt": "<string>", "duration": 123, "model": "<string>" } '
{ "success": true, "data": { "resource": { "filename": "<string>", "type": "image", "mimeType": "<string>", "size": 123, "description": "<string>", "proposalId": "<string>", "url": "<string>", "thumbnailUrl": "<string>", "createdAt": "2023-11-07T05:31:56Z" } } }
Generate video using AI
Session cookie authentication
Video generation prompt
Video duration in seconds
AI model to use
Generated video resource
Show child attributes
Resource filename
image
video
audio
document
other
MIME type
File size in bytes
Resource URL
Thumbnail URL (for images/videos)