Submit a media generation request
Use the endpoint and fields on the model’s page. This example sends a text prompt to Wan 3.0 Video and asks for an eight-second clip.
Submit a video job
curl https://api.sociaro.com/v1/alibaba/generations \
-H "Authorization: Bearer $SOCIARO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "alibaba/wan-3-video",
"prompt": "a paper boat drifting down a rain-soaked street",
"resolution": "720p",
"duration": 8
}'
# Requires Python 3 and requests (pip install requests).
import os
import requests
payload = {'model': 'alibaba/wan-3-video',
'prompt': 'a paper boat drifting down a rain-soaked street',
'resolution': '720p',
'duration': 8}
response = requests.post(
'https://api.sociaro.com/v1/alibaba/generations',
headers={
'Authorization': 'Bearer ' + os.environ['SOCIARO_API_KEY'],
'Content-Type': 'application/json',
},
json=payload,
timeout=120,
)
response.raise_for_status()
print(response.text)// Run as an .mjs file with Node.js 22 or later.
const payload = {
"model": "alibaba/wan-3-video",
"prompt": "a paper boat drifting down a rain-soaked street",
"resolution": "720p",
"duration": 8
};
const response = await fetch("https://api.sociaro.com/v1/alibaba/generations", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.SOCIARO_API_KEY,
"Content-Type": "application/json",
},
body: JSON.stringify(payload),
});
if (!response.ok) throw new Error(`HTTP ${response.status}: ${await response.text()}`);
console.log(await response.text());The Alibaba route returns a job ID when it accepts the request:
{"job_id": "cgt-20260816024141-rhl5n", "status": "submitted"}
Save the returned job_id and poll for the result. BytePlus’s Seedance task route returns the identifier in id.
Use a reference file
Supply a public HTTPS URL in the field the model expects. A first frame sets the opening image, while a reference can guide the appearance of a character or scene. The model catalogue lists supported roles, field names and file limits.
The service fetching the file must be able to read it without your browser’s cookies or a login. On Ideogram, the gateway fetches the input and returns 400 if it cannot read it. To use a local file, upload it with the Files API and pass its returned url as input.
For Seedance reference media, see the supported roles, access requirements and consent rules.