Skip to main content

Overview

CrewAI supports OpenAI-compatible LLMs by setting the model, API key, and base URL on environment variables or on the LLM class.
Type: Agent FrameworkPrimary Path: OpenAI-compatible chat completionsSupport Confidence: Supported custom endpoint path

Environment Variables

LLM Class

Model Suggestions

Use gpt-5.4-mini for routine crews, claude-sonnet-5 or gpt-5.4 for planning-heavy agents, and deepseek-v4-flash for faster low-cost iterations.

Endpoint Notes

CrewAI’s OpenAI-compatible path is best for Chat Completions style agent calls. Use AI Sonar native endpoints directly only when the tool or SDK you choose can speak those native protocols.