{"uid":"cap_U_wjJSrRJLG8BKcuEBeQK","slug":"modelprices-xyz-openai-pricing-table-264937d3","name":"modelprices.xyz OpenAI Pricing Table","description":"OpenAI pricing table: per-token cost of every AI model OpenAI serves, in one call — input, output, cache and batch USD per 1M tokens, ranked cheapest first, with context window and capability flags joined in. Compare LLM token cost inside OpenAI and against other providers hosting the same model. Normalized from public sources, cross-checked, refreshed hourly.","url":"https://modelprices.xyz/llm/prices/openai","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":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_ADi4fnmq_JRiJm0aEipX6","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 per-token USD costs for every OpenAI model in a single call, including input, output, cache, and batch pricing ranked cheapest first with context window and capability metadata.","exampleAgentPrompt":"Pull the full OpenAI model pricing table right now — I want to see every model's input, output, cache, and batch cost per million tokens, sorted cheapest first, so I can pick the most cost-effective one for my app.","exampleUseCases":[{"title":"Cheapest OpenAI model for high-volume summarization","prompt":"I'm building a document summarization pipeline that'll process millions of tokens a day — can you pull the current OpenAI pricing table and tell me which model gives me the lowest input and output cost per million tokens?"},{"title":"Budget check before switching LLM providers","prompt":"I'm considering moving from Anthropic to OpenAI — fetch me the latest OpenAI token prices for all their models so I can compare what I'd be paying per million tokens on input and output."},{"title":"Identify OpenAI models supporting batch at lowest cost","prompt":"Which OpenAI models support batch inference and what do they cost? Grab the full OpenAI pricing table and filter for the ones with batch pricing, ranked cheapest first."}],"resultDescription":"A ranked list of all OpenAI models with their per-token USD prices (input, output, cached input, batch input/output) per 1M tokens, context window sizes, and capability flags such as vision or function-calling support, sorted ascending by cost.","failureModes":["Stale pricing if the hourly refresh has not yet propagated (data may lag up to 1 hour behind OpenAI's published rates)","OpenAI adds or removes a model between refresh cycles, causing temporary gaps","Network timeout or upstream data source unavailability returns a 5xx error","Pricing denominated only in USD; currency conversion must be done client-side"],"whenToPreferThis":"Choose this endpoint when you need a comprehensive, normalized, and freshly-refreshed pricing snapshot specifically for OpenAI models in a single API call, especially when you need to compare costs across the full OpenAI catalog (including cache and batch tiers) or rank models by cheapest cost. Prefer it over scraping OpenAI's website or maintaining your own pricing table. Use sibling endpoints on modelprices.xyz for cross-provider comparisons (e.g., AWS Bedrock, SambaNova) or for filtered leaderboards (cheapest, largest context, vision-capable).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:39.503Z","isFirstParty":false}