{"uid":"cap_d_JUl4ptx_um878XW9iLZ","slug":"dopaminedesk-ai-model-pricing-api-3902537b","name":"DopamineDesk AI Model Pricing API","description":"Fetch a current third-party aggregated model-pricing snapshot from LiteLLM. Buyers should verify final pricing with each provider.","url":"https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/ai_model_pricing","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":{"providers":{"type":"string","description":"Comma-separated list of providers to filter."}},"additionalProperties":true}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["success","source","source_url","fetched_at","caveat","count","models","marketplace_metadata"],"properties":{"count":{"type":"integer"},"caveat":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"source":{"type":"string"},"success":{"type":"boolean"},"fetched_at":{"type":"string"},"source_url":{"type":"string"},"marketplace_metadata":{"type":"object","required":["data_mode","billable","availability","source"],"properties":{"source":{"type":"string"},"billable":{"type":"boolean"},"data_mode":{"type":"string"},"availability":{"type":"string"}},"additionalProperties":true}},"additionalProperties":true}}}}},"responseSchema":{"type":"json","example":{"count":30,"caveat":"Third-party aggregated pricing. Verify final purchasing decisions with the model...","models":["[nested detail omitted from the challenge header; see the full example in /openapi.json]"],"source":"LiteLLM community pricing database","success":true,"fetched_at":"2026-08-07T07:32:42.020Z","source_url":"https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.jso...","marketplace_metadata":{"source":"LiteLLM community pricing database","billable":true,"data_mode":"live_source","availability":"operational"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JVRO2u0wBpCddEiPq-0yx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 and context window sizes for major AI language models across providers like OpenAI and Anthropic.","exampleAgentPrompt":"Pull the latest pricing for OpenAI and Anthropic models — I need input cost, output cost, and context window for each so I can figure out which LLM is cheapest for my use case.","exampleUseCases":[{"title":"LLM cost comparison for budget planning","prompt":"Can you get me the current pricing for all available AI models so I can compare input and output costs across OpenAI and Anthropic and decide which one to use for my app?"},{"title":"Context window lookup for long document tasks","prompt":"I need to process very long documents — can you look up which AI models have the largest context windows and what they cost per million tokens?"},{"title":"Filter pricing by specific provider","prompt":"What are the current per-token prices for Anthropic's models specifically? I want to see input cost, output cost, and context window for each one."}],"resultDescription":"A JSON object containing an array of AI model records — each with model ID, provider name, input cost per 1M tokens, output cost per 1M tokens, and context window size — plus a timestamp indicating when the pricing data was last updated.","failureModes":["Invalid provider filter value returns empty models array","Stale pricing data if upstream sources haven't updated recently — check updated_at timestamp","Payment failure via x402 if USDC balance is insufficient results in 402 response","Network timeout from Cloud Run cold start on first call"],"whenToPreferThis":"Choose this endpoint when you need structured, machine-readable AI model pricing data with context window details for cost optimization decisions, especially if you are already using the x402 USDC micropayment stack and want a single low-cost lookup rather than scraping multiple provider documentation pages.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:47:57.390Z","isFirstParty":false}