CrewAI
SDKs & frameworksRole-playing multi-agent crews; every agent can use a different UltraGPT model.
Fill the guide with your values
Stays in this browser tab — never sent or stored by us. Sign in to create one
Setup
- 1Create an
LLMwith theopenai/model prefix and base URLhttps://api.ultragpt.pro/v1, and pass it to your agents.
# pip install crewai
import os
from crewai import Agent, LLM
llm = LLM(model="openai/grok-4.7", base_url="https://api.ultragpt.pro/v1", api_key=os.environ["ULTRAGPT_API_KEY"])
researcher = Agent(
role="Researcher",
goal="Find the facts",
backstory="A meticulous analyst.",
llm=llm,
)Tips
- Any model id from Models works; suffixes like :online (web search) and :nitro work too.
- Give each tool its own key with a spend limit, so usage shows separately in Activity.
- Something off? Error codes · Support