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

# Get request cost

> Returns the charge for one request. Take the ID from the `X-Oneapi-Request-Id` response header. No key needed.



## OpenAPI

````yaml openapi.yaml GET /api/cost/request/{request_id}
openapi: 3.1.0
info:
  title: Orvado API
  version: '1.0'
  description: OpenAI-compatible image API. Prices in USD, charged from a prepaid balance.
servers:
  - url: https://orvado.dev
security:
  - bearerAuth: []
paths:
  /api/cost/request/{request_id}:
    get:
      summary: Get request cost
      description: >-
        Returns the charge for one request. Take the ID from the
        `X-Oneapi-Request-Id` response header. No key needed.
      operationId: getRequestCost
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
            example: '2026102015161442847504045555018'
      responses:
        '200':
          description: The cost record, or `success:false` when the ID has no charge
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    title: Cost
                    properties:
                      request_id:
                        type: string
                      cost_usd:
                        type: number
                        example: 0.05
                      created_at:
                        type: integer
                        description: Unix time in milliseconds
                  - type: object
                    title: Not found
                    properties:
                      success:
                        type: boolean
                        example: false
                      message:
                        type: string
                        example: 'failed to get cost by request id: record not found'
      security: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your `td-` key from **Tokens**

````

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