OpenAI models are a series of powerful language models developed by OpenAI.

Using the API

Use Chat completion API to call OpenAI models. See the pricing page for pricing details.

OpenAI models comparison

FeatureGPT-4.1GPT-4.1-miniGPT-4.1-nanoGPT-4oGPT-4o-minio4-mini
DescriptionMainstream GPT-4.1Lightweight GPT-4.1Ultra-light GPT-4.1Latest GPT-4o modelLightweight GPT-4oCost-effective GPT-o
Current versiongpt-4.1gpt-4.1-mini-2024-07-18gpt-4.1-nano-2024-07-18gpt-4o-2024-11-20gpt-4o-mini-2024-07-18o4-mini
Best forGeneral reasoningEfficient general-purpose tasksFast, low-cost tasksComplex reasoning and creative tasksEfficient general-purpose tasksBudget-friendly tasks
Vision capabilityNoNoNoYesYes (see note)No
Tool callsYesYesYesYesYesYes
Context window128K tokens128K tokens128K tokens128K tokens128K tokens128K tokens
Max output8K tokens8K tokens8K tokens16K tokens16K tokens8K tokens
Knowledge cutoffOct 2023Oct 2023Oct 2023Oct 2023Oct 2023Oct 2023
API model keygpt-4.1gpt-4.1-minigpt-4.1-nanogpt-4ogpt-4o-minio4-mini

Important notes

Vision capability

  • Both GPT-4o and GPT-4o-mini support vision capabilities, allowing them to process and analyze images
  • ⚠️ Known issue with GPT-4o-mini: There are tokenization issues when processing images with GPT-4o-mini that may result in unexpectedly high input token counts. For vision tasks at this price point, we recommend using Claude 3 Haiku instead.

Model versions and aliases

GPT-4.1

  • gpt-4.1 - Mainstream GPT-4.1 model
  • gpt-4.1-mini - Points to the current recommended version (currently gpt-4.1-mini-2024-07-18)
  • gpt-4.1-mini-2024-07-18 - Specific version
  • gpt-4.1-nano - Points to the current recommended version (currently gpt-4.1-nano-2024-07-18)
  • gpt-4.1-nano-2024-07-18 - Specific version

GPT-4o

  • gpt-4o - Points to the current recommended version (currently gpt-4o-2024-11-20)
  • gpt-4o-2024-11-20 - Specific version

GPT-4o-mini

  • gpt-4o-mini - Points to the current recommended version (currently gpt-4o-mini-2024-07-18)
  • gpt-4o-mini-2024-07-18 - Specific version

o4-mini & o4 series models

  • o4-mini - Cost-effective GPT-o model
  • o4 series models (such as o4-mini) include reasoning steps in their responses. This means they may generate more detailed explanations and therefore consume more output tokens than other models. Please consider this when planning your token budget.

Official documentation