curl --request POST \
--url https://api.omniall.ai/v1/images/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seedream-5.5",
"prompt": "一只橘猫坐在窗台上看雨,温暖室内灯光,写实摄影风",
"n": 1,
"size": "16:9",
"resolution": "2K",
"response_format": "url"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}即梦绘图
Generations
Seedream 5.5 文生图 / 图生图(OpenAI Images generations)。
Path: POST https://api.omniall.ai/v1/images/generations
模型必须为 doubao-seedream-5.5。参考图用 image / images / image_urls / reference_images。
鉴权:Authorization: Bearer sk-...
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://api.omniall.ai/v1/images/generations \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "doubao-seedream-5.5",
"prompt": "一只橘猫坐在窗台上看雨,温暖室内灯光,写实摄影风",
"n": 1,
"size": "16:9",
"resolution": "2K",
"response_format": "url"
}
'{
"created": 1710000000,
"data": [
{
"url": "https://example.com/image.png"
}
]
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}请求体
application/json
Seedream 5.5 生图请求体(POST /v1/images/generations)。