{
  "x402Version": 2,
  "service": {
    "name": "CheapTokens.ai",
    "description": "OpenAI-compatible LLM inference and chat completions via discounted Venice API credits. Pay USDC to receive a live Venice.ai API key for /api/v1 models, chat, images, audio, video, and embeddings. Same-Day credits are 30–90% below Venice direct and expire at 23:59 UTC; Prepaid API Keys support recurring agent jobs.",
    "category": "Inference",
    "homepage": "https://cheaptokens.ai",
    "docs": "https://cheaptokens.ai/docs",
    "buyUrl": "https://cheaptokens.ai/buy",
    "openApi": "https://cheaptokens.ai/openapi.json",
    "llms": "https://cheaptokens.ai/llms.txt",
    "aiTxt": "https://cheaptokens.ai/ai.txt"
  },
  "discovery": {
    "resource": "https://cheaptokens.ai/api/buy",
    "category": "Inference",
    "facilitatorRequiredForIndexing": true,
    "facilitatorConfigured": true,
    "settlementPath": "cdp-facilitator",
    "facilitatorUrl": "https://api.cdp.coinbase.com/platform/v2/x402",
    "indexingMode": "post-settle",
    "indexingNote": "CDP Bazaar indexes this resource after a successful facilitator-routed settlement with accepted Bazaar metadata. Verify alone is not enough."
  },
  "payment": {
    "scheme": "exact",
    "network": "base",
    "maxAmountRequired": "1000000",
    "resource": "https://cheaptokens.ai/api/buy",
    "description": "OpenAI-compatible LLM inference and chat completions via discounted Venice API credits. Pay USDC to receive a live Venice.ai API key for /api/v1 models, chat, images, audio, video, and embeddings. Same-Day credits are 30–90% below Venice direct and expire at 23:59 UTC; Prepaid API Keys support recurring agent jobs.",
    "mimeType": "application/json",
    "payTo": "0x213c8d7434E2ae7AA1C392767c5120778D413215",
    "maxTimeoutSeconds": 300,
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "outputSchema": {
      "input": {
        "type": "http",
        "method": "POST",
        "discoverable": true,
        "bodyType": "json",
        "bodyFields": {
          "usdPaid": {
            "type": "number",
            "description": "Discounted USD amount to pay for Venice API credits. Minimum is based on receiving at least $0.50 in credits after current time-based pricing."
          },
          "purchaseMode": {
            "type": "string",
            "enum": [
              "spot",
              "prepaid"
            ],
            "description": "Use \"spot\" for Same-Day Credits or \"prepaid\" for a Prepaid API Key with prepaid balance and daily credit reserve."
          },
          "dailyReservedUsd": {
            "type": "number",
            "description": "Daily credit reserve amount in Venice API credits per UTC day. Required when purchaseMode=\"prepaid\". Must fit unreserved capacity for the start date and be at least one-seventh of the reserve balance."
          },
          "reserveStart": {
            "type": "string",
            "enum": [
              "tomorrow"
            ],
            "description": "Prepaid API Key daily credit reserve start. New Prepaid API Keys start tomorrow UTC; use Same-Day Credits for work today."
          },
          "topUpKeyLast6": {
            "type": "string",
            "description": "Optional last 6 characters of a wallet-owned active Prepaid API Key to top up."
          },
          "paymentSessionId": {
            "type": "string",
            "description": "Opaque session ID returned in a prior 402 response; echo it back on retry."
          }
        }
      },
      "output": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean"
          },
          "reservation": {
            "type": "boolean"
          },
          "veniceApiKey": {
            "type": "string",
            "description": "Live Venice.ai API key (OpenAI-compatible)."
          },
          "veniceKeyLast6": {
            "type": "string"
          },
          "purchase": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "dates": {
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "date"
                }
              },
              "usdPaid": {
                "type": "number"
              },
              "purchaseMode": {
                "type": "string",
                "enum": [
                  "spot",
                  "prepaid"
                ]
              },
              "dailyReservedUsd": {
                "type": "number"
              },
              "discountMultiplier": {
                "type": "number"
              },
              "creditsIssuedUsd": {
                "type": "number"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time"
              },
              "settlementTxHash": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "extra": {
      "name": "USD Coin",
      "version": "2"
    }
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "body": {
            "usdPaid": 1
          }
        },
        "output": {
          "type": "json",
          "example": {
            "success": true,
            "veniceApiKey": "vn-...live-key...",
            "veniceKeyLast6": "abc123",
            "purchase": {
              "id": "purchase_01HEXAMPLE",
              "ids": [
                "purchase_01HEXAMPLE"
              ],
              "dates": [
                "2026-04-25"
              ],
              "usdPaid": 1,
              "purchaseMode": "spot",
              "discountMultiplier": 0.5,
              "creditsIssuedUsd": 2,
              "expiresAt": "2026-04-25T23:59:59.000Z",
              "settlementTxHash": "0x0000000000000000000000000000000000000000000000000000000000000000"
            }
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ]
              },
              "bodyType": {
                "type": "string",
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ]
              },
              "body": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "usdPaid"
                ],
                "properties": {
                  "usdPaid": {
                    "type": "number",
                    "minimum": 0.01,
                    "description": "Discounted USD amount to pay for Venice API credits. Minimum is based on receiving at least $0.50 in credits after current time-based pricing."
                  },
                  "purchaseMode": {
                    "type": "string",
                    "enum": [
                      "spot",
                      "prepaid"
                    ],
                    "description": "Use \"spot\" for Same-Day Credits or \"prepaid\" for a Prepaid API Key with prepaid balance and daily credit reserve."
                  },
                  "dailyReservedUsd": {
                    "type": "number",
                    "description": "Daily credit reserve amount in Venice API credits per UTC day. Required when purchaseMode=\"prepaid\". Must fit unreserved capacity for the start date and be at least one-seventh of the reserve balance."
                  },
                  "reserveStart": {
                    "type": "string",
                    "enum": [
                      "tomorrow"
                    ],
                    "description": "Prepaid API Key daily credit reserve start. New Prepaid API Keys start tomorrow UTC; use Same-Day Credits for work today."
                  },
                  "topUpKeyLast6": {
                    "type": "string",
                    "description": "Optional last 6 characters of a wallet-owned active Prepaid API Key to top up."
                  },
                  "paymentSessionId": {
                    "type": "string",
                    "description": "Opaque session ID returned in a prior 402 response; echo it back on retry."
                  }
                }
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string"
              },
              "example": {
                "type": "object"
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      },
      "discoverable": true,
      "category": "Inference",
      "tags": [
        "inference",
        "llm",
        "openai",
        "chat-completions",
        "ai"
      ]
    }
  },
  "operational": {
    "supplierRevenueShare": 1,
    "additionalAppFeeTaken": false,
    "downstreamSweepEnabled": false,
    "feePolicy": "No additional application-layer fee is taken here when supplierRevenueShare is 1.0; any downstream splitter logic is external to this manifest."
  }
}