LLM
C

Custom LLM inference for Bolna AI voice agents

Run a Bolna voice agent on any OpenAI-compatible LLM endpoint, from Groq or Together AI to your own vLLM, SGLang, TGI, Ollama or LiteLLM server.

llmcustom-llmopenai-compatibleself-hostedopen-weightvllm
At a glance

How Custom LLM (OpenAI-compatible) fits in the stack

Best for

Reasoning, policy handling, tool use, and response generation.

Use this layer when

You want to tune quality, cost, latency, or function-calling behavior.

Connects to

Transcribed caller input upstream and voice or actions downstream.

Voice Stack

The LLM is the reasoning layer

The LLM is the reasoning layer

This provider decides how the agent interprets intent, selects next actions, calls tools, and formulates responses. It is the decision engine inside the voice stack.

TelephonyPhone Network
→
STTListener
→
LLMReasoning
→
TTSVoice
→
ToolsActions

Last updated

What is a custom LLM used for in a Bolna voice agent?

A custom LLM lets a Bolna voice agent run on any endpoint that speaks the OpenAI chat completions API, whether that is an inference provider or a server you run yourself. Bolna calls it the same way it calls OpenAI, only at your URL and with your key. Use it for open-weight or fine-tuned models, very fast inference hardware, or traffic that has to stay on infrastructure or in a region you control.

How do I set up a custom LLM with Bolna?

  1. Check that your endpoint serves POST {base_url}/chat/completions with streaming responses ending in data: [DONE], and accepts Authorization: Bearer <key>.
  2. In the Bolna dashboard, go to Settings → Integrations, filter by LLM and click Add model on the Custom LLM card. You can also pick + Add custom LLM from the LLM Provider dropdown on an agent's Intelligence tab.
  3. Pick a Provider preset, or Other (OpenAI-compatible) for any other server. The preset only changes the hints in the dialog.
  4. Enter the Model name your endpoint serves (for example Qwen/Qwen2.5-3B-Instruct), the Endpoint URL without a trailing slash (usually ending in /v1), the API key and the Family (for example qwen, llama or mistral).
  5. Save. Bolna checks the endpoint, stores the key encrypted and shows the model as its own card.
  6. On the agent's Intelligence tab choose custom, pick the model, save and place a web call before going live.

The custom LLM setup guide in the Bolna docs covers the save-time checks, extra request params and the API.

Which inference providers have presets in Bolna?

ProviderBest forEndpoint URL
BasetenModel APIs, or your own Truss deployment on dedicated GPUshttps://inference.baseten.co/v1
CerebrasWafer-scale hardware, around 3,000 tokens/s on gpt-oss-120bhttps://api.cerebras.ai/v1
Fireworks AIServerless open models plus on-demand GPU deploymentshttps://api.fireworks.ai/inference/v1
GroqFast LPU inference for Llama and GPT-OSShttps://api.groq.com/openai/v1
ModalYour own vLLM server on serverless GPUs, in a region close to your callersThe URL modal deploy prints, plus /v1
NebiusToken Factory models, with dedicated endpoints in a region you choosehttps://api.tokenfactory.nebius.com/v1
SimplismartOptimised open models on shared or dedicated endpointshttps://api.simplismart.live
Together AIA large serverless catalog of open modelshttps://api.together.ai/v1

Anything else that is OpenAI-compatible, such as vLLM, SGLang, TGI, Ollama or LiteLLM, goes under Other (OpenAI-compatible).

What can you build with a custom LLM and Bolna?

Agents with the shortest pause before replying. The Bolna docs point to Groq or Cerebras when the silence before the agent speaks matters most.

Agents on a fine-tuned or private model. Serve your own weights on Baseten dedicated deployments, Fireworks AI on-demand GPUs, or your own vLLM server on Modal.

Agents with data residency needs. Keep inference in a fixed region with Nebius dedicated endpoints, Simplismart dedicated deployments or Modal's routing_region.

Multi-tenant setups. A model added on the main account is available to all sub-accounts, while a model added inside a sub-account stays there. If you would rather not run inference at all, compare a hosted option such as OpenRouter and check pricing.

FAQ

Custom LLM (OpenAI-compatible) on Bolna: frequently asked questions

Yes. Any server that speaks the OpenAI chat completions API works, including vLLM, SGLang, TGI, Ollama or a LiteLLM proxy. It must stream responses, accept a bearer token and resolve to a public address.

Your provider. Bolna records a custom model's token usage against your own endpoint, so that model's inference is not billed by Bolna.

Bolna saves a model even when it can't fully check the endpoint. The usual causes are a deployment that scaled to zero, a 429 rate limit, a misspelled model name, an expired key or an extra_body field the server rejects.

Switch on Extra request params on the agent's Intelligence tab and add the parameter your server uses. On vLLM or SGLang with Qwen3 that is {"chat_template_kwargs": {"enable_thinking": false}}.

Browse this layer

Keep exploring the voice stack

Browse

Large Language Models

The LLM is the brain of your voice agent. It understands what callers say and decides how to respond. Bolna lets you switch between models like GPT-5.4 mini, Claude and DeepSeek by changing the provider and model in your agent LLM settings, so you can tune for speed, cost or reasoning depth.

Browse

Telephony

Telephony providers connect your voice agents to the phone network so they can make and receive real calls. Bolna supports managed integrations with major carriers as well as bring-your-own-carrier via SIP trunking, giving you full control over call routing, number provisioning, and cost.

Browse

Speech-to-Text

Speech-to-text converts what callers say into text that your LLM can process. Transcription accuracy and latency directly affect how natural a conversation feels. Bolna supports streaming STT providers optimized for telephony audio, including specialized models for Indian languages.

Browse

Text-to-Speech

Text-to-speech turns your agent responses into spoken audio. Voice quality shapes how callers perceive your brand. Flat, robotic speech kills trust while natural, expressive voices build it. Bolna integrates with the fastest TTS providers so responses sound human and arrive without awkward pauses.

Browse

Tools & Workflows

Tools let your voice agents take action during a call, not just talk. Book a calendar slot, look up an order through your own API, push a lead into your CRM, or trigger a multi-step automation in Zapier. These integrations turn voice agents from answering machines into workflow engines.

See where Custom LLM (OpenAI-compatible) fits in your production workflow

Use the demo to walk through provider selection, stack tradeoffs, and the exact workflow you want Bolna to automate.