> ## 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-generate)接口。

图像生成为**文生图**：仅通过文字提示词生成全新图像，不传入图片。如需基于已有图片进行修改（图生图），请使用[「图像编辑模型」](/api-reference/get-api-ai-models-image-edit)及对应的编辑图像接口。



## OpenAPI

````yaml /openapi/zh/aitoearn.openapi.json get /api/ai/models/image/generation
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/generation:
    get:
      tags:
        - AI 服务/图像生成
      summary: 图像生成模型
      description: >-
        接口说明：获取当前可用的图像生成模型目录，以及每个模型支持的尺寸、质量、风格、积分范围和价格。模型与参数范围可能随服务更新，调用图像生成接口时请以本接口的实时返回值为准。


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


        图像生成为**文生图**：仅通过文字提示词生成全新图像，不传入图片。如需基于已有图片进行修改（图生图），请使用[「图像编辑模型」](/api-reference/get-api-ai-models-image-edit)及对应的编辑图像接口。
      operationId: ImageController_getImageGenerationModels
      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: 支持的图像尺寸列表
                        qualities:
                          type: array
                          items:
                            type: string
                            enum:
                              - auto
                              - high
                              - medium
                              - low
                          description: 支持的质量选项
                        styles:
                          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: 图像尺寸价格表
                        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: integer
                    message: string
                    data:
                      - name: string
                        label: string
                        tags:
                          - string
                        creditsScope: string
                        sizes:
                          - string
                        qualities:
                          - string
                        styles:
                          - string
                        pricing:
                          - size: string
                            price: number
                            originPrice: number
                        description: string
                    requestId: string
      deprecated: false
      security: []

````

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