# 列出所有型号

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/models:
    get:
      summary: 列出所有型号
      deprecated: false
      description: |+
        返回可用模型的列表。您可以列出所有可用模型，或列出特定系列或管道的模型。

      tags:
        - models
      parameters:
        - name: family
          in: query
          description: |+
            该列表将被过滤以仅包含具有匹配family属性的模型。

          required: false
          schema:
            type: string
        - name: pipeline
          in: query
          description: |+
            该列表将被过滤以仅包含具有匹配pipeline属性的模型

          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    name:
                      type: string
                    family:
                      type: string
                    pipelines:
                      type: array
                      items:
                        type: string
                    base_resolution:
                      type: object
                      properties:
                        width:
                          type: integer
                        height:
                          type: integer
                      required:
                        - width
                        - height
                      x-apifox-orders:
                        - width
                        - height
                    price:
                      type: number
                    created_at:
                      type: string
                  required:
                    - id
                    - name
                    - family
                    - pipelines
                    - base_resolution
                    - price
                    - created_at
                  x-apifox-orders:
                    - id
                    - name
                    - family
                    - pipelines
                    - base_resolution
                    - price
                    - created_at
              example:
                - id: stable-diffusion-v1-5
                  name: Stable Diffusion v1.5
                  family: stable-diffusion
                  pipelines:
                    - text-to-image
                    - image-to-image
                    - controlnet
                  base_resolution:
                    width: 512
                    height: 512
                  price: 0.00045
                  created_at: '2023-05-23T18:51:22.297Z'
                - id: realistic-vision-v1-3
                  name: Realistic Vision v1.3
                  family: stable-diffusion
                  pipelines:
                    - text-to-image
                    - image-to-image
                    - controlnet
                  base_resolution:
                    width: 512
                    height: 512
                  price: 0.00045
                  created_at: '2023-05-23T18:51:22.297Z'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: models
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/3997609/apis/api-146674775-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://api.getimg.ai/v1
    description: 正式环境
security: []

```
