Skip to content

Create Video

POST
/api/v1/generation-video

Transform an image into a video. Specify the input image using ONE of the following (if using image_url, set generation_result_id to null):

  • generation_result_id - ID of a previously generated result.
  • image_url - URL of any image.

Video Generation Models:

Model Name Duration Options Resolution Options Description
seedance-1-pro 5 or 10 seconds 480p or 1080p Advanced video generation model for high-quality motion synthesis

Additional parameters:

  • model_name - Specify the video generation model (currently only seedance-1-pro available)
  • prompt (optional) - Guide the video generation process
  • duration - Specify video length in seconds (5 or 10)
  • resolution - Specify output resolution (480p or 1080p)

Note: Generated images referenced by generation_result_id are only available for 4 hours after completion.

Authorizations

HTTPBearer
TypeHTTP (bearer)

Request Body

JSON
{
"generation_result_id": 0,
"image_url": "",
"prompt": "",
"duration": 0,
"model_name": "string",
"resolution": "string"
}

Responses

Successful Response
application/json
JSON
{
"generation_id": 0,
"payload": "string",
"created_at": "string",
"updated_at": "string"
}

Samples

cURL
curl -X POST \
'https://api.uwear.ai/api/v1/generation-video' \
 -H "Content-Type: application/json"
JavaScript
fetch('https://api.uwear.ai/api/v1/generation-video', {method:'POST',headers:{'Content-Type':'application/json'}})
  .then(response => response.json())
  .then(data => console.log(data));
PHP
<?php
$url = 'https://api.uwear.ai/api/v1/generation-video';
$method = 'POST';
$headers = [
    'Content-Type' => 'application/json',
];

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

$response = curl_exec($ch);
curl_close($ch);

echo $response;
?>
Python
import requests

url = 'https://api.uwear.ai/api/v1/generation-video'

headers = {
    'Content-Type': 'application/json'
}

response = requests.post(url, headers=headers)
print(response.json())
Powered by VitePress OpenAPI