Deepgram
Deepgram ↗ provides Voice AI APIs for speech-to-text, text-to-speech, and voice agents.
https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/deepgramWhen making requests to Deepgram, replace https://api.deepgram.com/ in the URL you are currently using with https://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/deepgram/.
When making requests to Deepgram, ensure you have the following:
- Your AI Gateway Account ID.
- Your AI Gateway gateway name.
- An active Deepgram API token.
import { createClient, LiveTranscriptionEvents } from "@deepgram/sdk";
const deepgram = createClient("{deepgram_api_key}", { global: { websocket: { options: { url: "wss://gateway.ai.cloudflare.com/v1/{account_id}/{gateway_id}/deepgram/", _nodeOnlyHeaders: { "cf-aig-authorization": "Bearer {CF_AIG_TOKEN}" } } } }});
const connection = deepgram.listen.live({ model: "nova-3", language: "en-US", smart_format: true,});
connection.send(...);Was this helpful?
- Resources
- API
- New to Cloudflare?
- Directory
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- © 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark