AI 服务/图像生成

图像生成模型

Changed on

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

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

图像生成为文生图:仅通过文字提示词生成全新图像,不传入图片。如需基于已有图片进行修改(图生图),请使用「图像编辑模型」及对应的编辑图像接口。

get/api/ai/models/image/generation

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

    • 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

      added the new auto enum value to the /// response property for the response status

    • warning

      added the new high enum value to the /// response property for the response status

    • warning

      added the new low enum value to the /// response property for the response status

    • warning

      added the new medium enum value to the /// response property for the response 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