Skip to content
StackPick

OpenAI API

The default model API. GPT models, tools, and a platform console.

Last reviewed

Last updated

OpenAI API is #2 of 6 in LLM APIs and model providers. Editorial score 8.0: Ease 8, Power 9, Price 6, Vibe-coder fit 8. Initial editorial estimate. Not a measured benchmark.

Who it is for The model API most libraries already speak.LLM APIs and model providers: The model behind the feature.

The OpenAI API is the platform for OpenAI's models, including GPT models, tool use, and related APIs. It is the default when a tutorial, an SDK, or a teammate already assumes an OpenAI key. Billing is usage-based. Rates: check site.

What shipped in OpenAI API

Best use cases

  • Adding a model call to an app that expects an OpenAI-style API
  • Tool calling and structured outputs
  • A key you can also use from Codex and many frameworks

Pros

  • + The widest support in frameworks and examples
  • + Usage-based, so a small app can start small
  • + One platform covers the models and the coding agent

Who should skip it

Skip OpenAI API when one of these listed limits is the constraint.

  • − The bill tracks usage, and usage on agents adds up
  • − Rates, model names, and limits: check site

All comparisonsAll best-of lists

Pricing

Usage-based

OpenAI API is listed as Usage-based. Usage-based. Token rates and rate limits: check site.

Alternatives to OpenAI API

All alternatives to OpenAI API

Listed alternatives: Anthropic API, Gemini API, OpenRouter. Anthropic API is listed for “Calling Claude from your own product”. Gemini API is listed for “A capable model API with a free starting quota”. OpenRouter is listed for “Switching models without switching SDKs”.

Also in LLM APIs and model providers: Groq, Mistral.

LLM APIs and model providers

8.3

Anthropic API

Claude models via API. The pair to Claude Code.

Best for Calling Claude from your own product

Usage-basedDetails

LLM APIs and model providers

7.6

Gemini API

Google's Gemini models, with a free tier that moves.

Best for A capable model API with a free starting quota

Usage-basedDetails

LLM APIs and model providers

7.9

OpenRouter

One API key for many models, including labs and open weights.

Best for Switching models without switching SDKs

Usage-basedDetails

Release notes

Release history
  1. OpenAI API

    GPT-6.1 Terra

    On October 26, 2026, OpenAI released GPT-6.1 Terra. It is available to Plus, Pro, Enterprise, and Edu users in ChatGPT Work and Codex, and in the API as gpt-6.1-terra. OpenAI describes it as a fast model for visual reasoning, computer use, and writing. Standard API pricing is $1 per million input tokens, $0.05 per million cached input tokens, and $5 per million output tokens, which OpenAI says is 50% lower than GPT-5.6 Terra and GPT-6.1 Sol. For the most complex coding tasks, OpenAI says GPT-6.1 Sol and GPT-6 Astra remain the better choice.

    Source for GPT-6.1 Terra (opens in a new tab)
  2. OpenAI API

    Decisions API generally available

    On October 22, 2026, OpenAI made the Decisions API generally available. It uses GPT-6 Luna for questions with bounded answers and, OpenAI says, is up to 10x faster than GPT-6 Luna through the Responses API. Since the public beta it adds a native GPT-Live integration, prompt caching, and inference residency in the US and EU. Requests can include native JSON and images in question instructions, and up to 400 questions, twice the previous limit. Answer types are predicate (a probability from 0 to 1), choice (one of the supplied values, plus probabilities and confidence), and score (a probability-weighted average of rubric level indices). Input is $0.10 per million tokens and cached input is $0.01 per million tokens, with no output-token charge. Regional processing is available in the US and EU.

    Source for Decisions API generally available (opens in a new tab)

Newsletter

Get the weekly AI tool shortlist

One email when rankings change or a tool ships something that matters. No spam, unsubscribe anytime.