Task-based generation
Use request ids and task states to manage longer-running video output in your own application UI.
Connect video generation models such as Veo and Wan through Pixapi with API keys, credit tracking, task states, and documentation designed for production product teams.
Video generation request
Submit async video tasks and poll GET /v1/tasks/{id} from your backend.
curl https://api.pixapi.ai/v1/async/videos/generations \
-H "Authorization: Bearer $PIXAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "veo",
"prompt": "A cinematic reveal of a smart speaker",
"duration": 5,
"size": "1280x720"
}'Pixapi video generation must be submitted with POST /v1/async/videos/generations; new integrations should not use /v1/videos/generations.
Video requests use Bearer authentication, a video model such as veo or wan, prompt, duration, and optional input_image for image-to-video workflows.
Pixapi returns a task id immediately; your backend polls GET /v1/tasks/{id} until the task is completed or failed, then reads the final video URL from result.data[0].url.
Video models are slower and more expensive than image generation, so the API layer needs task tracking, credits, and clear error handling.
Use request ids and task states to manage longer-running video output in your own application UI.
Build both text-to-video and image-to-video flows while keeping authentication and billing consistent.
Compare video model capabilities, pricing hints, and common use cases before choosing a route.
Estimate and monitor video generation spend across users, plans, and internal product features.
Handle rate limits, transient model failures, and user-facing status updates with consistent error patterns.
Use the same Pixapi account for images, editing, and video instead of stitching together separate vendors.
| Need | Recommended Pixapi route | Why it fits |
|---|---|---|
| Prompt-to-video product clips | Veo or Wan model route | Choose based on realism, style, and credit cost. |
| Image-to-video animation | Video route with reference image | Turn generated or uploaded images into short clips. |
| Async user workflows | Task id plus status tracking | Keep the UI responsive while the generation runs. |
| Cost-controlled launches | Credit plans and pricing page | Forecast demand before opening video features to all users. |
A video generation API needs a different workflow from image generation. The video generation API should expose async tasks, status polling, model choice, duration controls, and cost visibility before teams ship video features.
A practical video generation API starts with task management. Video outputs take longer, cost more, and often require progress states, so the video generation API should return an id immediately and let your backend poll or subscribe to completion. Pixapi frames the video generation API around async generation, task state, and credit tracking so your application can keep the interface responsive while the model works.
Model choice is central to a video generation API. Some teams need realistic motion, others need stylized clips, product reveals, or image-to-video animation. Pixapi connects the video generation API page to model routes such as Veo and Wan, then keeps pricing and docs close to the decision. A good video generation API should make it easy to compare model behavior before a product team commits to one default route.
The video generation API also needs cost controls because small parameter changes can affect spend. Duration, output quality, resolution, and model tier can all change the economics of a feature. Pixapi uses credit visibility around the video generation API so teams can estimate launch costs, set internal limits, and decide which users can access higher-cost video workflows. This makes the video generation API easier to productize.
For developers, a video generation API should feel familiar even when the underlying model is complex. Keep Pixapi calls server-side, submit the video generation API request with a model id and prompt, store the returned task id, and map task status to your UI. This pattern lets the video generation API support previews, queues, notifications, and retry logic without blocking a user request.
A complete video generation API should also support image-to-video flows. Many products first create an image, then animate it into a short clip. Pixapi lets teams combine an image generation API with a video generation API under one account, which reduces vendor decisions and keeps credit reporting consistent. The same video generation API can serve both text-to-video and image-to-video features.
Choose a video generation API when your product needs repeatable video output, not just a manual creative experiment. Pixapi keeps the video generation API focused on production needs: async task design, model catalog guidance, credit-based pricing, API keys, and developer docs. That makes the video generation API useful for SaaS tools, content platforms, creative automation, and internal media operations.
Video generation usually runs as a task because outputs take longer and cost more. Your app should store the task id and display progress.
Pixapi lists curated video routes such as Veo and Wan in the model catalog. Availability can change as providers update models.
Supported video routes can use a reference image for image-to-video workflows. Check each model page for parameters.
Yes. A common workflow is to generate an image first, then use it as a reference for short video generation.
Use Pixapi to test video routes, monitor credit usage, and move from prototype to product with one API key.
Create API key