Skip to main content
POST
編輯圖像(OpenAI Dall-E 相容)

授權

Authorization
string
header
必填

使用 Bearer Token 認證。 格式: Authorization: Bearer sk-xxxxxx

主體

model
enum<string>
必填

對外圖片模型名稱。

可用選項:
nano-banana,
doubao-seedream-3-0-t2i-250415,
kling-image,
kling-omni-image,
kolors-virtual-try-on-v1,
kolors-virtual-try-on-v1-5
範例:

"dall-e-2"

image
file
必填

單張圖片輸入,常用於圖生圖與擴圖。

prompt
string
必填

圖片生成描述。虛擬試衣模型可不傳。

mask
file

選填遮罩圖

n
integer
預設值:1

生成張數。

size
enum<string>

尺寸或解析度表達。

可用選項:
256x256,
512x512,
1024x1024
response_format
enum<string>

回傳格式。

可用選項:
url,
b64_json
user
string

回應

200 - application/json

成功產生圖片

created
integer
data
object[]