POST
/
images
/
enhance
图片增强接口
curl --request POST \
  --url https://geekai.co/api/v1/images/enhance \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "jimeng-image-enhance-v2",
  "image": "<string>",
  "size": "1080p",
  "response_format": "url",
  "output_format": "png",
  "extra_body": {
    "enable_hdr": false,
    "enable_wb": false,
    "hdr_strength": 1
  },
  "retries": 0
}'
{
  "task_id": "<string>",
  "task_status": "succeed",
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}
注意:目前仅 jimeng-image-enhance-v2 模型支持图像增强,其他模型不支持。
图像增强 API 调用示例可以参考这里:图像增强

请求/响应参数明细

Authorizations

Authorization
string
header
required

JWT认证token

Body

application/json

Response

200
application/json

成功响应

The response is of type object.