{"uid":"cap_2Hb6l6DOSyuf9j4jQexSN","slug":"gpt-shop-llm-price-lookup-e1b9f9c0","name":"GPT Shop 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://api.gptshopltd.com/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_HXqlOPS6MD6DkeEiNlhnl","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 a list of LLM models with their current input and output pricing per million tokens, optionally filtered by model ID or name.","exampleAgentPrompt":"Can you look up the current token pricing for GPT-4o — I need to know both the input and output cost per million tokens?","exampleUseCases":[{"title":"Compare LLM costs before building","prompt":"I'm about to build an AI pipeline and I want to see what the input and output token prices are for all available models so I can pick the most cost-effective one."},{"title":"Find cheapest model for high-volume output","prompt":"Which LLM has the lowest output token price right now? I'm generating a lot of text and want to minimize costs."},{"title":"Filter pricing by specific provider","prompt":"Can you pull up all the pricing info for OpenAI models specifically? I want to see input and output costs per million tokens for each one."}],"resultDescription":"A JSON object containing a list of LLM models, each with a model ID, input price in USD per 1 million tokens, and output price in USD per 1 million tokens, plus the pricing unit label.","failureModes":["No models returned if filter query string matches nothing","Stale pricing if the backend cache is not updated frequently","Payment failure if USDC micropayment via x402 is not correctly submitted","400/402 errors if the x402 payment header is missing or malformed"],"whenToPreferThis":"Choose this endpoint when you need current LLM token pricing data without API keys or account setup, especially in autonomous agent contexts where micropayment-based access (x402/USDC) is preferred over subscription APIs. Ideal for cost-comparison workflows or dynamic model selection based on price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:40:30.600Z","isFirstParty":false,"canonicalSlug":"gpt-shop-llm-price-lookup-e1b9f9c0"}