OpenAI Images API compatible image editing. Identical to POST /v1/images/generations except that at least one reference image is required.Send multipart/form-data to upload the source images as files, or JSON with image set to a URL or data: URI.
请求参数
Authorization
JWT Bearer
在 Header 添加参数
Authorization
示例:
Authorization: ********************
or
Body 参数
application/json
必填
示例
{"model":"doubao-seedream-5-0-pro-260628","prompt":"Turn this photo into a night scene with neon lights","image":"@portrait.png","size":"2K"}
请求示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
cURL
curl--location'/v1/images/edits' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "doubao-seedream-5-0-pro-260628",
"prompt": "Turn this photo into a night scene with neon lights",
"image": "@portrait.png",
"size": "2K"
}'