Accelerated inference for Wan 2.1 14B Text-to-Video, a comprehensive and open suite of video foundation models that pushes the boundaries of video generation. By default, the API will generate a video with 5 seconds.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
Control the data content of the mock event. When set to TASK_STATUS_SUCCEED, you’ll receive a normal response; when set to TASK_STATUS_FAILED, you’ll receive an error response.Supports: TASK_STATUS_SUCCEED, TASK_STATUS_FAILED.
Width of the output video.Supports: 480, 720, 832, 1280.Default: 832. If the width or height is not specified, the width and the height will be forced to 832 and 480 respectively.
The path to the LoRA model. You can specify either a LoRA model name from Hugging Face, for example: Remade-AI/Cyberpunk; or a model download URL from Civitai, for example: https://civitai.com/api/download/models/1572591?type=Model&format=SafeTensor.
The LoRA model must be compatible with Wan2.1 14B T2V, otherwise it will not work. Please check compatibility before using it.
A seed is a number generates noise, which, makes generation deterministic. Using the same seed and set of parameters will produce identical content each time.Range: -1 <= x <= 9999999999. Default: -1.
The flow_shift parameter primarily affects the speed and magnitude of object movement in the video. Higher values produce more pronounced and faster movement, while lower values make the motion slower and more subtle.Range: 1 <= x <= 10. Default: 5.0.
The enable_safety_checker parameter controls whether the safety filter is applied to the generated content. When enabled, it helps filter out potentially harmful or inappropriate content from the video output.Default: true.
Here is an example of how to use the Wan 2.1 Text to Video API.
Generate a task_id by sending a POST request to the Wan 2.1 Text to Video API.
Request:
Copy
curl --location 'https://api.novita.ai/v3/async/wan-t2v' \--header 'Authorization: Bearer {{API Key}}' \--header 'Content-Type: application/json' \--data '{ "height": 1280, "width": 720, "seed": -1, "prompt": "3D animation of a small, round, fluffy creature with big, expressive eyes explores a vibrant, enchanted forest. The creature, a whimsical blend of a rabbit and a squirrel, has soft blue fur and a bushy, striped tail. It hops along a sparkling stream, its eyes wide with wonder. The forest is alive with magical elements: flowers that glow and change colors, trees with leaves in shades of purple and silver, and small floating lights that resemble fireflies. The creature stops to interact playfully with a group of tiny, fairy-like beings dancing around a mushroom ring. The creature looks up in awe at a large, glowing tree that seems to be the heart of the forest."}'
Response:
Copy
{ "task_id": "{Returned Task ID}"}
Use task_id to get output videos.
HTTP status codes in the 2xx range indicate that the request has been successfully accepted, while status codes in the 5xx range indicate internal server errors.You can get videos url in videos of response.Request: