AI and LLMs · Service

OpenAI API

OpenAI's paid API for its GPT family of models, the technology behind ChatGPT, used to add text, image, speech and search features to your own app.

Model providers · Pay as you go · updated

How it works

You send messages (plus optional images, files or tool definitions) and get a reply, streamed token by token if you like. The line-up runs from small, low-cost models for simple high-volume work to flagship reasoning models for hard problems, alongside models for image generation, speech-to-text, text-to-speech, realtime voice and embeddings. The Responses API is the main interface today; the older Chat Completions format is so widely copied that many other providers accept it too.

There is no free tier: you prepay credit and can set budgets per project. Batch jobs that can wait up to a day cost half as much, and repeated prompt prefixes are billed at a discount when cached. API data is not used to train models by default. The same models are also sold through Microsoft Azure and Amazon Bedrock, for companies that prefer to buy through their existing cloud.

OpenAI API pros and cons

Pros

  • Wide range of models, from cheap and fast to flagship reasoning
  • Mature SDKs, documentation and examples in most languages
  • Its request format is supported by many other providers and tools
  • Built-in tools such as web search, file search and code execution

Cons

  • Pay per token from the first request, with no free tier
  • Models are retired on a schedule, so apps need occasional upgrades
  • Self-serve fine-tuning closed to new customers in 2026

When to use OpenAI API

Pick it when

  • You want a well-documented default with broad model choice
  • One vendor should cover text, vision, speech and embeddings
  • Your company already buys through Azure or AWS and wants the same models there

Skip it when

  • Data must never leave your own servers (run an open model instead)
  • You need a free tier for a prototype (Gemini has one)

OpenAI API pricing

Pay as you go

Per million tokens: from about $0.10 input and $0.50 output for small models to about $10 input and $50 output for the flagship. Batch jobs are half price.

OpenAI API pricing page (opens in a new tab)Approximate, checked September 2026.What the other tools cost

OpenAI API vs the alternatives

More in AI and LLMs

Model providers

All 22 AI and LLMs terms

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.