Skip to main content
In CAMEL, every model refers specifically to a Large Language Model (LLM) the intelligent core powering your agent’s understanding, reasoning, and conversational capabilities.
Play with different models in our interactive Colab Notebook.

Large Language Models (LLMs)

LLMs are sophisticated AI systems trained on vast datasets to understand and generate human-like text. They reason, summarize, create content, and drive conversations effortlessly.

Flexible Model Integration

CAMEL allows quick integration and swapping of leading LLMs from providers like OpenAI, Gemini, Llama, Anthropic, Nebius, and more, helping you match the best model to your task.

Optimized for Customization

Customize performance parameters such as temperature, token limits, and response structures easily, balancing creativity, accuracy, and efficiency.

Rapid Experimentation

Experiment freely, CAMEL’s modular design lets you seamlessly compare and benchmark different LLMs, adapting swiftly as your project needs evolve.

Supported Model Platforms in CAMEL

CAMEL supports a wide range of models, including OpenAI’s GPT series, Meta’s Llama models, DeepSeek models (R1 and other variants), and more.

Direct Integrations

API & Connector Platforms

How to Use Models via API Calls

Integrate your favorite models into CAMEL-AI with straightforward Python calls. Choose a provider below to see how it’s done:
Here’s how you use OpenAI models such as GPT-4o-mini with CAMEL:

Using OpenAI-Compatible Models

If your provider exposes an OpenAI-compatible API, you can connect it by using OPENAI_COMPATIBLE_MODEL and passing the model name as a string. This lets you reuse the same request patterns while pointing to a different endpoint.
Replace the model name, base URL, and API key with values provided by your OpenAI-compatible service.

Using On-Device Open Source Models

Run Open-Source LLMs Locally

Unlock true flexibility: CAMEL-AI supports running popular LLMs right on your own machine. Use Ollama, vLLM, or SGLang to experiment, prototype, or deploy privately (no cloud required).
CAMEL-AI makes it easy to integrate local open-source models as part of your agent workflows. Here’s how you can get started with the most popular runtimes:
1

Using Ollama for Llama 3

1

Install Ollama

Download Ollama and follow the installation steps for your OS.
2

Pull the Llama 3 model

3

(Optional) Create a Custom Model

Create a file named Llama3ModelFile:
You can also create a shell script setup_llama3.sh:
4

Integrate with CAMEL-AI

2

Using vLLM for Phi-3

1

Install vLLM

2

Start the vLLM server

3

Integrate with CAMEL-AI

3

Using SGLang for Meta-Llama

1

Install SGLang

2

Integrate with CAMEL-AI

Looking for more examples?

Explore the full CAMEL-AI Examples library for advanced workflows, tool integrations, and multi-agent demos.

Next Steps

You’ve now seen how to connect, configure, and optimize models with CAMEL-AI.

Continue: Working with Messages

Learn how to create, format, and convert BaseMessage objects—the backbone of agent conversations in CAMEL-AI.