> ## 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"
```

يمثل كل صف قدرة لمزوّد ومسار، ويتضمن:

* معرّف القدرة الأساسي ومسار API العام
* معرّف المزوّد واسمه ورابطه المختصر للنموذج
* وسائط الإدخال والإخراج
* أسماء المعلمات المدعومة وتفاصيلها المنظمة
* حالات المزوّد والنموذج والقدرة والتوجيه والتوفر
* تواريخ السريان عندما يكون المسار مجدولًا أو محدودًا زمنيًا
* ملخص أسعار المسار

## تضمين المسارات المجدولة وغير النشطة

لا يعيد الإعداد الافتراضي `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`

على سبيل المثال، يعيد هذا مسارات OpenAI التي تدعم `temperature`:

```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 ar/openapi/v1/openapi.localized.yaml GET /models/{author}/{slug}/endpoints
openapi: 3.0.3
info:
  title: Phaseo Gateway API
  description: >-
    واجهة API للبوابة تتيح الوصول إلى نماذج ذكاء اصطناعي متنوعة عبر نقاط نهاية
    متوافقة مع OpenAI.
  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: >-
        يعرض صفوف نقاط النهاية الخاصة بالمزوّد لنموذج واحد، بما يشمل المسارات
        العامة والوسائط والمعلمات المدعومة والتوفر وحالة التوجيه وslugs نماذج
        المزوّد وملخصات تسعير نقاط النهاية.
      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: التصفية حسب معرّف المزوّد.
          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.