AI
Create an AI video generation job
Queue a cost-guarded Google Veo or xAI Grok Imagine video generation job. This can spend included or purchased AI credits. Poll /api/v1/ai/video-jobs/{id} for status and the final video_url.
post/api/v1/ai/generate-video
Request
- Base URL: https://www.poster.ly
- URL: https://www.poster.ly/api/v1/ai/generate-video
- Auth: HTTP bearer
Request body
Example request
{
"prompt": "A clean 8-second product teaser for a social scheduling app, soft daylight, modern UI closeups.",
"provider": "xai",
"aspect_ratio": "9:16",
"duration_seconds": 8,
"resolution": "720p",
"generate_audio": true
}Response
Video generation job accepted
Example response
{
"job_id": "4f4b0f3a-11c6-4ef0-b4fd-3d0e14b32701",
"status": "pending",
"message": "Video generation started. Poll /api/v1/ai/video-jobs/{id} for status.",
"credit_cost": 16,
"included_credit_cost": 8,
"purchased_credit_cost": 8
}Changes
No recorded changes to this operation across all 1 revision of this API.