import requests
response = requests.post(
"https://ai.alad.com/v1/images/generations",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "doubao-seedream-5-0-260128",
"prompt": "日出时分宁静的山景,山谷间弥漫着薄雾",
"size": "1024x1024",
"watermark": False
}
)
task = response.json()
print(f"任务 ID: {task['id']}")