Last verified: 2026-06-10
Overview
TrueFoundry AI Gateway is the proxy layer that sits between your applications and the LLM providers and MCP Servers. It provides a unified OpenAI-compatible API to route requests across 1000+ LLMs while handling observability, governance, and access control at the gateway level. Cartesia is available as a first-party provider in TrueFoundry’s AI Gateway for TTS and STT. Register Cartesia models in the gateway, then call them with the Cartesia Python SDK and your TrueFoundry API key.Prerequisites
- Sign up for a TrueFoundry account
- Get a TrueFoundry API key (
TFY_API_KEY) from making requests via the gateway - Get a Cartesia API key from Cartesia keys
- Python 3.10+
Add Cartesia Account Details
Click Add Cartesia Account. Enter a unique account name and your Cartesia API Key. Optionally add collaborators so other users or teams can use this account — see gateway access control.

Installation
Quick start
TTS
PointAsyncCartesia at your gateway TTS route. Replace GATEWAY_BASE_URL, cartesiaProviderAccountName, TFY_API_KEY, and model_id with values from your TrueFoundry workspace.
| Parameter | Type | Description |
|---|---|---|
GATEWAY_BASE_URL | string | Gateway base URL from TrueFoundry (no trailing slash) |
cartesiaProviderAccountName | string | Cartesia provider account name under AI Gateway → Models → Cartesia |
TFY_API_KEY | string | TrueFoundry API key sent as the x-tfy-api-key header |
model_id | string | Cartesia model ID; must match Model ID and Display name in the gateway |
STT
Register an STT model type in the gateway, then pointAsyncCartesia at your gateway STT route. Replace GATEWAY_BASE_URL, cartesiaProviderAccountName, TFY_API_KEY, and model with values from your TrueFoundry workspace.
| Parameter | Type | Description |
|---|---|---|
GATEWAY_BASE_URL | string | Gateway base URL from TrueFoundry (no trailing slash) |
cartesiaProviderAccountName | string | Cartesia provider account name under AI Gateway → Models → Cartesia |
TFY_API_KEY | string | TrueFoundry API key sent as the x-tfy-api-key header |
model | string | Cartesia STT model ID; must match Model ID and Display name in the gateway |
AUDIO_FILE | string | Path to a local audio file (WAV, MP3, and other common formats) |
TrueFoundry Cartesia setup
Dashboard walkthrough, model configuration, and inference examples.
Gateway access control
Share Cartesia provider accounts with collaborators and teams.
