Skip to main content
This guide shows you how to route your LLM requests through the Muxx Gateway.

Prerequisites

  • A Muxx account with a project created
  • Your Muxx API key (muxx_sk_live_...)
  • Provider API keys configured in your project settings

Configuration

OpenAI

Anthropic

Environment Variables

We recommend storing your Muxx API key in environment variables:
Then reference it in your code:

Adding Metadata

You can attach custom metadata to requests for filtering in the dashboard:
This metadata appears in the dashboard and can be used for filtering and analytics.

Streaming

The gateway fully supports streaming responses:

Next Steps

Caching

Enable response caching to reduce costs

Rate Limiting

Configure request limits