{"uid":"cap_Yp1jt8TwCbanp52H0tfQv","slug":"x402-agent-tools-llm-price-lookup-2bf91639","name":"x402 Agent Tools – LLM Price Lookup","description":"Pay-per-call tools for AI agents. USDC on Base or Solana via x402 v2; no keys, no accounts.","url":"https://x402-agent-tools.vercel.app/v1/prices/llm?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"q":{"type":"string","description":"Optional substring filter on model id or name"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"unit":"USD per 1M tokens","models":[{"id":"openai/gpt-4o","inputPerMTokUsd":2.5,"outputPerMTokUsd":10}]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VFwtq9hNdwe8kEW4zb3zU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current per-token pricing for LLM models, optionally filtered by model ID or name substring","exampleAgentPrompt":"Can you look up the current token pricing for GPT-4o — both input and output costs per million tokens?","exampleUseCases":[{"title":"Compare LLM costs before choosing a model","prompt":"Show me the input and output token prices for all the LLM models available so I can pick the most cost-effective one for my project."},{"title":"Check price for a specific model","prompt":"What does it cost per million tokens to use GPT-4o, both for input and output?"},{"title":"Filter LLM pricing by provider","prompt":"Give me pricing for all OpenAI models — I want to see their input and output token rates so I can estimate my monthly spend."}],"resultDescription":"A JSON object containing a list of LLM models with their IDs, input cost per million tokens in USD, output cost per million tokens in USD, and the pricing unit label (e.g. 'USD per 1M tokens').","failureModes":["No models match the provided query filter — returns an empty models array","Invalid query parameter type causes a 400 error","Payment not received or insufficient USDC balance results in a 402 Payment Required response","Service temporarily unavailable returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when an agent needs to programmatically look up or compare LLM token pricing without requiring API keys or account setup, paying only $0.002 USDC per call via x402. Ideal for cost-estimation workflows, model selection logic, or budget-aware routing decisions within an agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T06:52:28.065Z","isFirstParty":false,"canonicalSlug":"x402-agent-tools-llm-price-lookup-2bf91639"}