AutoGen
SDKs & frameworksMicrosoft's multi-agent framework (AgentChat, v0.4+).
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
OpenAIChatCompletionClientwithbase_url=https://api.ultragpt.pro/v1. Models outside OpenAI's list needmodel_info.
# pip install autogen-agentchat "autogen-ext[openai]"
import os
from autogen_agentchat.agents import AssistantAgent
from autogen_ext.models.openai import OpenAIChatCompletionClient
client = OpenAIChatCompletionClient(
model="grok-4.7",
base_url="https://api.ultragpt.pro/v1",
api_key=os.environ["ULTRAGPT_API_KEY"],
model_info={"vision": False, "function_calling": True, "json_output": True, "family": "unknown", "structured_output": True},
)
agent = AssistantAgent("assistant", model_client=client)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