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

# 列出模型

> Retrieve all models visible to the current API key. The result is permission-aware and scoped to the key's assigned access group.



## OpenAPI

````yaml api-reference/openapi.json GET /v1/models
openapi: 3.1.0
info:
  title: DGrid AI Gateway API
  description: >-
    A single, unified API to access 200+ leading AI models. OpenAI-, Claude-,
    and Gemini-compatible endpoints for chat, completions, embeddings, images,
    audio, and moderations.
  version: 1.0.0
  contact:
    name: DGrid AI
    url: https://dgrid.ai
servers:
  - url: https://api.dgrid.ai
    description: DGrid AI Gateway
security:
  - bearerAuth: []
paths:
  /v1/models:
    get:
      tags:
        - Models
      summary: List models
      description: >-
        Retrieve all models visible to the current API key. The result is
        permission-aware and scoped to the key's assigned access group.
      operationId: listModels
      responses:
        '200':
          description: Model list.
          content:
            application/json:
              schema:
                type: object
                properties:
                  object:
                    type: string
                    description: Always `list`.
                  success:
                    type: boolean
                    description: Whether the request succeeded.
                  data:
                    type: array
                    description: List of model objects visible to the current API key.
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: >-
                            Model ID used in downstream API requests (e.g.
                            `openai/gpt-5.4`).
                        object:
                          type: string
                          description: Always `model`.
                        created:
                          type: integer
                          description: Unix timestamp in seconds.
                        owned_by:
                          type: string
                          description: 'Owner identifier. Default: `custom`.'
                        supported_endpoint_types:
                          type: array
                          items:
                            type: string
                          description: >-
                            Endpoint types the model supports: `openai` (Chat
                            Completions), `openai-response` (Responses API),
                            `image-generation` (Image APIs).
                  message:
                    type: string
                    description: Error description when `success` is `false`.
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  responses:
    BadRequest:
      description: Invalid request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            param:
              type: string
            code:
              type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Your DGrid API key. All endpoints use `Authorization: Bearer
        <DGRID_API_KEY>`.

````