Skip to main content

AI Gateway

Route your LLM calls through the AI Gateway with a single base URL change. Zero vendor lock-in: always run on the best model at the lowest cost for your use case.

Observability

Instrument your code with OpenTelemetry to capture traces, logs, and metrics for every LLM call, agent step, and tool use.

AI Gateway

Overview

Agno is a Python framework for building production-ready AI agents with structured workflows, tool integration, and multi-agent orchestration. By connecting Agno to Orq.ai’s AI Gateway, you get access to 300+ models for your agents with a single configuration change.

Key Benefits

Orq.ai’s AI Gateway enhances your Agno applications with:

Complete Observability

Track every agent interaction, tool use, and model call with detailed traces

Built-in Reliability

Automatic fallbacks, retries, and load balancing for production resilience

Cost Optimization

Real-time cost tracking and spend management across all your AI operations

Multi-Provider Access

Access 300+ LLMs and 20+ providers through a single, unified integration

Prerequisites

Before integrating Agno with Orq.ai, ensure you have:
  • An Orq.ai account and API Key
  • Python 3.10 or higher
To setup your API key, see API keys & Endpoints.

Installation

Configuration

Configure Agno to use Orq.ai’s AI Gateway via OpenAILike with a custom base_url:
Python
base_url: https://api.orq.ai/v3/router

Basic Agent Example

Python

Agent with Tools

Add tools to your agent for real-world tasks:
Python

Agent with Custom Tools

Define your own Python functions as tools:
Python

Multi-Agent Team

Orchestrate multiple specialized agents:
Python

Model Selection

With Orq.ai, you can use any supported model from 20+ providers:
Python

Observability

Installation

Configuring Orq.ai Observability

Set up the tracer provider and instrument Agno before creating any agents:
The OTEL setup and AgnoInstrumentor().instrument() call must happen before any agent instantiation.

Basic Example

Evaluations & Experiments

Once your agents are running, use Evaluatorq to score outputs across a dataset and Experiments to compare configurations side-by-side.

Run Evaluations with Evaluatorq

Run parallel evaluations across your agents and compare results.

Run Experiments via the API

Compare agent configurations and view results in the AI Studio.