| Approach | Use for | Base path |
|---|---|---|
| Unified API (OpenAI-compatible) | OpenAI, Azure OpenAI, Groq | https://{controlPlaneUrl}/api/llm |
| Provider proxy (native SDK) | Deepgram, Cartesia, ElevenLabs | https://{controlPlaneUrl}/stt/{providerAccountName} |
{controlPlaneUrl} with your gateway URL and your-tfy-api-key with your TrueFoundry API key. For the provider proxy, replace {providerAccountName} with the display name of your provider account on TrueFoundry.
Model names: For audio (STT/TTS), the model ID in code must match the display name of the model on your TrueFoundry provider account.
Which SDK to use: For OpenAI, Azure OpenAI, and Groq, use the OpenAI SDK (same API). For Deepgram, Cartesia, and ElevenLabs, use each provider’s native SDK with the gateway URL above.
Code snippets
Response
The shape of the response depends on the provider. Useprint(response) to inspect it, or refer to each provider’s SDK docs for the exact structure.