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

# Search pricing by model

> Search pricing across all providers by model ID.



## OpenAPI

````yaml platform/api-reference/openapi.json GET /v1/prices/search
openapi: 3.0.0
info:
  title: Models Pricing API
  version: 1.0.0
servers:
  - url: https://api.narev.ai
security: []
paths:
  /v1/prices/search:
    get:
      tags:
        - Pricing
      summary: Search pricing by model ID
      description: Search pricing across all providers by model ID.
      parameters:
        - schema:
            type: string
            description: Search query matched against model ID.
            example: gpt-4
            x-default: gpt-4
          required: false
          name: q
          in: query
        - schema:
            type: string
            example: openai
            x-default: openai
          required: false
          name: provider_id
          in: query
        - schema:
            type: string
            example: gpt-4o
            x-default: gpt-4o
          required: false
          name: model_id
          in: query
        - schema:
            type: string
            enum:
              - model_id
              - provider_id
            example: model_id
            x-default: model_id
          required: false
          name: sort_by
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: asc
            example: asc
            x-default: asc
          required: false
          name: order
          in: query
        - schema:
            type: integer
            minimum: 1
            default: 1
            example: 1
            x-default: 1
          required: false
          name: page
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 1000
            default: 100
            example: 100
            x-default: 100
          required: false
          name: page_size
          in: query
      responses:
        '200':
          description: Matching pricing entries.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PriceResponse'
components:
  schemas:
    PriceResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/ModelPricingItem'
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      required:
        - data
        - meta
    ModelPricingItem:
      type: object
      properties:
        model_id:
          type: string
        provider_id:
          type: string
        pricing:
          type: object
          nullable: true
          properties:
            prompt:
              type: number
            completion:
              type: number
            discount:
              type: number
            request:
              type: number
            web_search:
              type: number
            input_cache_read:
              type: number
            input_cache_write:
              type: number
            image:
              type: number
            image_output:
              type: number
            audio:
              type: number
            audio_output:
              type: number
            input_audio_cache:
              type: number
            internal_reasoning:
              type: number
          required:
            - prompt
            - completion
            - discount
            - request
            - web_search
            - input_cache_read
            - input_cache_write
            - image
            - image_output
            - audio
            - audio_output
            - input_audio_cache
            - internal_reasoning
        message:
          type: string
      required:
        - model_id
        - provider_id
        - pricing
    PaginationMeta:
      type: object
      properties:
        page:
          type: integer
        page_size:
          type: integer
        total:
          type: integer
        total_pages:
          type: integer
      required:
        - page
        - page_size
        - total
        - total_pages

````