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

# 列出模型端点能力

> 查看某个模型可用的供应商路由、模态、参数、可用性和价格。

如果应用需要确认某个模型、供应商、端点和参数组合是否可用，请在发送请求前使用此端点。

对于 `openai/gpt-5.4-mini`，请使用：

```bash theme={null}
curl "https://api.phaseo.app/v1/models/openai/gpt-5.4-mini/endpoints" \
  -H "Authorization: Bearer $PHASEO_API_KEY"
```

每一行代表一项供应商和端点能力，包括：

* 规范能力 ID 和公共 API 路径
* 供应商 ID、名称及供应商模型 slug
* 输入和输出模态
* 受支持的参数名称及结构化参数详情
* 供应商、模型、能力、路由和可用性状态
* 路由已计划或有时间限制时的生效日期
* 端点定价摘要

## 包含计划中和未启用的路由

默认值 `availability=active` 仅返回可公开路由的条目。使用 `availability=all` 可查看即将推出和未启用的路由：

```bash theme={null}
curl "https://api.phaseo.app/v1/models/openai/gpt-5.4-mini/endpoints?availability=all" \
  -H "Authorization: Bearer $PHASEO_API_KEY"
```

除非 `availability_status` 为 `active` 且 `is_active_gateway` 为 `true`，否则不要将生产流量路由到该条目。

## 筛选路由

以下筛选条件可重复指定，也可使用逗号分隔：

* `provider`
* `provider_status`
* `provider_routing_status`
* `model_routing_status`
* `capability_status`
* `provider_availability_status`
* `provider_availability_reason`
* `status`
* `supported_parameters`

例如，以下请求会返回支持 `temperature` 的 OpenAI 路由：

```bash theme={null}
curl "https://api.phaseo.app/v1/models/openai/gpt-5.4-mini/endpoints?provider=openai&supported_parameters=temperature" \
  -H "Authorization: Bearer $PHASEO_API_KEY"
```

## 相关端点

* [列出模型](./models.mdx)
* [列出端点](./endpoints.mdx)


## OpenAPI

````yaml zh-Hans/openapi/v1/openapi.localized.yaml GET /models/{author}/{slug}/endpoints
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: 通过兼容 OpenAI 的端点访问各种 AI 模型的网关 API。
  version: 1.0.0
  contact:
    name: Phaseo
    url: https://phaseo.app
    email: danielbutler500@gmail.com
servers:
  - url: https://api.phaseo.app/v1
    description: 全球路由
security:
  - BearerAuth: []
tags:
  - name: Gateway
    description: Core Phaseo Gateway operations.
paths:
  /models/{author}/{slug}/endpoints:
    get:
      tags:
        - Gateway
      summary: 列出模型端点能力
      description: 返回单个模型的提供商特定端点行，包括公共路径、模态、支持的参数、可用性、路由状态、提供商模型 slug 和端点定价摘要。
      operationId: listModelEndpoints
      parameters:
        - name: author
          in: path
          required: true
          description: 模型作者或组织段。
          schema:
            type: string
        - name: slug
          in: path
          required: true
          description: 模型 slug 段。
          schema:
            type: string
        - name: provider
          in: query
          description: 按提供商 ID 筛选。
          schema:
            type: array
            items:
              type: string
        - name: provider_status
          in: query
          description: 按提供商推出状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: provider_routing_status
          in: query
          description: 按提供商路由状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: model_routing_status
          in: query
          description: 按模型路由状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: capability_status
          in: query
          description: 按提供商能力状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: provider_availability_status
          in: query
          description: 按提供商可用状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: provider_availability_reason
          in: query
          description: 按提供商可用原因筛选。
          schema:
            type: array
            items:
              type: string
        - name: status
          in: query
          description: 按模型规范生命周期状态筛选。
          schema:
            type: array
            items:
              type: string
        - name: supported_parameters
          in: query
          description: 按支持的参数名称或别名筛选端点行。
          schema:
            type: array
            items:
              type: string
        - name: availability
          in: query
          description: '`active` 返回可公开路由的端点行；`all` 还包括即将推出和停用的行。'
          schema:
            type: string
            enum:
              - active
              - all
            default: active
      responses:
        '200':
          description: 模型端点能力行
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelEndpointsResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidRequestResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: 未找到符合所请求可用性和提供商筛选条件的模型
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: 错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ModelEndpointsResponse:
      type: object
      required:
        - ok
        - id
        - name
        - description
        - organization
        - modalities
        - availability_mode
        - endpoints
      properties:
        ok:
          type: boolean
          enum:
            - true
        id:
          type: string
        name:
          type: string
        description:
          type: string
        organization:
          $ref: '#/components/schemas/GatewayModelOrganization'
        modalities:
          $ref: '#/components/schemas/GatewayModalities'
        availability_mode:
          type: string
          enum:
            - active
            - all
        endpoints:
          type: array
          items:
            $ref: '#/components/schemas/ModelEndpointCapability'
      additionalProperties: false
    InvalidRequestResponse:
      type: object
      required:
        - ok
        - error
        - message
      properties:
        ok:
          type: boolean
          enum:
            - false
          example: false
        error:
          type: string
          example: invalid_request
        message:
          type: string
          example: Invalid request parameters.
        max_offset:
          type: integer
          minimum: 0
      additionalProperties: true
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        ok:
          type: boolean
          example: false
        error:
          oneOf:
            - type: string
            - type: object
              additionalProperties: true
          example: error_type
        message:
          type: string
          example: Human-readable error message
        description:
          type: string
          example: Additional error details.
        generation_id:
          type: string
          example: G-abc123
        status_code:
          type: integer
          example: 502
        error_type:
          type: string
          enum:
            - user
            - system
          example: system
        error_origin:
          type: string
          enum:
            - user
            - gateway
            - upstream
          example: upstream
        reason:
          type: string
          example: all_candidates_failed
        attempt_count:
          type: integer
          example: 2
        failed_providers:
          type: array
          items:
            type: string
          example:
            - google-ai-studio
            - openai
        failed_statuses:
          type: array
          items:
            type: integer
          example:
            - 403
            - 429
        upstream_error:
          $ref: '#/components/schemas/ErrorUpstreamError'
        failure_sample:
          type: array
          items:
            $ref: '#/components/schemas/ErrorFailureSampleItem'
        provider_failure_diagnostics:
          $ref: '#/components/schemas/ErrorProviderFailureDiagnostics'
        routing_diagnostics:
          $ref: '#/components/schemas/ErrorRoutingDiagnostics'
        provider_candidate_diagnostics:
          $ref: '#/components/schemas/ErrorProviderCandidateDiagnostics'
        provider_enablement:
          $ref: '#/components/schemas/ErrorProviderEnablementDiagnostics'
        missing_pricing_providers:
          type: array
          items:
            type: string
        provider_payment_required_provider:
          type: string
          example: openai
        provider_payment_required_support_notice:
          type: string
          example: >-
            Our upstream provider billing appears to be unavailable. If this
            persists, contact support.
        details:
          type: array
          items:
            type: object
            additionalProperties: true
      additionalProperties: true
    GatewayModelOrganization:
      type: object
      nullable: true
      required:
        - id
        - name
        - color
      properties:
        id:
          type: string
        name:
          type: string
          nullable: true
        color:
          type: string
          nullable: true
    GatewayModalities:
      type: object
      required:
        - input
        - output
      properties:
        input:
          type: array
          items:
            type: string
        output:
          type: array
          items:
            type: string
    ModelEndpointCapability:
      type: object
      required:
        - id
        - endpoint
        - capability_id
        - public_path
        - collection
        - provider
        - model
        - routable
        - status
        - status_reason
        - modalities
        - capabilities
        - routing
        - effective
        - pricing
      properties:
        id:
          type: string
          example: openai:responses
        endpoint:
          type: string
          example: responses
        capability_id:
          type: string
          example: responses
        public_path:
          type: string
          example: /v1/responses
        collection:
          type: string
          enum:
            - text
            - images
            - video
            - audio
            - embeddings
            - rerank
            - moderation
            - ocr
            - music
            - batch
            - files
        provider:
          type: object
          required:
            - id
            - name
          properties:
            id:
              type: string
              example: openai
            name:
              type: string
              nullable: true
              example: OpenAI
        model:
          type: string
          nullable: true
          example: gpt-5.4-mini
        routable:
          type: boolean
        status:
          type: string
          enum:
            - active
            - coming_soon
            - inactive
        status_reason:
          $ref: '#/components/schemas/GatewayProviderAvailabilityReason'
        modalities:
          $ref: '#/components/schemas/GatewayModalities'
        capabilities:
          $ref: '#/components/schemas/GatewayCapabilities'
        routing:
          type: object
          required:
            - provider
            - model
            - capability
          properties:
            provider:
              $ref: '#/components/schemas/GatewayRoutingStatus'
            model:
              $ref: '#/components/schemas/GatewayRoutingStatus'
            capability:
              $ref: '#/components/schemas/GatewayCapabilityStatus'
        effective:
          type: object
          required:
            - from
            - to
          properties:
            from:
              type: string
              nullable: true
            to:
              type: string
              nullable: true
        pricing:
          $ref: '#/components/schemas/GatewayPricing'
    ErrorUpstreamError:
      type: object
      properties:
        code:
          type: string
          nullable: true
          example: PERMISSION_DENIED
        message:
          type: string
          nullable: true
          example: The caller does not have permission.
        description:
          type: string
          nullable: true
        param:
          type: string
          nullable: true
    ErrorFailureSampleItem:
      type: object
      properties:
        provider:
          type: string
          nullable: true
        type:
          type: string
          nullable: true
        status:
          type: integer
          nullable: true
        upstream_error_code:
          type: string
          nullable: true
        upstream_error_message:
          type: string
          nullable: true
        upstream_error_description:
          type: string
          nullable: true
        upstream_error_param:
          type: string
          nullable: true
        upstream_payload_preview:
          type: string
          nullable: true
        retryable:
          type: boolean
          nullable: true
      additionalProperties: true
    ErrorProviderFailureDiagnostics:
      type: object
      properties:
        category:
          type: string
          enum:
            - credentials_not_configured
            - credentials_invalid_or_forbidden
            - provider_access_missing
            - region_or_project_restriction
            - model_unavailable_for_endpoint
            - rate_limited
            - server_error
        hint:
          type: string
        provider:
          type: string
          nullable: true
    ErrorRoutingDiagnostics:
      type: object
      properties:
        filterStages:
          type: array
          items:
            type: object
            properties:
              stage:
                type: string
              beforeCount:
                type: integer
              afterCount:
                type: integer
              droppedProviders:
                type: array
                items:
                  type: object
                  properties:
                    providerId:
                      type: string
                      nullable: true
                    reason:
                      type: string
                      nullable: true
                  additionalProperties: true
            additionalProperties: true
      additionalProperties: true
    ErrorProviderCandidateDiagnostics:
      type: object
      properties:
        totalProviders:
          type: integer
        supportsEndpointCount:
          type: integer
        candidateCount:
          type: integer
        droppedUnsupportedEndpoint:
          type: array
          items:
            type: string
        droppedMissingAdapter:
          type: array
          items:
            type: object
            properties:
              providerId:
                type: string
                nullable: true
              endpoint:
                type: string
                nullable: true
            additionalProperties: true
      additionalProperties: true
    ErrorProviderEnablementDiagnostics:
      type: object
      properties:
        capability:
          type: string
        providersBefore:
          type: array
          items:
            type: string
        providersAfter:
          type: array
          items:
            type: string
        dropped:
          type: array
          items:
            type: object
            properties:
              providerId:
                type: string
                nullable: true
              reason:
                type: string
                nullable: true
            additionalProperties: true
      additionalProperties: true
    GatewayProviderAvailabilityReason:
      type: string
      enum:
        - active
        - preview_only
        - gated
        - access_limited
        - region_limited
        - project_limited
        - paused
        - soft_blocked
        - deranked_lvl1
        - deranked_lvl2
        - deranked_lvl3
        - internal_testing
        - scheduled
        - coming_soon
        - provider_disabled
        - model_disabled
        - capability_disabled
        - provider_not_ready
        - provider_inactive
        - inactive
        - retired
    GatewayCapabilities:
      type: object
      required:
        - parameters
        - parameter_details
      properties:
        endpoints:
          type: array
          items:
            type: string
        parameters:
          type: array
          items:
            type: string
        parameter_details:
          $ref: '#/components/schemas/SupportedParameterDetails'
    GatewayRoutingStatus:
      type: string
      enum:
        - active
        - deranked_lvl1
        - deranked_lvl2
        - deranked_lvl3
        - disabled
    GatewayCapabilityStatus:
      type: string
      enum:
        - active
        - coming_soon
        - deranked_lvl1
        - deranked_lvl2
        - deranked_lvl3
        - disabled
        - internal_testing
    GatewayPricing:
      type: object
      required:
        - pricing_plan
        - meters
      properties:
        pricing_plan:
          type: string
          enum:
            - standard
        meters:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/GatewayPricingMeter'
    SupportedParameterDetails:
      type: object
      description: 按参数名称列出的请求参数结构化约束和提供商支持情况。
      additionalProperties:
        type: object
        additionalProperties: true
    GatewayPricingMeter:
      type: object
      nullable: true
      required:
        - provider_id
        - unit
        - unit_size
        - price_per_unit
        - currency
      properties:
        provider_id:
          type: string
        unit:
          type: string
        unit_size:
          type: number
          minimum: 0
          exclusiveMinimum: true
        price_per_unit:
          type: string
        currency:
          type: string
          enum:
            - USD
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Bearer 令牌身份验证

````

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