# 检索模型

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/models/ {id }:
    get:
      summary: 检索模型
      deprecated: false
      description: ''
      tags:
        - models
      parameters:
        - name: 'id '
          in: path
          description: |+
            唯一的型号ID

          required: true
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                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'
          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-146678928-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: []

```
