import requests
response = requests.post(
"https://api.upmore.net/v1/images/generations",
headers={
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
json={
"model": "doubao-seedream-5-0-260128",
"prompt": "生成女孩和奶牛玩偶在游乐园开心地坐过山车的图片,涵盖早晨、中午、晚上",
"image": ["https://example.com/ref1.png", "https://example.com/ref2.png"],
"sequential_image_generation": "auto",
"sequential_image_generation_options": {
"max_images": 3
},
"size": "2K",
"watermark": False
}
)
task = response.json()
print(f"任务 ID: {task['id']}")