https://retellai.com/?utm_source=discord&utm_medium=seo logo
<@1145576664366055464> how do i activate MPC integ...
# ❓・ai-evy-support
p
@AI Evy how do i activate MPC integration/server with GPT?
a
Thanks for tagging me @professor_m.14k. I'll look through relevant sources and get back to you shortly.
### Answer I don't have specific information about activating MPC integration/server with GPT in Retell AI based on my knowledge sources. Would you like me to try to provide a general answer based on my knowledge instead? In the meantime, you may want to check out these resources: [Contact Sales]() [GitHub Repository]()
message has been deleted
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.
p
open ai?
@AI Evy how about with open ai?
a
Thanks for the follow-up, @professor_m.14k. I'll get back to you soon.
### Answer Yes, you can integrate OpenAI with Retell AI. Here's how: For Python integration, you can use the OpenAI client class as shown in the Python demo [(1) ]() :
Copy code
python
from openai import OpenAI
import os

class LlmClient:
    def __init__(self) :
        self.client = OpenAI(
            organization=os.environ['OPENAI_ORGANIZATION_ID'],
            api_key=os.environ['OPENAI_API_KEY'],
        )
You can then create a stream using:
Copy code
python
stream = self.client.chat.completions.create(
    model="gpt-3.5-turbo-1106",
    messages=prompt,
    stream=True,
)
However, please note that OpenAI's Realtime API on Retell has some limitations - it costs $1.5 per minute with a 15-minute maximum duration and may have varying latency [(2) ](

▾

) . For more advanced features, you can also implement function calling with OpenAI, which allows your voice agent to take actions like booking appointments or ending calls [(3) ]() . Would you like me to provide more specific details about any part of the OpenAI integration process?
​ To learn more, see the sources I considered: [[1] Integrate LLM](https://docs.retellai.com/integrate-llm/integrate-llm) [[2] OpenAI Realtime API is now available on Retell](

https://www.youtube.com/watch?v=xL16xYdChZY▾

) [[3] Integrate Function Calling](https://docs.retellai.com/integrate-llm/integrate-function-calling) ​
Feel free to tag @AI Evy with additional questions. I also appreciate feedback, it helps me improve.