Skip to main content
The GPT models are the best in class LLMs and used as the default LLM by Agents. OpenAI supports a variety of world-class models. See their models here. We recommend experimenting to find the best-suited model for your use-case. Here are some general recommendations:
  • gpt-5-mini is good for most general use-cases.
  • gpt-5-nano model is good for smaller tasks and faster inference.
  • o1 models are good for complex reasoning and multi-step tasks.
  • gpt-5-mini is a strong reasoning model with support for tool-calling and structured outputs, but at a much lower cost.
OpenAI have tier based rate limits. See the docs for more information.

Authentication

Set your OPENAI_API_KEY environment variable. You can get one from OpenAI here.

Example

Use OpenAIChat with your Agent:
View more examples here.

Parameters

For more information, please refer to the OpenAI docs as well. OpenAIChat is a subclass of the Model class and has access to the same params.