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-3-0-t2i-250415",
"prompt": "生成女孩和奶牛玩偶在游乐园开心地坐过山车的图片",
"size": "1024x1024",
"watermark": False
}
)
task = response.json()
print(f"任务 ID: {task['id']}")