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

# List models with their providers

> List available models, each with every provider that can serve it.

Each model carries the same fields as `GET /v1/models`, with `pricing` the price a bare
`model` string bills at, plus `providers`: every active upstream for that model at its own
price and capabilities, exactly as `GET /v1/models/{model_id}/providers` lists them.

Rows inside `providers` come back alphabetically and never mark the default: it is a
routing decision we re-make freely. Discounts resolve per provider row, as billing does.

The response is a bare array, the same top-level shape as `GET /v1/models`.



## OpenAPI

````yaml /api/openapi.json get /v2/models
openapi: 3.1.0
info:
  title: MeshAPI
  description: One key, all AI models.
  version: 0.1.0
servers:
  - url: https://api.meshapi.ai
security:
  - BearerAuth: []
paths:
  /v2/models:
    get:
      tags:
        - Models
      summary: List models with their providers
      description: >-
        List available models, each with every provider that can serve it.


        Each model carries the same fields as `GET /v1/models`, with `pricing`
        the price a bare

        `model` string bills at, plus `providers`: every active upstream for
        that model at its own

        price and capabilities, exactly as `GET /v1/models/{model_id}/providers`
        lists them.


        Rows inside `providers` come back alphabetically and never mark the
        default: it is a

        routing decision we re-make freely. Discounts resolve per provider row,
        as billing does.


        The response is a bare array, the same top-level shape as `GET
        /v1/models`.
      operationId: list_models_v2
      parameters:
        - name: free
          in: query
          required: false
          schema:
            anyOf:
              - type: boolean
              - type: 'null'
            description: 'Filter: true = free models only, false = paid only, omit = all'
            title: Free
          description: 'Filter: true = free models only, false = paid only, omit = all'
        - name: type
          in: query
          required: false
          schema:
            anyOf:
              - enum:
                  - text
                  - embedding
                  - image
                  - audio
                  - video
                  - evaluation
                type: string
              - type: 'null'
            description: >-
              Filter by model_type: text, embedding, image, audio, video,
              evaluation
            title: Type
          description: >-
            Filter by model_type: text, embedding, image, audio, video,
            evaluation
        - name: provider
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Only models this provider can serve, e.g. openai, vertex, bedrock.
              Every provider of a matching model is still listed. amazon-bedrock
              and azure-foundry are accepted as aliases.
            title: Provider
          description: >-
            Only models this provider can serve, e.g. openai, vertex, bedrock.
            Every provider of a matching model is still listed. amazon-bedrock
            and azure-foundry are accepted as aliases.
        - in: header
          name: X-Mesh-Version
          required: false
          schema:
            type: string
            enum:
              - 2026-08
              - 2026-09
              - 2026-11
              - '2026-11-12'
            default: 2026-08
          example: '2026-11-12'
          description: >-
            Dated version of the API contract to pin this request to. Omit it
            and the request is served under `2026-08` — the oldest supported
            version, so an existing integration is never moved by a release. A
            malformed or unsupported value is rejected with `400
            invalid_api_version` rather than falling back silently. The version
            actually served is echoed as `X-Mesh-Version` on every response,
            including errors.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ModelV2Out'
                title: Response List Models V2
              examples:
                default:
                  summary: Example response
                  value:
                    - id: openai/gpt-4o-mini
                      name: GPT-4o mini
                      brand: openai
                      provider: openai
                      context_length: 128000
                      is_free: false
                      pricing:
                        pricing_unit: per_1m_tokens
                        prompt_usd_per_1m: '0.1500000'
                        completion_usd_per_1m: '0.6000000'
                        input_usd_per_unit: '0.1500000'
                        output_usd_per_unit: '0.6000000'
                        request_usd: '0.0000000'
                      description: Fast, affordable multimodal model for everyday tasks.
                      supports_thinking: false
                      supports_completions_api: true
                      supports_responses_api: true
                      supports_realtime: false
                      supports_embeddings: false
                      supports_tools: true
                      supports_structured_output: true
                      supports_system_prompt: true
                      supports_batching: true
                      supports_background_response: false
                      supports_video_generation: false
                      supports_image_edit: false
                      supports_image_inpaint: false
                      supports_image_outpaint: false
                      supports_image_mix: false
                      supports_image_reframe: false
                      supports_image_upscale: false
                      supports_image_remove_background: false
                      supports_image_reference: true
                      model_type: text
                      input_modalities:
                        - text
                        - image
                      output_modalities:
                        - text
                      context_window: 128000
                      standard_context_threshold: 64000
                      providers:
                        - provider: azure
                          display_name: Azure
                          is_free: false
                          pricing:
                            pricing_unit: per_1m_tokens
                            prompt_usd_per_1m: '0.1650000'
                            completion_usd_per_1m: '0.6000000'
                            input_usd_per_unit: '0.1500000'
                            output_usd_per_unit: '0.6000000'
                            request_usd: '0.0000000'
                          context_window: 128000
                          supports_tools: true
                          supports_structured_output: true
                        - provider: openai
                          display_name: OpenAI
                          is_free: false
                          pricing:
                            pricing_unit: per_1m_tokens
                            prompt_usd_per_1m: '0.1500000'
                            completion_usd_per_1m: '0.6000000'
                            input_usd_per_unit: '0.1500000'
                            output_usd_per_unit: '0.6000000'
                            request_usd: '0.0000000'
                          context_window: 128000
                          supports_tools: true
                          supports_structured_output: true
        '401':
          description: Missing or invalid credentials (user JWT or API key)
          content:
            application/json:
              example:
                error:
                  code: unauthorized
                  message: Invalid or missing API key.
                request_id: req_01ARZ3NDEKTSV4RRFFQ69G5FAV
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '503':
          description: >-
            The model catalog could not be read, or the calling key's policy
            names a brand wildcard and the catalog brand map is not loaded yet —
            retry
      security:
        - BearerAuth: []
components:
  schemas:
    ModelV2Out:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
        brand:
          anyOf:
            - type: string
            - type: 'null'
          title: Brand
        context_length:
          anyOf:
            - type: integer
            - type: 'null'
          title: Context Length
        is_free:
          type: boolean
          title: Is Free
        pricing:
          $ref: '#/components/schemas/ModelPricing'
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        supports_thinking:
          type: boolean
          title: Supports Thinking
        supports_adaptive_thinking:
          type: boolean
          title: Supports Adaptive Thinking
          default: false
        supports_completions_api:
          type: boolean
          title: Supports Completions Api
        supports_responses_api:
          type: boolean
          title: Supports Responses Api
        supports_realtime:
          type: boolean
          title: Supports Realtime
          default: false
        supports_embeddings:
          type: boolean
          title: Supports Embeddings
          default: false
        supports_tools:
          type: boolean
          title: Supports Tools
          default: false
        supports_structured_output:
          type: boolean
          title: Supports Structured Output
          default: false
        supports_system_prompt:
          type: boolean
          title: Supports System Prompt
          default: true
        supports_batching:
          type: boolean
          title: Supports Batching
          default: false
        supports_flex:
          type: boolean
          title: Supports Flex
          default: false
        supports_background_response:
          type: boolean
          title: Supports Background Response
          default: false
        supports_video_generation:
          type: boolean
          title: Supports Video Generation
          default: false
        supports_t2v:
          type: boolean
          title: Supports T2V
          default: false
        supports_i2v:
          type: boolean
          title: Supports I2V
          default: false
        supports_v2v:
          type: boolean
          title: Supports V2V
          default: false
        supports_image_edit:
          type: boolean
          title: Supports Image Edit
          default: false
        supports_image_inpaint:
          type: boolean
          title: Supports Image Inpaint
          default: false
        supports_image_outpaint:
          type: boolean
          title: Supports Image Outpaint
          default: false
        supports_image_mix:
          type: boolean
          title: Supports Image Mix
          default: false
        supports_image_reframe:
          type: boolean
          title: Supports Image Reframe
          default: false
        supports_image_upscale:
          type: boolean
          title: Supports Image Upscale
          default: false
        supports_image_remove_background:
          type: boolean
          title: Supports Image Remove Background
          default: false
        supports_image_reference:
          type: boolean
          title: Supports Image Reference
          default: false
        supports_video_first_frame:
          type: boolean
          title: Supports Video First Frame
          default: false
        supports_video_last_frame:
          type: boolean
          title: Supports Video Last Frame
          default: false
        supports_video_reference_image:
          type: boolean
          title: Supports Video Reference Image
          default: false
        supports_video_reference_video:
          type: boolean
          title: Supports Video Reference Video
          default: false
        supports_video_reference_audio:
          type: boolean
          title: Supports Video Reference Audio
          default: false
        supports_video_negative_prompt:
          type: boolean
          title: Supports Video Negative Prompt
          default: false
        video_options:
          anyOf:
            - $ref: '#/components/schemas/VideoOptionsOut'
            - type: 'null'
        max_prompt_chars:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Prompt Chars
        supports_generate_audio:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Supports Generate Audio
        image_operations:
          items:
            type: string
          type: array
          title: Image Operations
          default: []
        model_type:
          type: string
          title: Model Type
        input_modalities:
          items:
            type: string
          type: array
          title: Input Modalities
        output_modalities:
          items:
            type: string
          type: array
          title: Output Modalities
        context_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Context Window
        standard_context_threshold:
          anyOf:
            - type: integer
            - type: 'null'
          title: Standard Context Threshold
        realtime_session_max_tokens:
          anyOf:
            - type: integer
            - type: 'null'
          title: Realtime Session Max Tokens
        realtime_max_concurrent_per_owner:
          anyOf:
            - type: integer
            - type: 'null'
          title: Realtime Max Concurrent Per Owner
        is_composite:
          type: boolean
          title: Is Composite
          default: false
        composite_models:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Composite Models
        audio_output_formats:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Audio Output Formats
          description: >-
            Text-to-speech `response_format` values verified for this model. A
            name with a rate or bitrate must be requested exactly; a bare codec
            (`mp3`) accepts any of its variants. Null when not verified: the
            provider may still refuse a format.
        deprecation:
          anyOf:
            - $ref: '#/components/schemas/ModelDeprecation'
            - type: 'null'
          description: >-
            Set when the model is deprecated. It stays usable until `sunset_on`.
            Unrelated to `pricing.deprecated_date`.
        providers:
          items:
            $ref: '#/components/schemas/ModelProviderOut'
          type: array
          title: Providers
          description: >-
            Every active upstream provider for this model, alphabetically, each
            at its

            own price with the discounts that apply to that row. The default
            provider is not marked.
      type: object
      required:
        - id
        - name
        - context_length
        - is_free
        - pricing
        - supports_thinking
        - supports_completions_api
        - supports_responses_api
        - model_type
        - input_modalities
        - output_modalities
      title: ModelV2Out
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ModelPricing:
      properties:
        pricing_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Pricing Unit
        prompt_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Prompt Usd Per 1M
        completion_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Completion Usd Per 1M
        input_usd_per_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Input Usd Per Unit
        output_usd_per_unit:
          anyOf:
            - type: string
            - type: 'null'
          title: Output Usd Per Unit
        image_output_usd_per_image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Usd Per Image
        request_usd:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Usd
        long_context_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Input Usd Per 1M
        long_context_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Output Usd Per 1M
        cache_read_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Read Input Usd Per 1M
        cache_write_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Write Input Usd Per 1M
        cache_write_1h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Write 1H Input Usd Per 1M
        cache_write_12h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Write 12H Input Usd Per 1M
        cache_read_audio_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Read Audio Input Usd Per 1M
        long_context_cache_read_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Cache Read Input Usd Per 1M
        long_context_cache_write_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Cache Write Input Usd Per 1M
        long_context_cache_write_12h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Cache Write 12H Input Usd Per 1M
        long_context_cache_write_1h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Long Context Cache Write 1H Input Usd Per 1M
        batch_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Batch Input Usd Per 1M
        batch_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Batch Output Usd Per 1M
        flex_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Input Usd Per 1M
        flex_cache_read_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Cache Read Input Usd Per 1M
        flex_cache_write_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Cache Write Input Usd Per 1M
        flex_cache_write_12h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Cache Write 12H Input Usd Per 1M
        flex_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Output Usd Per 1M
        flex_long_context_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Long Context Input Usd Per 1M
        flex_long_context_cache_read_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Long Context Cache Read Input Usd Per 1M
        flex_long_context_cache_write_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Long Context Cache Write Input Usd Per 1M
        flex_long_context_cache_write_12h_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Long Context Cache Write 12H Input Usd Per 1M
        flex_long_context_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Flex Long Context Output Usd Per 1M
        training_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Training Usd Per 1M
        fine_tuned_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Fine Tuned Input Usd Per 1M
        fine_tuned_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Fine Tuned Output Usd Per 1M
        audio_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Audio Input Usd Per 1M
        audio_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Audio Output Usd Per 1M
        transcription_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Transcription Usd Per 1M
        cached_audio_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cached Audio Input Usd Per 1M
        cached_text_input_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cached Text Input Usd Per 1M
        cache_hit_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Cache Hit Usd Per 1M
        output_with_audio_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Output With Audio Usd Per 1M
        output_with_video_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Output With Video Usd Per 1M
        image_input_usd_per_image:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Input Usd Per Image
        image_output_size:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Size
        image_output_usd_per_image_512:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Usd Per Image 512
        image_output_usd_per_image_1k:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Usd Per Image 1K
        image_output_usd_per_image_2k:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Usd Per Image 2K
        image_output_usd_per_image_4k:
          anyOf:
            - type: string
            - type: 'null'
          title: Image Output Usd Per Image 4K
        video_output_usd_per_unit_360p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 360P
        video_output_usd_per_unit_480p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 480P
        video_output_usd_per_unit_540p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 540P
        video_output_usd_per_unit_720p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 720P
        video_output_usd_per_unit_768p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 768P
        video_output_usd_per_unit_1080p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 1080P
        video_output_usd_per_unit_1440p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 1440P
        video_output_usd_per_unit_4k:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output Usd Per Unit 4K
        video_output_with_video_usd_per_unit_360p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 360P
        video_output_with_video_usd_per_unit_480p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 480P
        video_output_with_video_usd_per_unit_540p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 540P
        video_output_with_video_usd_per_unit_720p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 720P
        video_output_with_video_usd_per_unit_768p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 768P
        video_output_with_video_usd_per_unit_1080p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 1080P
        video_output_with_video_usd_per_unit_1440p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 1440P
        video_output_with_video_usd_per_unit_4k:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Video Usd Per Unit 4K
        video_output_with_audio_usd_per_unit_360p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 360P
        video_output_with_audio_usd_per_unit_480p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 480P
        video_output_with_audio_usd_per_unit_540p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 540P
        video_output_with_audio_usd_per_unit_720p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 720P
        video_output_with_audio_usd_per_unit_768p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 768P
        video_output_with_audio_usd_per_unit_1080p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 1080P
        video_output_with_audio_usd_per_unit_1440p:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 1440P
        video_output_with_audio_usd_per_unit_4k:
          anyOf:
            - type: string
            - type: 'null'
          title: Video Output With Audio Usd Per Unit 4K
        reasoning_output_usd_per_1m:
          anyOf:
            - type: string
            - type: 'null'
          title: Reasoning Output Usd Per 1M
        price_matrix:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Price Matrix
        tool_pricing:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Tool Pricing
        effective_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Effective Date
        deprecated_date:
          anyOf:
            - type: string
            - type: 'null'
          title: Deprecated Date
        discount_pct:
          anyOf:
            - type: string
            - type: 'null'
          title: Discount Pct
          description: >-
            The largest discount active for this caller on this model, as a
            percentage. Where a discount is tied to one of several upstream
            accounts, which account serves is chosen by routing, so a given
            request may be billed less of a discount than this — or none.
        discounted:
          anyOf:
            - $ref: '#/components/schemas/ModelPricing'
            - type: 'null'
          description: >-
            The rates above with `discount_pct` applied — the best price this
            caller may be billed, not a guaranteed one (see `discount_pct`).
            Absent when no discount is active. A request served on the caller's
            own BYOK provider key is billed without the gateway discount, so
            these are the platform-served rates, and a provider-scoped discount
            is resolved against the model's default provider. `tool_pricing` is
            omitted because hosted-tool fees are charged after the discount.
      type: object
      title: ModelPricing
    VideoOptionsOut:
      properties:
        resolutions:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Resolutions
        ratios:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Ratios
        durations:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Durations
        min_duration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Min Duration
        max_duration:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Duration
        durations_by_resolution:
          anyOf:
            - additionalProperties:
                items:
                  type: integer
                type: array
              type: object
            - type: 'null'
          title: Durations By Resolution
      type: object
      title: VideoOptionsOut
      description: >-
        What a video model accepts, where we can derive it. An omitted list is
        unknown.
    ModelDeprecation:
      properties:
        deprecated_on:
          type: string
          format: date
          title: Deprecated On
          description: Date the deprecation was announced.
        sunset_on:
          anyOf:
            - type: string
            - type: 'null'
          format: date
          title: Sunset On
          description: Date the model stops being served; null = not yet announced.
        replacement_model_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Replacement Model Id
          description: The model to migrate to, when one is recommended.
      type: object
      required:
        - deprecated_on
      title: ModelDeprecation
      description: |-
        A customer-facing retirement notice for the whole model.

        Not `pricing.deprecated_date`, which marks one soft-deleted price row.
    ModelProviderOut:
      properties:
        provider:
          type: string
          title: Provider
        display_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Display Name
        icon_url:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Url
        icon_url_dark:
          anyOf:
            - type: string
            - type: 'null'
          title: Icon Url Dark
        is_free:
          type: boolean
          title: Is Free
        pricing:
          $ref: '#/components/schemas/ModelPricing'
        context_window:
          anyOf:
            - type: integer
            - type: 'null'
          title: Context Window
        standard_context_threshold:
          anyOf:
            - type: integer
            - type: 'null'
          title: Standard Context Threshold
        supports_thinking:
          type: boolean
          title: Supports Thinking
          default: false
        supports_adaptive_thinking:
          type: boolean
          title: Supports Adaptive Thinking
          default: false
        supports_completions_api:
          type: boolean
          title: Supports Completions Api
          default: true
        supports_responses_api:
          type: boolean
          title: Supports Responses Api
          default: false
        supports_embeddings:
          type: boolean
          title: Supports Embeddings
          default: false
        supports_tools:
          type: boolean
          title: Supports Tools
          default: false
        supports_structured_output:
          type: boolean
          title: Supports Structured Output
          default: false
        supports_system_prompt:
          type: boolean
          title: Supports System Prompt
          default: true
        supports_batching:
          type: boolean
          title: Supports Batching
          default: false
        supports_flex:
          type: boolean
          title: Supports Flex
          default: false
        supports_background_response:
          type: boolean
          title: Supports Background Response
          default: false
        supports_video_generation:
          type: boolean
          title: Supports Video Generation
          default: false
        supports_t2v:
          type: boolean
          title: Supports T2V
          default: false
        supports_i2v:
          type: boolean
          title: Supports I2V
          default: false
        supports_v2v:
          type: boolean
          title: Supports V2V
          default: false
        supports_video_first_frame:
          type: boolean
          title: Supports Video First Frame
          default: false
        supports_video_last_frame:
          type: boolean
          title: Supports Video Last Frame
          default: false
        supports_video_reference_image:
          type: boolean
          title: Supports Video Reference Image
          default: false
        supports_video_reference_video:
          type: boolean
          title: Supports Video Reference Video
          default: false
        supports_video_reference_audio:
          type: boolean
          title: Supports Video Reference Audio
          default: false
        supports_video_negative_prompt:
          type: boolean
          title: Supports Video Negative Prompt
          default: false
        video_options:
          anyOf:
            - $ref: '#/components/schemas/VideoOptionsOut'
            - type: 'null'
        max_prompt_chars:
          anyOf:
            - type: integer
            - type: 'null'
          title: Max Prompt Chars
        supports_generate_audio:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Supports Generate Audio
        supports_realtime:
          type: boolean
          title: Supports Realtime
          default: false
      type: object
      required:
        - provider
        - is_free
        - pricing
      title: ModelProviderOut
      description: >-
        One upstream provider that can serve a model, with that provider's
        price.


        A model usually has several price rows — one per provider that can serve
        it — and the

        rates differ between them. `GET /v1/models` only ever publishes the
        default row (the

        price a bare `model` string bills at), so this is the only place the
        alternatives are

        visible. It carries that one row's customer-facing price and capability
        flags.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: >-
        Enter your MeshAPI key (`rsk_...`) or, for the admin-keys endpoints, a
        dashboard session token — sent as `Authorization: Bearer <token>`.

````

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