Skip to main content
Camel AI is an open source agentic framework. Camel AI docs

Prerequisites

  1. Create an API key to authorize requests to Nebius Token Factory.
  2. Save the API key into a NEBIUS_API_KEY environment variable:
    export NEBIUS_API_KEY="<API_key>"
    
  3. Install the camelai package:
    # core library
    pip install 'camel-ai'
    
    # all features and dependencies
    pip install 'camel-ai[all]'
    

Quickstart

from camel.models import ModelFactory
from camel.types import ModelPlatformType, ModelType
from camel.configs import NebiusConfig
from camel.agents import ChatAgent

model = ModelFactory.create(
    model_platform=ModelPlatformType.NEBIUS,
    model_type=ModelType.NEBIUS_GPT_OSS_120B,
    model_config_dict=NebiusConfig(temperature=0.2).as_dict(),
)

agent = ChatAgent(
    system_message="You are a helpful assistant.",
    model=model
)

response = agent.step("Say hi to CAMEL AI community.")
print(response.msgs[0].content)

More Examples

View more examples in our cookbook.