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

# Get a reference price

> Read a tool's default reference price or pass a bearer token for its applicable quote. OAuth access tokens require `tasks:read`.



## OpenAPI

````yaml /openapi.json get /v1/tools/{tool_key}/price
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/tools/{tool_key}/price:
    get:
      tags:
        - Tools and prices
      summary: Get a reference price
      description: >-
        Read a tool's default reference price or pass a bearer token for its
        applicable quote. OAuth access tokens require `tasks:read`.
      operationId: get_tool_price
      parameters:
        - name: tool_key
          in: path
          required: true
          description: The public tool key.
          schema:
            type: string
            pattern: ^[a-z][a-z0-9_]{0,63}$
            example: image_compress
      responses:
        '200':
          description: Get a reference price
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    $ref: '#/components/schemas/ToolPrice'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - Bearer: []
        - {}
components:
  schemas:
    ToolPrice:
      type: object
      properties:
        tool_key:
          type: string
          pattern: ^[a-z][a-z0-9_]{0,63}$
        price_quota:
          type: integer
          minimum: 0
          description: Legacy raw quota. Prefer `price_amount`.
        pricing_scope:
          type: string
          enum:
            - default
            - user
        billing_rule:
          type: object
          properties:
            id:
              type: string
            version:
              type: integer
            params:
              type: object
          required:
            - id
            - version
            - params
        unit:
          type: string
          const: credit
          description: Unit of every `*_amount` and credit-valued price field.
        price_amount:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          description: >-
            Reference price in credits as a JSON number with up to four
            decimals; null when no single per-task price applies (for example
            token billing). Not a reservation or guaranteed charge.
        description:
          type: string
          description: Reference conditions and billing semantics for the amounts.
        variant_prices:
          type: object
          additionalProperties:
            type: number
            minimum: 0
          description: Reference credit components by variant, when applicable.
        platform_prices:
          type: object
          additionalProperties:
            type: number
            minimum: 0
          description: Reference credit prices by platform for time-billed tools.
        token_rates_amount:
          type: object
          additionalProperties:
            type: number
            minimum: 0
          description: >-
            Token rates in credits per billing unit. `token_rates` keeps its
            legacy raw-quota values.
        variant_prices_quota:
          type: object
          additionalProperties:
            type: integer
            minimum: 0
          description: Legacy raw quota. Prefer `variant_prices`.
        platform_prices_quota:
          type: object
          additionalProperties:
            type: integer
            minimum: 0
          description: Legacy raw quota. Prefer `platform_prices`.
        token_rates:
          type: object
          additionalProperties:
            type: integer
            minimum: 0
          description: Legacy raw-quota token rates. Prefer `token_rates_amount`.
      required:
        - tool_key
        - price_quota
        - pricing_scope
        - billing_rule
        - unit
        - price_amount
        - description
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: A valid credential is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: The credential lacks permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error404:
      description: The resource is unavailable to this caller.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: A Mouter API key or OAuth access token.

````

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