https://retellai.com/?utm_source=discord&utm_medium=seo logo
Can I use my own GPT
# ❓・ai-evy-support
r
@AI Evy Can I use my own GPT?
a
Thanks for tagging me @rihanoor. I'll look through relevant sources and get back to you shortly.
### Answer Yes, you can use your own GPT API keys with Retell AI through the Custom LLM feature [(1) ]() . However, you cannot directly input your GPT credentials into the Retell dashboard - you need to set up your own server . To use your own GPT, you'll need to: 1. Set up a backend server that handles text exchanges with Retell server to provide responses [(2) ]() 2. Create a WebSocket server that connects to your GPT API [(2) ]() [(3) ]() 3. Configure your agent to use the Custom LLM option with your WebSocket URL [(2) ]() The Custom LLM integration involves setting up a backend server with a
llm_websocket_url
that Retell connects to . You can find step-by-step instructions and open source example repositories for both Node.js and Python implementations [(2) ]() [(3) ]() . Here's an example of how the integration works with OpenAI in a Node.js setup:
Copy code
typescript
import {
 OpenAIClient,
 AzureKeyCredential,
 ChatRequestMessage,
 GetChatCompletionsOptions,
} from "@azure/openai";
[(3) ]() When using Custom LLM, your server will receive requests from Retell and you can process them using your own GPT API credentials, giving you full control over the LLM integration .
​ To learn more, see the sources I considered: [[1] Discord message from @jiiiii. on 2025-02-20](https://discord.com/channels/1186424376300679209/1186462578310910112/1342201068540395531) [[2] Custom LLM Overview](https://docs.retellai.com/integrate-llm/overview) [[3] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.