Video Generation
https://api.oneinfer.ai/v1/ula/generate-videoGenerate videos from text prompts or uploaded media files. Supports both application/json and multipart/form-data (for file uploads). Powered by providers like novita and google.
01Request Headers
Bearer token for authentication. Format: Bearer <YOUR_TOKEN>. Exchange your API key for a token via the Authentication endpoint.
Use application/json for text-only requests, or multipart/form-data when including file uploads (e.g. image-to-video).
02Request Body
Required Fields
Text prompt describing the video to generate.
The video model to use. Retrieve the full list from the GET Models endpoint and use the model name from the response.
Video resolution. Options: "480P", "720P", "1080P".
Aspect ratio of the output video. Options: "16:9", "9:16", "1:1", "4:3", "3:4", "21:9".
Duration of the video in seconds. Must be an integer between 4 and 12.
Whether to generate audio alongside the video.
Keep the camera fixed during generation.
Service tier for priority routing. Options: "default", "flex".
Optional Fields
Frames per second. Default: 24.
Random seed for reproducibility. Omit or use -1 for random output.
File Uploads
When using multipart/form-data, include file attachments under the files field (e.g. a reference image for image-to-video). All other fields are passed as form string values.
{
"model": "seedance-v1.5-pro-t2v",
"prompt": "a cat drinking milk in a cozy kitchen",
"resolution": "720P",
"aspect_ratio": "16:9",
"duration": 5,
"generate_audio": true,
"camera_fixed": false,
"service_tier": "default",
"fps": 24,
"seed": -1
}03Response
Response Fields
Unique request identifier (UUID).
Unix timestamp of when the job was created.
Confirmation message echoing the prompt used.
Reason generation stopped. Typically "stop".
The provider that handled the request.
The model used for generation.
Token counts: prompt_tokens, completion_tokens, total_tokens.
End-to-end processing latency in milliseconds.
Array of generated video objects, each with a url and type (e.g. mp4).
Resolution of the generated video (e.g. "1280*720").
Image outputs if applicable, otherwise an empty array.
Audio file path if generated, otherwise null.
Error Status Codes
| Code | Status | Description |
|---|---|---|
| 200 | OK | Video generated successfully. |
| 400 | Bad Request | Invalid request body or unsupported provider/model. |
| 401 | Unauthorized | Missing or invalid Authorization header / Bearer token. |
| 403 | Forbidden | Insufficient credit balance. |
| 422 | Unprocessable Entity | Request body failed schema validation. |
| 500 | Internal Server Error | Unexpected error during video generation. |