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": "A girl and a cow doll happily riding a roller coaster, morning, noon, and night",
"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"Task ID: {task['id']}")