Learn how to use models through the Portkey AI Gateway in Agno.
Portkey is an AI Gateway that provides a unified interface to access multiple AI providers with advanced features like routing, load balancing, retries, and observability. Use Portkey to build production-ready AI applications with better reliability and cost optimization.With Portkey, you can:
Route requests across multiple AI providers
Implement fallback mechanisms for better reliability
from agno.agent import Agentfrom agno.models.portkey import Portkeyagent = Agent( model=Portkey(id="gpt-5-mini"), markdown=True)# Print the response in the terminalagent.print_response("What is Portkey and why would I use it as an AI gateway?")