← CookbookView source on GitHub ↗

Banner

CAMEL-AI Model Comparison Agent

A benchmarking tool built with the CAMEL framework that compares the performance of various AI models, including OpenAI and Nebius models. This tool measures and visualizes the speed of different models in terms of tokens processed per second.

Features

Prerequisites

Installation

  1. Clone the repository:
git clone https://github.com/nebius/token-factory-cookbook/.git
cd agents/camel-ai-model-comparison-agent
  1. Create a virtual environment and install dependencies using uv:
# Create a virtual environment
uv venv

# Activate the virtual environment
source .venv/bin/activate

# Install dependencies 
uv sync
  1. Create a .env file and add your OPENAI_API_KEY and NEBIUS_API_KEY.
OPENAI_API_KEY="your-openai-api-key"
NEBIUS_API_KEY="your-nebius-api-key"

Usage

Run the main script:

uv run agent.py

The script will:

Current Models

OpenAI - GPT-4O Mini - GPT-4O

Nebius - Kimi-K2-Instruct - Qwen3-Coder-480B-A35B-Instruct - GLM-4.5-Air