Skip to content

Build AI Agents with Portkey

AI gateway with observability and routing

Available Portkey Models

ModelID
GPT-4o (via Portkey)gpt-4o
Claude Sonnet 4.5 (via Portkey)claude-sonnet-4-5-20250929

Quick start code

agent.py
from agno.agent import Agent
from agno.models.portkey import Portkey

agent = Agent(
    name="My Portkey Agent",
    model=Portkey(id="gpt-4o"),
    instructions=["You are a helpful assistant."],
    markdown=True,
)

agent.print_response("Hello! What can you help me with?")

Install: pip install agno Then set PORTKEY_API_KEY

Contact Us

Press Ctrl+Enter to send