Skip to content

能否在/v1/images/generations 接口添加一个可选的image字段? #899

@lfglfg11

Description

@lfglfg11

最近对这个接口垫图上传的需求很高,能否支持适配呢?new-api已经支持,适配后这样:
curl --location --request POST 'http://127.0.0.1:8001/v1/images/generations' \
--header 'Authorization: Bearer sk-666' \
--header 'Content-Type: application/json' \
--header 'X-Custom-Header: custom-value' \
--data-raw '{
"model": "nano-banana-pro",
"size": "4096*4096",
"image": [
"https://mj-img.bzu.cn/uploads/img_edit/260105/origin_0_1767610787_d330d6c3.png",
"https://mj-img.bzu.cn/uploads/img_edit/260105/origin_2_1767610793_148f6f78.png"
],
"prompt": "一起吃肯德基"
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions