https://retellai.com/?utm_source=discord&utm_medium=seo logo
how do i use a custom llm with retell ai
# ❓・ai-evy-support
l
@AI Evy how do i use a custom llm with retell ai? are fine tuned gpt models supported?
a
Thanks for tagging me @lyri0. I'll look through relevant sources and get back to you shortly.
### Answer To use a custom LLM with Retell AI, you need to create an agent with a custom LLM response engine [(1) ]() . When creating an agent, you can specify the response engine type in the request body . For fine-tuned GPT models, they are supported but require using the custom LLM integration approach [(2) ]() . You cannot directly add a fine-tuned OpenAI model via the API or dashboard - you need to go through the custom LLM option . This means you'll need to "wrap" your fine-tuned model within the custom LLM implementation . The custom LLM integration requires writing some code/implementation where you can use your fine-tuned model internally . You can check the integration documentation and Python demo repository for implementation details . For deployment considerations, Retell servers are located in the AWS us-east region, so deploying your custom LLM somewhere close can help with latency .
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
​ To learn more, see the sources I considered: [[1] Create Agent](https://docs.retellai.com/api-references/create-agent) [[2] Is it possible to add my own fine tuned LLM? How?](https://discord.com/channels/1186424376300679209/1289169329396518964) ​
l
@AI Evy and what's the pricing for using a custom model
a
Thanks for the follow-up, @lyri0. I'll get back to you soon.
### Answer Based on the available sources, using a custom LLM with Retell AI has no charge for the LLM Agent component [(1) ]() . The pricing structure shows "Custom LLM (No charge) " under the LLM Agent section . However, you'll still incur costs for other components: - Conversation voice engine API: $0.08/min with OpenAI/Deepgram voices or $0.10/min with Elevenlabs voices - Telephony: $0.01/min with Retell Twilio or no charge with Custom Twilio So while there's no additional fee specifically for using your custom LLM model, you'll pay for the voice processing and telephony services that support the conversation .
​ To learn more, see the sources I considered: [[1] New LLM Model Options, Modular Pricing, And More](https://www.retellai.com/changelog/new-llm-model-options-modular-pricing-and-more) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.