import requests
response = requests.post(
"https://ai.alad.com/v1/video/generations",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "doubao-seedance-1-0-pro-250528",
"content": [
{"type": "text", "text": "女孩睁开眼,温柔地看向镜头"},
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}, "role": "first_frame"}
],
"ratio": "adaptive",
"duration": 5,
"resolution": "720p"
}
)
task = response.json()
print(f"任务 ID: {task['id']}")