| Approach | Use for | Base path |
|---|---|---|
| Unified API (OpenAI-compatible) | OpenAI, Azure OpenAI, Groq | https://{controlPlaneUrl}/api/llm |
| Native SDK | Deepgram, Cartesia, ElevenLabs, Gemini, Vertex | https://{controlPlaneUrl}/api/llm/tts/{providerAccountName} |
{controlPlaneUrl} with your gateway URL and your-tfy-api-key with your TrueFoundry API key. For the native SDK, 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, ElevenLabs, Gemini, and Vertex, use each provider’s native SDK with the gateway URL above.