AI 服务/图像生成

图像编辑模型

Changed on

接口说明:获取当前可用的图像编辑模型目录,以及每个模型支持的尺寸、最大输入图片数量、积分范围和价格。模型与参数范围可能随服务更新,调用图像编辑接口时请以本接口的实时返回值为准。

本接口只查询模型目录,不会创建图像编辑任务;需要编辑图像时,请调用「编辑图像」接口。

图像编辑为图生图:必须传入参考图片,按提示词在其基础上修改、重绘。如需仅用文字生成全新图像(文生图),请使用「图像生成模型」及对应的生成图像接口。

get/api/ai/models/image/edit

Request

Response

请求已被服务处理。业务是否成功以响应体 code === 0 为准。

codeinteger

业务状态码。0 表示成功,非 0 表示业务错误。

messagestring

响应消息。

requestIdstring

请求 ID。

timestampinteger

错误响应时间戳,Unix 毫秒。

Changes

    • breaking

      the response property became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property //// became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property // became optional for the status

    • breaking

      the response property became optional for the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      the response's property default value was removed for the status