创建图像编辑
根据原始图像和提示创建编辑或扩展的图像。
AuthorizationBearer <token>
In: header
imagefile
要编辑的图像。必须是有效的 PNG 文件,小于 4MB,且为正方形。
Format
binary
mask?file
一个额外的图像,其完全透明的区域指示应该编辑图像的位置。
Format
binary
promptstring
所需图像的文本描述。
n?integer
要生成的图像数量。
Range
1 <= value <= 10
size?string
生成图像的大小。
Value in
"256x256" | "512x512" | "1024x1024"
response_format?string
返回生成图像的格式。
Value in
"url" | "b64_json"
user?string
代表您最终用户的唯一标识符。
Response Body
curl -X POST "https://api.openroute.cn/v1/images/edits" \ -F image="string" \ -F prompt="A sunlit indoor lounge area with a pool containing a flamingo"
Last updated on