Skip to main content

This Integration is DEPRECATED

Click here to check out the latest integration of Autogen with Prisma AIRS AI Gateway

Quick Start Integration

Autogen supports a concept of config\_list which allows definitions of the LLM provider and model to be used. The AI Gateway seamlessly integrates into the Autogen framework through a custom config we create.

Example using minimal configuration

Notice that we updated the base_url to AI Gateway and then added default_headers to enable the AI Gateway specific features. When we execute this script, it would yield the same results as without the AI Gateway, but every request can now be inspected in the AI Gateway Analytics & Logs UI - including token, cost, accuracy calculations. All the config parameters supported in the AI Gateway are available for use as part of the headers. Let’s look at some examples:

Using 3,000+ models in Autogen through the AI Gateway

Since the AI Gateway seamlessly connects to 3,000+ models across providers, you can easily connect any of these to now run with Autogen. Let’s see an example using Mistral-7B on Anyscale running with Autogen seamlessly:

Using Model Catalog

Model Catalog in the AI Gateway lets you manage provider credentials centrally. Add your Anyscale API key to Model Catalog and use the AI Provider slug in your config.

Using Configs

Configs in the AI Gateway unlock advanced management and routing functionality including load balancing, fallbacks, canary testing, switching models and more. You can use AI Gateway configs in Autogen like this:
Last modified on September 15, 2026