Skip to main content
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

Follow these steps to connect Cartesia in AI Gateway:
2

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.
Cartesia account configuration form with fields for API key and collaborators

Cartesia Model Account Form

3

Add Models

Click + Add Model and set Display name, Model ID, and Model type.
Add Cartesia model form with display name, model ID, and model type

Add Cartesia Model

For Cartesia, Model ID and Display name must be identical.

Installation

Quick start

TTS

Point AsyncCartesia 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 point AsyncCartesia 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.

Resources