> ## Documentation Index
> Fetch the complete documentation index at: https://algorand-54fd52b3.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get a quote

> Free exact price quote for a validated chat request body, without paying. For the same request body, the WIF atomic amount is quote-bound to the 402 challenge; that signed challenge is authoritative.



## OpenAPI

````yaml POST /v1/quote
openapi: 3.1.0
info:
  title: Moltworld API
  version: 3.0.0
  description: >-
    Live Robinhood Chain deployment: chat requests are paid per call in WIF
    using x402 exact EVM/Permit2 on `eip155:4663`. Free model discovery and
    quotes are available. WIF is an 18-decimal ERC-20. Image, speech, video,
    marketplace listings and creator payouts, automatic WIF refunds/rebates, and
    autonomous agent mandates are not enabled. A paid chat request receives `402
    Payment Required` and must be retried with a valid EVM `Payment-Signature`;
    the signed challenge is authoritative for amount and recipient.
servers:
  - url: https://moltworldd.vercel.app
    description: Live WIF API
security: []
tags:
  - name: Models
    description: Chat is the only paid modality enabled on the Robinhood WIF deployment.
  - name: Pricing
  - name: Jobs and receipts
    description: >-
      Receipt lookup and signing keys are live. Video jobs are retained for
      legacy deployments only.
  - name: Mandates
    description: >-
      WIF GET lookup verifies a pinned owner-deployed contract. Setup, funding
      and revocation require the owner wallet; legacy Algorand POST routes
      remain unavailable on WIF.
  - name: Marketplace
    description: >-
      When ROBINHOOD_MARKETPLACE_ENABLED=true, approved real APIs support WIF
      checkout, exact creator credits and wallet-authorized verified payouts.
  - name: Service
paths:
  /v1/quote:
    post:
      tags:
        - Pricing
      summary: Get a quote
      description: >-
        Free exact price quote for a validated chat request body, without
        paying. For the same request body, the WIF atomic amount is quote-bound
        to the 402 challenge; that signed challenge is authoritative.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              allOf:
                - type: object
                  properties:
                    model:
                      type: string
                  required:
                    - model
                - description: Plus the request body for that model's endpoint.
            example:
              model: gpt-4o
              messages:
                - role: user
                  content: Hello
              max_tokens: 200
      responses:
        '200':
          description: Quote
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  schemas:
    QuoteResponse:
      type: object
      properties:
        model:
          type: string
        name:
          type: string
        available:
          type: boolean
        endpoint:
          type: string
        payment_flow:
          type: string
          enum:
            - authorization
        quote:
          $ref: '#/components/schemas/Quote'
        note:
          type: string
    Quote:
      type: object
      properties:
        modelSlug:
          type: string
        modality:
          type: string
          enum:
            - chat
        units:
          type: object
          properties:
            estimatedInputTokens:
              type: integer
            maxOutputTokens:
              type: integer
        costBasis:
          type: object
          properties:
            kind:
              type: string
              enum:
                - tokens
            inputPerMillionUsd:
              type: number
            outputPerMillionUsd:
              type: number
        upstreamCostUsd:
          type: number
        marginPercent:
          type: integer
        finalPriceUsd:
          type: number
        formattedPrice:
          type: string
        microUsdc:
          type: integer
          description: >-
            Legacy field name for the USD quote in micro-dollars; it is not USDC
            and is not the token transfer amount.
        costSource:
          type: string
          enum:
            - static
            - openrouter-live
            - fal-live
            - env-override
        amountAtomic:
          type: string
          pattern: ^[0-9]+$
          description: Exact WIF base-unit amount for the quoted request.
        asset:
          type: string
          description: WIF ERC-20 contract address.
        symbol:
          type: string
          enum:
            - WIF
        decimals:
          type: integer
          const: 18
        network:
          type: string
          const: eip155:4663
        wifPrice:
          type: object
          properties:
            source:
              type: string
            priceUsd:
              type: string
            observedAt:
              type: string
              format: date-time
            liquidityUsd:
              type: number
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: validation_error
            message:
              type: string
          required:
            - code
            - message
      required:
        - error
  responses:
    BadRequest:
      description: Invalid request body. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Unknown model, listing, job or receipt.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: The model or payment verification is unavailable. Nothing was charged.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

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