Create Spicy video
Kick off a Spicy generation job with text-to-video or optional image-to-video prompts.
Payload parameters
- Required. Use "spicy-2-video" to target the latest Spicy video model.
- Required. Natural language description of the scene you want the Spicy model to create.
- Optional. Base64 data URL for image-to-video mode; uploaded to storage automatically.
- Optional. Supported values: "9:16" (default) or "16:9".
- Optional. HTTPS endpoint that receives the final result payload when the task succeeds.
- Optional. Set true in webhook mode to suppress intermediate SSE progress events.
Notes
- Responses are streamed over Server-Sent Events; keep the connection open and parse progress updates until completion.
- Provide webHook to receive the final payload asynchronously without polling.
Sample request
curl -X POST https://spicyai.site/api/v1/video/create \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-N \
-d '{
"model": "spicy-2-video",
"prompt": "A cinematic shot of a futuristic city at sunset, captured in 4K."
}'
SSE
data: {"id":"task-123","status":"running","progress":45}
data: {"id":"task-123","status":"succeeded","progress":100,"results":[{"url":"https://cdn.example.com/videos/task-123.mp4"}]}