import requests
url = "https://api.chenyu.cn/v1/images/generations"
headers = {
"Authorization": "Bearer your_api_key",
"Content-Type": "application/json"
}
payload = {
"model": "doubao-seedream-5-0-lite-260128",
"prompt": "电商主图,白底,一瓶护肤品,柔和布光",
"size": "1024x1024"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json()["data"][0]["url"])