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.
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.
After models are registered, open any Cartesia model in the TrueFoundry dashboard and use Code Snippet or Try in Playground to test TTS and STT requests before wiring them into your app.
TrueFoundry Cartesia setup
Dashboard walkthrough, model configuration, and inference examples.
Gateway access control
Share Cartesia provider accounts with collaborators and teams.
