Eedesy
Book Demo
HomeProductsContact
AI Voice Agent
  • Introduction
  • Quick Start
  • Architecture
  • Core Concepts
  • Configuration
  • Creating an Agent
  • Using Templates
  • System Prompt Configuration
  • Language Selection
  • Settings Reference
  • Overview
  • Upload Files (PDF, DOCX)
  • Web Crawling (URLs & Sitemaps)
  • Document Processing
  • RAG Integration
  • Troubleshooting
  • Creating a Campaign
  • CSV Upload & Variables
  • Scheduling & Retry Logic
  • Campaign Analytics
  • Contact Management
  • Uploading Contacts
  • Managing Contacts
  • Call History Enrichment
  • Trial Numbers
  • Purchasing Numbers
  • BYOP Setup
  • Exotel Setup
  • Telephony Providers Guide
  • Credits System
  • Provider Costs Breakdown
  • Usage Analytics
  • Credit Packs
  • Overview
  • Finding Your Workspace ID
  • Common Issues
  • Audio Quality
  • Latency Optimization
  • Error Codes
  • Overview
  • Twilio
  • Exotel
  • Plivo
  • Telnyx
  • WhatsApp
  • WebRTC Browser
  • Overview
  • Deepgram
  • Google Chirp
  • Azure Speech
  • ElevenLabs Scribe
  • AssemblyAI
  • OpenAI Whisper
  • Overview
  • Cartesia
  • ElevenLabs
  • Google TTS
  • Azure Neural
  • OpenAI TTS
  • Deepgram Aura
  • Sarvam Bulbul
  • HeyPixa Luna
  • Overview
  • OpenAI GPT-4o
  • Gemini 2.0/2.5 Flash
  • Gemini Live (Native Audio)
  • OpenAI Realtime
  • Anthropic Claude
  • Azure OpenAI
  • Overview
  • VAD (Voice Activity Detection)
  • Interruption Handling
  • Turn Detection
  • Audio Processing
  • Function Calling
  • Call Transfer
  • DTMF Handling
  • Call Recording
  • Exporting Recordings
  • Transcripts
  • Webhooks
  • Variables & Templates
  • Multi-Language Support
  • Hindi
  • Tamil
  • Assamese
  • Other Indian Languages
  • Latency Optimization
  • Scaling & Performance
  • Error Handling
  • Monitoring & Logging
  • Security Best Practices
  • Trigger Call via API
  • REST API
  • WebSocket Protocol
  • Webhooks
  • Webhook Subscriptions
  • SDKs
  • Overview
  • Financial Services
  • E-commerce
  • Logistics
  • Hyperlocal
  • Healthcare
  • Education
  • Overview
  • Customer Support
  • Sales & Lead Conversion
  • Marketing Campaigns
  • Debt Collection
  • Overview
  • Customer Support Bot
  • Order Status IVR
  • Appointment Booking
  • Lead Qualification
  • Outbound Sales
  • Recruitment Screening
  • Overview
  • Migrate from Vapi
  • Migrate from Retell AI
  • Migrate from Traditional IVR

Related Products

  • AI Voice Agent
  • AI Voice Assistant
  • Try Free
AI Voice Agent
  • Introduction
  • Quick Start
  • Architecture
  • Core Concepts
  • Configuration
  • Creating an Agent
  • Using Templates
  • System Prompt Configuration
  • Language Selection
  • Settings Reference
  • Overview
  • Upload Files (PDF, DOCX)
  • Web Crawling (URLs & Sitemaps)
  • Document Processing
  • RAG Integration
  • Troubleshooting
  • Creating a Campaign
  • CSV Upload & Variables
  • Scheduling & Retry Logic
  • Campaign Analytics
  • Contact Management
  • Uploading Contacts
  • Managing Contacts
  • Call History Enrichment
  • Trial Numbers
  • Purchasing Numbers
  • BYOP Setup
  • Exotel Setup
  • Telephony Providers Guide
  • Credits System
  • Provider Costs Breakdown
  • Usage Analytics
  • Credit Packs
  • Overview
  • Finding Your Workspace ID
  • Common Issues
  • Audio Quality
  • Latency Optimization
  • Error Codes
  • Overview
  • Twilio
  • Exotel
  • Plivo
  • Telnyx
  • WhatsApp
  • WebRTC Browser
  • Overview
  • Deepgram
  • Google Chirp
  • Azure Speech
  • ElevenLabs Scribe
  • AssemblyAI
  • OpenAI Whisper
  • Overview
  • Cartesia
  • ElevenLabs
  • Google TTS
  • Azure Neural
  • OpenAI TTS
  • Deepgram Aura
  • Sarvam Bulbul
  • HeyPixa Luna
  • Overview
  • OpenAI GPT-4o
  • Gemini 2.0/2.5 Flash
  • Gemini Live (Native Audio)
  • OpenAI Realtime
  • Anthropic Claude
  • Azure OpenAI
  • Overview
  • VAD (Voice Activity Detection)
  • Interruption Handling
  • Turn Detection
  • Audio Processing
  • Function Calling
  • Call Transfer
  • DTMF Handling
  • Call Recording
  • Exporting Recordings
  • Transcripts
  • Webhooks
  • Variables & Templates
  • Multi-Language Support
  • Hindi
  • Tamil
  • Assamese
  • Other Indian Languages
  • Latency Optimization
  • Scaling & Performance
  • Error Handling
  • Monitoring & Logging
  • Security Best Practices
  • Trigger Call via API
  • REST API
  • WebSocket Protocol
  • Webhooks
  • Webhook Subscriptions
  • SDKs
  • Overview
  • Financial Services
  • E-commerce
  • Logistics
  • Hyperlocal
  • Healthcare
  • Education
  • Overview
  • Customer Support
  • Sales & Lead Conversion
  • Marketing Campaigns
  • Debt Collection
  • Overview
  • Customer Support Bot
  • Order Status IVR
  • Appointment Booking
  • Lead Qualification
  • Outbound Sales
  • Recruitment Screening
  • Overview
  • Migrate from Vapi
  • Migrate from Retell AI
  • Migrate from Traditional IVR
  1. Docs
  2. AI Voice Agent
  3. LLM Providers

LLM Providers Overview

Choose the right Large Language Model for your voice agent based on latency, cost, and capability requirements.

LLM Providers Overview

The LLM is the "brain" of your voice agent - it understands user intent and generates appropriate responses. Choosing the right LLM is critical for both quality and latency.

Supported Providers

Provider Models Latency Cost Best For
Google Gemini 2.0 Flash, 2.5 Flash-Lite โšก Fastest ๐Ÿ’ฐ Cheapest Voice agents
Gemini Live 2.0, 2.5 HD โšกโšก Ultra-fast ๐Ÿ’ฐ๐Ÿ’ฐ Native audio
OpenAI GPT-4o, GPT-4o-mini ๐Ÿš€ Fast ๐Ÿ’ฐ๐Ÿ’ฐ๐Ÿ’ฐ Complex reasoning
Anthropic Claude 3.5 Sonnet ๐Ÿš€ Fast ๐Ÿ’ฐ๐Ÿ’ฐ๐Ÿ’ฐ Long context
Azure OpenAI GPT-4o, GPT-4o-mini ๐Ÿš€ Fast ๐Ÿ’ฐ๐Ÿ’ฐ๐Ÿ’ฐ Enterprise

Quick Comparison

Time to First Token (lower is better):
โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€

Gemini Live 2.5    โ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  50ms
Gemini 2.5 Lite    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  100ms
Gemini 2.0 Flash   โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  150ms
GPT-4o-mini        โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  180ms
GPT-4o             โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘  250ms
Claude 3.5 Sonnet  โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–‘โ–‘โ–‘โ–‘โ–‘โ–‘  220ms

                   0ms              150ms            300ms

Choosing the Right Provider

For Voice Agents (Recommended)

Google Gemini 2.5 Flash-Lite

  • Fastest time-to-first-token (~100ms)
  • Excellent for conversational AI
  • Best cost-performance ratio
  • 1M token context window
{
  "llmProvider": "gemini-2.5",
  "llmModel": "gemini-2.5-flash-lite"
}

For Native Audio (Best Latency)

Gemini Live 2.0 / 2.5

  • Bypasses STT and TTS entirely
  • Audio-to-audio in ~50ms
  • Natural voice with emotions
  • 30 HD voices (2.5)
{
  "llmProvider": "gemini-live-2.5",
  "geminiliveVoice": "Kore"
}

For Complex Reasoning

OpenAI GPT-4o

  • Best overall reasoning capability
  • Function calling reliability
  • Multi-modal understanding
  • Higher latency (~250ms)
{
  "llmProvider": "openai",
  "llmModel": "gpt-4o"
}

For Enterprise / Compliance

Azure OpenAI

  • Same models as OpenAI
  • Enterprise SLAs
  • Data residency options
  • SOC 2, HIPAA compliant
{
  "llmProvider": "openai-azure",
  "llmModel": "gpt-4o"
}

Provider Configuration

Basic Setup

{
  "agent": {
    "name": "Customer Support",
    "llmProvider": "gemini-2.5",
    "llmModel": "gemini-2.5-flash-lite",
    "llmTemperature": 0.7,
    "prompt": "You are a helpful customer support agent..."
  }
}

Environment Variables

# Google Gemini
GOOGLE_AI_API_KEY=your_google_ai_key

# OpenAI
OPENAI_API_KEY=your_openai_key

# Anthropic
ANTHROPIC_API_KEY=your_anthropic_key

# Azure OpenAI
AZURE_OPENAI_API_KEY=your_azure_key
AZURE_OPENAI_ENDPOINT=https://your-resource.openai.azure.com
AZURE_OPENAI_DEPLOYMENT=your-deployment-name

Streaming

All providers support streaming for minimal latency:

// LLM generates tokens one at a time
for token := range llm.StreamGenerate(ctx, messages) {
    // Send each token to TTS immediately
    tts.QueueText(token)
}

Streaming Timeline

LLM Output: "Your order is on the way and will arrive tomorrow."
            โ”‚       โ”‚       โ”‚      โ”‚       โ”‚        โ”‚
Token 1:    "Your"  โ”‚       โ”‚      โ”‚       โ”‚        โ”‚
Token 2:            "order" โ”‚      โ”‚       โ”‚        โ”‚
Token 3:                    "is"   โ”‚       โ”‚        โ”‚
Token 4:                           "on"    โ”‚        โ”‚
Token 5:                                   "the"    โ”‚
Token 6:                                            "way..."

TTS starts generating audio from Token 1
User hears audio while LLM is still generating

Function Calling

All supported providers support function/tool calling:

{
  "tools": [
    {
      "type": "function",
      "function": {
        "name": "get_order_status",
        "description": "Get the status of a customer order",
        "parameters": {
          "type": "object",
          "properties": {
            "order_id": {
              "type": "string",
              "description": "The order ID to look up"
            }
          },
          "required": ["order_id"]
        }
      }
    }
  ]
}

Provider Function Calling Reliability

Provider Reliability Notes
GPT-4o โญโญโญโญโญ Best function calling
Gemini 2.0 โญโญโญโญ Very good
Claude 3.5 โญโญโญโญ Good
GPT-4o-mini โญโญโญ Sometimes misses

Context Management

Context Window Sizes

Provider Context Window Practical Limit
Gemini 2.0 1M tokens 100K recommended
Gemini 1.5 Pro 2M tokens 200K recommended
GPT-4o 128K tokens 32K recommended
Claude 3.5 200K tokens 100K recommended

Optimizing Context

// Keep only recent conversation history
func trimContext(messages []Message, maxTokens int) []Message {
    // Always keep system prompt
    system := messages[0]

    // Keep recent messages within token limit
    recent := []Message{system}
    tokenCount := countTokens(system.Content)

    for i := len(messages) - 1; i >= 1; i-- {
        msgTokens := countTokens(messages[i].Content)
        if tokenCount + msgTokens > maxTokens {
            break
        }
        recent = append([]Message{messages[i]}, recent[1:]...)
        tokenCount += msgTokens
    }

    return recent
}

Cost Optimization

Cost per 1000 Tokens (Input/Output)

Provider Input Output Monthly @ 1M calls
Gemini 2.5 Lite $0.015 $0.06 ~$150
Gemini 2.0 Flash $0.075 $0.30 ~$750
GPT-4o-mini $0.15 $0.60 ~$1,500
GPT-4o $2.50 $10.00 ~$25,000

Cost Reduction Strategies

  1. Use Gemini for most calls - 10-100x cheaper than GPT-4o
  2. Keep prompts short - Every token costs money
  3. Cache common responses - Don't regenerate identical responses
  4. Route complex tasks - Use GPT-4o only when needed

Fallback Configuration

Configure fallback providers for reliability:

type LLMFallback struct {
    Primary   LLMProvider
    Secondary LLMProvider
    Tertiary  LLMProvider
}

func (f *LLMFallback) Generate(ctx context.Context, messages []Message) (string, error) {
    response, err := f.Primary.Generate(ctx, messages)
    if err == nil {
        return response, nil
    }

    log.Printf("Primary LLM failed: %v, trying secondary", err)
    response, err = f.Secondary.Generate(ctx, messages)
    if err == nil {
        return response, nil
    }

    log.Printf("Secondary LLM failed: %v, trying tertiary", err)
    return f.Tertiary.Generate(ctx, messages)
}

Next Steps

  • Gemini Configuration - Set up Google Gemini
  • Gemini Live - Native audio-to-audio
  • OpenAI Configuration - Set up GPT-4o
  • Function Calling - Add tools to your agent
Previous
HeyPixa Luna
Next
OpenAI GPT-4o

On this page

  • Supported Providers
  • Quick Comparison
  • Choosing the Right Provider
  • For Voice Agents (Recommended)
  • For Native Audio (Best Latency)
  • For Complex Reasoning
  • For Enterprise / Compliance
  • Provider Configuration
  • Basic Setup
  • Environment Variables
  • Streaming
  • Streaming Timeline
  • Function Calling
  • Provider Function Calling Reliability
  • Context Management
  • Context Window Sizes
  • Optimizing Context
  • Cost Optimization
  • Cost per 1000 Tokens (Input/Output)
  • Cost Reduction Strategies
  • Fallback Configuration
  • Next Steps

Stay Updated

Get the latest updates on AI voice technology, product releases, and exclusive resources.

Get Started

Try our products for free
AI Voice Agent
Build voice AI for calls
WhatsApp AI Bot
Automate WhatsApp chats
Website Chatbot
AI chat for websites
Edesy CRM
Manage leads & customers
Book a DemoCall UsEmail Us
Eedesy

Your all-in-one platform for digital innovation. We build AI-powered solutions that transform how businesses operate.

[email protected]+91 95475 31359

Products

  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Products

  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products

Solutions

  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases

Services

  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services

Resources

  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo

Company

  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service
  • AI Voice Assistant
  • WhatsApp Voice AI
  • WhatsApp Bot Builder
  • AI Website Chatbot
  • AI-SDR
  • Number Masking
  • Shopify Apps
  • View All Products
  • For E-commerce
  • For Healthcare
  • For Real Estate
  • For Restaurants
  • For Appointments
  • View All Use Cases
  • AI Chatbot Development
  • Voice AI Development
  • Shopify Development
  • SaaS Development
  • WhatsApp API Integration
  • View All Services
  • Documentation
  • Voice Agent Docs
  • API Reference
  • Number Masking API Docs
  • Blog
  • Changelog
  • Book a Demo
  • About Us
  • Contact
  • Careers
  • Privacy Policy
  • Terms of Service

Popular Free Tools

Compress PDFMerge PDFPDF to WordGST CalculatorEMI CalculatorSIP CalculatorJSON FormatterBase64 EncoderImage CompressorQR Code GeneratorVoice AI ROI CalculatorAmazon FBA CalculatorAI Email WriterVideo to GIFPrivacy Policy GeneratorCRM ROI CalculatorMeeting Cost Calculator
Categories:PDF ToolsDeveloper ToolsFinance CalculatorsImage ToolsVideo ToolsAI Writing ToolsAudio ToolsWhatsApp ToolsDocument GeneratorsVoice AI ToolsE-commerce ToolsView All Tools

ยฉ 2026 Edesy Technology Labs Pvt Ltd

SSL Secured
99.9% Uptime