> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aitoearn.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 图像编辑模型

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

本接口只查询模型目录，不会创建图像编辑任务；需要编辑图像时，请调用[「编辑图像」](/api-reference/post-api-ai-image-edit)接口。

图像编辑为**图生图**：必须传入参考图片，按提示词在其基础上修改、重绘。如需仅用文字生成全新图像（文生图），请使用[「图像生成模型」](/api-reference/get-api-ai-models-image-generation)及对应的生成图像接口。



## OpenAPI

````yaml /openapi/zh/aitoearn.openapi.json get /api/ai/models/image/edit
openapi: 3.0.1
info:
  title: AiToEarn 开放平台 API
  description: AiToEarn 开放平台 API，支持在中国站与国际站之间切换调试。业务是否成功以响应体 code === 0 为准。
  version: 1.0.0
  contact: {}
servers:
  - url: https://aitoearn.cn
    description: 中国站
  - url: https://aitoearn.ai
    description: 国际站
security: []
tags:
  - name: AI 服务
  - name: AI 服务/视频生成
  - name: AI 服务/图像生成
  - name: 渠道管理
  - name: 渠道管理/账号
  - name: 渠道管理/内容发布
  - name: 渠道管理/平台
  - name: 渠道管理/作品
  - name: 渠道管理/账号分组
  - name: 渠道管理/授权
  - name: 资源管理
  - name: AI 服务/大语言模型
  - name: AI 服务/真人素材
  - name: AI 服务/Agent
paths:
  /api/ai/models/image/edit:
    get:
      tags:
        - AI 服务/图像生成
      summary: 图像编辑模型
      description: >-
        接口说明：获取当前可用的图像编辑模型目录，以及每个模型支持的尺寸、最大输入图片数量、积分范围和价格。模型与参数范围可能随服务更新，调用图像编辑接口时请以本接口的实时返回值为准。


        本接口只查询模型目录，不会创建图像编辑任务；需要编辑图像时，请调用[「编辑图像」](/api-reference/post-api-ai-image-edit)接口。


        图像编辑为**图生图**：必须传入参考图片，按提示词在其基础上修改、重绘。如需仅用文字生成全新图像（文生图），请使用[「图像生成模型」](/api-reference/get-api-ai-models-image-generation)及对应的生成图像接口。
      operationId: ImageController_getImageEditModels
      parameters: []
      responses:
        '200':
          description: 请求已被服务处理。业务是否成功以响应体 code === 0 为准。
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    description: 当前可用的图像编辑模型列表。模型、参数范围和价格可能随服务更新，请以每次接口返回为准。
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                          description: 模型名称
                        label:
                          type: string
                          description: 模型展示名称
                        tags:
                          type: array
                          items:
                            type: string
                          description: 标签列表
                        creditsScope:
                          type: string
                          enum:
                            - seedance
                          description: 模型使用的积分范围。当前返回 `seedance`，表示 Seedance 专用积分。
                        sizes:
                          type: array
                          items:
                            type: string
                          description: 支持的图像尺寸列表
                        pricing:
                          type: array
                          items:
                            type: object
                            properties:
                              size:
                                type: string
                                description: 该价格项适用的图像尺寸
                              price:
                                type: number
                                description: 当前价格值
                              originPrice:
                                type: number
                                description: 原价值
                            additionalProperties: false
                          description: 图像尺寸价格表
                        maxInputImages:
                          type: integer
                          description: 模型允许的最大输入图片数量
                        description:
                          type: string
                          description: 模型描述
                      additionalProperties: false
                  code:
                    type: integer
                    description: 业务状态码。0 表示成功，非 0 表示业务错误。
                  message:
                    type: string
                    description: 响应消息。
                  requestId:
                    type: string
                    description: 请求 ID。
                  timestamp:
                    type: integer
                    description: 错误响应时间戳，Unix 毫秒。
              examples:
                types:
                  value:
                    code: 0
                    message: 请求成功
                    data:
                      - name: string
                        label: string
                        tags:
                          - string
                        creditsScope: string
                        sizes:
                          - string
                        pricing:
                          - size: string
                            price: number
                            originPrice: number
                        maxInputImages: number
                        description: string
                    requestId: string
      deprecated: false
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.