Using the API
Use Chat completion API to call OpenAI models. See the pricing page for pricing details.OpenAI models comparison
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-5.3 Codex
gpt-5.3-codex- OpenAI’s most capable coding model, covering the full development workflow from writing to debugging and deployment
GPT-4.1
gpt-4.1- Mainstream GPT-4.1 modelgpt-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 versiongpt-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
- Vision Guide - Learn more about using vision capabilities