Discover/OpenAI API
live

OpenAI APIdevelopers.openai.com

Retrieve current OpenAI model pricing across all tiers and categories via one API endpoint. Filter by section or tier to compare GPT, image, audio, and video costs.

Endpoint health
verified 6d ago
get_pricing
1/1 passing latest checkself-healing
Endpoints
1
Updated
26d ago

What is the OpenAI API?

The OpenAI Pricing API exposes one endpoint, get_pricing, that returns per-token and per-unit costs for every model listed on the OpenAI developer pricing page, covering nine sections and four pricing tiers. Each response object includes the model name, section (e.g., Flagship models, Multimodal models, Image generation), pricing tier (Standard, Batch, Flex, or Priority), and the corresponding input/output cost fields. Use the section and tier query parameters to narrow results to exactly the models you need.

Try it
Filter by pricing tier (case-insensitive partial match). Some sections only have a subset of tiers.
Filter by section name (case-insensitive partial match). Partial matches work, e.g. 'image' matches 'Image generation models'.
api.parse.bot/scraper/2801fee9-9543-4a70-9ab5-e01bc965c803/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/2801fee9-9543-4a70-9ab5-e01bc965c803/get_pricing?tier=Standard&section=Flagship' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace developers-openai-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: OpenAI Model Pricing SDK — retrieve and filter model pricing data."""
from parse_apis.openai_model_pricing_api import OpenAIPricing, Section, Tier, PricingUnavailable

client = OpenAIPricing()

# List all flagship models at Standard tier — limit caps total items fetched.
for model in client.modelpricings.list(section=Section.FLAGSHIP, tier=Tier.STANDARD, limit=5):
    print(model.model, model.input, model.output)

# Drill into a specific section — take one item with .first().
first_tool = client.modelpricings.list(section=Section.TOOLS, limit=1).first()
if first_tool:
    print(first_tool.section, first_tool.tier, first_tool.model)

# Typed error handling around a pricing call.
try:
    for m in client.modelpricings.list(section=Section.FINETUNING, tier=Tier.BATCH, limit=3):
        print(m.model, m.cached_input, m.output)
except PricingUnavailable as exc:
    print(f"Pricing unavailable: {exc}")

print("exercised: modelpricings.list with Section/Tier enums, .first(), error handling")
All endpoints · 1 totalmissing one? ·

Get all OpenAI model pricing. Returns each model with its section, pricing tier, and per-token costs. Optionally filter by section name or pricing tier using case-insensitive partial matching. Pricing fields vary by section: text models have input/output/cached_input; image models have modality-based pricing; video models have price_per_second; tools have flat per-call or per-GB pricing. Returns a single page of all matching models.

Input
ParamTypeDescription
tierstringFilter by pricing tier (case-insensitive partial match). Some sections only have a subset of tiers.
sectionstringFilter by section name (case-insensitive partial match). Partial matches work, e.g. 'image' matches 'Image generation models'.
Response
{
  "type": "object",
  "fields": {
    "total": "integer count of models returned",
    "models": "array of model pricing objects, each containing section, tier, model name, and pricing fields that vary by section (e.g. input, output, cached_input for text models; modality, price_per_second for video/image models)"
  },
  "sample": {
    "data": {
      "total": 67,
      "models": [
        {
          "tier": "Standard",
          "input": "$10.00",
          "model": "gpt-5.5",
          "output": "$45.00",
          "model_2": "$30.00",
          "section": "Flagship models",
          "cached_input": "$1.00",
          "long_context": "$0.50",
          "short_context": "$5.00"
        },
        {
          "tier": "Standard",
          "input": "$5.00",
          "model": "gpt-5.4",
          "output": "$22.50",
          "model_2": "$15.00",
          "section": "Flagship models",
          "cached_input": "$0.50",
          "long_context": "$0.25",
          "short_context": "$2.50"
        }
      ]
    },
    "status": "success"
  }
}

About the OpenAI API

What get_pricing Returns

The get_pricing endpoint returns an array of model pricing objects under the models key, along with a total count of matched results. Each object carries at minimum: the model name, the section it belongs to (e.g., "Flagship models", "Image generation", "Realtime and audio generation", "Transcription", "Tools", "Specialized", "Finetuning"), and the tier ("Standard", "Batch", "Flex", or "Priority"). Cost fields vary by section — text models include input and output per-token rates, while image and video generation models include unit-based pricing fields appropriate to their output type.

Filtering Options

Both the section and tier parameters accept case-insensitive partial strings, so passing tier=batch matches the "Batch" tier across all sections, and passing section=flagship returns only Flagship model entries. Combining both parameters narrows results to the intersection — for example, Batch-tier pricing for Flagship models only. When neither parameter is supplied, the full catalog is returned. The total field in the response reflects the count after filtering.

Coverage Scope

The API reflects the nine model groupings published on developers.openai.com/api/docs/pricing: Flagship, Multimodal, Image generation, Video generation, Realtime and audio generation, Transcription, Tools, Specialized, and Finetuning. This covers the GPT-4 family, o-series reasoning models, DALL-E and image variants, Whisper-based transcription, embeddings, moderation, and fine-tuned model cost structures. Pricing fields are sourced directly from the published pricing table, so they change when OpenAI updates that page.

Reliability & maintenanceVerified

The OpenAI API is a managed, monitored endpoint for developers.openai.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when developers.openai.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official developers.openai.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
6d ago
Latest check
1/1 endpoint passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Monitoring OpenAI pricing changes over time and alerting when costs shift for a specific model
  • Comparing Batch-tier vs Standard-tier costs across all Flagship models before choosing a processing strategy
  • Building a cost estimator that looks up current input/output token rates for a given model by name
  • Selecting the lowest-cost model for a task by comparing per-token rates across sections
  • Populating an internal rate card or billing dashboard with up-to-date OpenAI model costs
  • Filtering to Image generation or Video generation sections to plan budget for media-generation pipelines
  • Tracking Finetuning tier pricing separately to estimate custom model training and inference costs
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does OpenAI have an official developer API for pricing data?+
OpenAI does not publish an official REST endpoint for pricing data. The pricing information is maintained as a published page at developers.openai.com/api/docs/pricing rather than a versioned machine-readable API.
What pricing fields does a model object include, and do they differ by section?+
Yes. All model objects include section, tier, and model name fields. Cost fields vary by section: text-based models (Flagship, Specialized, Finetuning) include input and output per-token rates. Image generation and video generation models carry unit-appropriate pricing fields for those output types. Transcription and audio models follow their own cost-per-unit structure. The response shape adapts to the type of model in each section.
How fresh is the pricing data returned by the API?+
The data reflects what is currently published on the OpenAI pricing page. OpenAI updates that page without a versioned changelog, so prices can change without advance notice. If you need to track historical pricing, you would need to poll the endpoint and store snapshots yourself — the API does not return historical or timestamped records.
Can I retrieve pricing for a specific model by its exact name?+
The get_pricing endpoint supports partial, case-insensitive filtering only via the section and tier parameters, not by model name directly. To find a specific model, fetch the full list (or filter by section) and match the model field client-side. The API does not currently expose a model-name filter parameter. You can fork it on Parse and revise to add a model-name filter endpoint.
Does the API include usage data, token consumption, or account spend alongside pricing?+
No. The API returns published list prices only — there are no usage metrics, account-level spend figures, or token consumption data. It covers cost-per-unit rates as published by OpenAI. You can fork it on Parse and revise to add endpoints that pull from OpenAI's own usage dashboard if that data becomes accessible.
Page content last updated . Spec covers 1 endpoint from developers.openai.com.
Related APIs in Developer ToolsSee all →
artificialanalysis.ai API
Compare and rank LLM models and providers across performance benchmarks, then dive into detailed specifications for any model to find the best fit for your needs. Discover performance metrics for specialized AI systems handling speech, images, and video, plus benchmark data for different hardware configurations.
epoch.ai API
Compare AI model performance across mathematical reasoning benchmarks by retrieving real-time scores from Epoch AI's FrontierMath leaderboard, including separate tiers for challenging problems and provider information for 86+ models from major AI labs. Track how leading models from OpenAI, Anthropic, Google DeepMind, and other providers perform on different difficulty levels with their release dates.
toolify.ai API
Search and browse premium .ai domain names available on the Toolify marketplace, filtering by keywords, categories, prices, and domain attributes to find the perfect domain for your project. Explore curated domain listings organized by category to discover valuable .ai domains suited to your needs.
gpulist.ai API
Monitor GPU cluster availability and pricing across the market, search for specific listings, and calculate total portfolio value from GPUList.ai in real-time. Get detailed information on individual GPU clusters including specifications and current market rates.
ollama.com API
Search and discover AI models from Ollama's library, finding specific variants, their sizes, context windows, and ready-to-use pull commands. Get detailed information about any model to quickly understand its capabilities and requirements before running it locally.
lmarena.ai API
lmarena.ai API
tesla.com API
tesla.com API
theresanaiforthat.com API
Search and discover AI tools across different tasks, get detailed information about specific tools, browse available deals, and stay updated on the latest tools. Find the perfect AI solution for your needs by filtering by task category or checking featured and trending tools.