Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.
Modal is a serverless GPU platform: you write a small Python app, run modal deploy, and Modal gives you a public HTTPS URL backed by GPUs. Unlike the other providers in this section, Modal has no model catalog and no shared endpoint. You run the inference server. Choose Modal when you want a fine-tuned checkpoint, a model no hosted API offers, a GPU region close to your callers, or full control over the serving engine.This guide deploys an OpenAI-compatible vLLM server on Modal and adds it to Bolna as a custom LLM.
What to enter in Bolna
Field
Value
Provider
Modal
Model name
A value you gave vLLM’s --served-model-name, for example llm
Endpoint URL
The URL modal deploy prints, followed by /v1
API key
A Modal proxy token, written as wk-<id>.ws-<secret>
Family
The model family, for example gemma or qwen
What you need
A Modal account and the Modal CLI (pip install modal, then modal setup)
The Hugging Face model you want to serve
A Bolna account with access to Settings → Integrations
Deploy and connect
1
Deploy a vLLM server
Save this as bolna_llm.py and run modal deploy bolna_llm.py. It is a trimmed version of Modal’s vLLM inference example, with the settings a voice agent needs. Swap in your own model and the GPU it needs.
bolna_llm.py
import jsonimport subprocessimport modalMODEL = "google/gemma-4-26B-A4B-it"image = ( modal.Image.from_registry("nvidia/cuda:12.9.0-devel-ubuntu22.04", add_python="3.12") .entrypoint([]) .uv_pip_install("vllm==0.21.0") .env({"HF_XET_HIGH_PERFORMANCE": "1"}))app = modal.App("bolna-llm")@app.server( image=image, gpu="H200", port=8000, startup_timeout=10 * 60, min_containers=1, # a Server with no running container rejects requests target_concurrency=100, # requests per container before Modal adds another routing_region="ap-south", # Mumbai; pick the region closest to your callers volumes={ "/root/.cache/huggingface": modal.Volume.from_name("huggingface-cache", create_if_missing=True), "/root/.cache/vllm": modal.Volume.from_name("vllm-cache", create_if_missing=True), },)class Server: @modal.enter() def start(self): self.process = subprocess.Popen([ "vllm", "serve", MODEL, "--served-model-name", "llm", "--host", "0.0.0.0", "--port", "8000", "--limit-mm-per-prompt", json.dumps({"image": 0, "video": 0, "audio": 0}), "--enable-auto-tool-choice", "--tool-call-parser", "gemma4", ]) @modal.exit() def stop(self): self.process.terminate()
modal deploy prints the server URL, for example https://your-workspace--bolna-llm-server.ap-south.modal.direct. The dialog’s placeholder shows the older *.modal.run shape that Modal web functions use; both work the same way. Paste the URL you were given and add /v1.
2
Create a proxy token
A Modal Server rejects requests without a proxy token by default, with a 401. Create one under Settings → Proxy Auth Tokens in Modal, or run modal workspace proxy-tokens create. Join the token ID and secret with a period, wk-<id>.ws-<secret>, and use that as the API key. Modal accepts it as a bearer token, which is what Bolna sends.If your workspace uses role-based access, scope the token to the environment the app is deployed in, or requests are denied with a 403.
The id in the response is the model name to register, llm in the example above. To also measure time to first token, run the streaming test.
4
Choose Modal in the Add custom model dialog
In Bolna, go to Settings → Integrations, filter by LLM, and click Add model on the Custom LLM card. You can also open the same dialog from an agent: on the Intelligence tab, open the LLM Provider dropdown and choose + Add custom LLM.Pick Modal as the provider. The endpoint field only shows the shape of a Modal URL as a placeholder, because your URL is unique to your workspace and app.
Modal selected: the endpoint placeholder shows the URL shape, the hint says to use the URL from modal deploy
5
Register the model
Dashboard
API
Fill in the values from the table above and click Add model.
On the agent’s Intelligence tab, choose custom as the provider and select your model. If you added it from the agent’s dropdown, it is already selected. Save the agent and place a web call before you send live traffic to it.
Things to know
Keep a container warm. A Modal Server with no running container rejects requests with a 503 instead of queuing them, so a call that arrives after the app has scaled to zero gets no reply at all. Keep min_containers=1 for any agent that takes live calls. You pay for that GPU while it idles.
Region.routing_region sets where Modal’s proxy accepts requests: us-east (default), us-west, ca-central, eu-west, ap-south (Mumbai) or ap-southeast-2. To also keep the GPUs in that region, set compute_region, which adds a cost multiplier.
Model name. Bolna checks the model name against your server’s /v1/models when you add it. vLLM lists every value given to --served-model-name, so enter one of them exactly.
Tool calling. If your agent uses tools, vLLM needs --enable-auto-tool-choice and the parser for your model, for example gemma4 for Gemma 4, hermes for Qwen2.5 or llama3_json for Llama 3.1. See vLLM’s tool calling guide.
Thinking. Qwen3 models think before every reply by default, which the caller hears as silence. Turn it off per agent with the extra request params{"chat_template_kwargs": {"enable_thinking": false}}. Gemma 4 has thinking off by default.
Using vLLM’s own key instead. If you deploy with unauthenticated=True, Modal’s proxy lets every request through. In that case, protect the server with vLLM’s --api-key flag, read from a Modal Secret, and register that key in Bolna instead of a proxy token.
Tuning a Modal deployment for voice
Setting
Where
Why it matters on a call
min_containers
@app.server
Keep at least 1; with none running, requests get a 503
target_concurrency
@app.server
Concurrent requests per container before Modal adds another; size it to your peak concurrent calls
routing_region
@app.server
Put the endpoint close to your callers to cut network time on every turn
GPU type
gpu=
Larger GPUs cut time to first token for bigger models
--max-model-len
vLLM flags
Smaller context windows boot faster and leave more memory for concurrent calls
Troubleshooting
Calls get no reply, or the first call after a quiet period fails
The app scaled to zero, and Modal rejected the request with a 503. Registration still saves a model it can’t reach, so this first shows up on a call. Set min_containers=1 and redeploy.
The endpoint rejected this API key
Check that the key is the token ID and secret joined with a period, wk-<id>.ws-<secret>, with no spaces. A 403 means the token isn’t scoped to the app’s environment. If you use vLLM’s --api-key instead, make sure the Secret is attached and redeploy after changing it.
Model not found
The model name must match a --served-model-name value exactly. Check GET /v1/models.
404 on chat completions
The URL is missing /v1, or it points at a different Modal app. Use the URL that modal deploy printed for the server, followed by /v1.
Related
Custom LLM inference: every field, the save-time checks and extra request params
Baseten: managed dedicated deployments if you’d rather not maintain the server code
Was this page helpful?
⌘I
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"Bolna Docs","description":"Quickly build and deploy conversational Voice AI agents","colors":{"primary":"#0073FF","light":"#64AAFF","dark":"#111111"},"logo":{"light":"https://mintcdn.com/bolna-54a2d4fe/VALWWMf7cQUV4GqY/logo/bolna-full-black.svg?fit=max\u0026auto=format\u0026n=VALWWMf7cQUV4GqY\u0026q=85\u0026s=9ad059134ba7338f4da43293d005f1e5","dark":"https://mintcdn.com/bolna-54a2d4fe/VALWWMf7cQUV4GqY/logo/bolna-full-white.svg?fit=max\u0026auto=format\u0026n=VALWWMf7cQUV4GqY\u0026q=85\u0026s=11287fcf7fd00922b6ea065d4247fe83","href":"https://www.bolna.ai/docs"},"favicon":{"light":"https://mintcdn.com/bolna-54a2d4fe/8f2PS3DzbOQMg6a5/favicon-bolna.svg?fit=max\u0026auto=format\u0026n=8f2PS3DzbOQMg6a5\u0026q=85\u0026s=65bdfd76b54fe55c7ea7edae0efb50e9","dark":"https://mintcdn.com/bolna-54a2d4fe/I_65jyMVzaUKonyY/favicon-bolna-white.svg?fit=max\u0026auto=format\u0026n=I_65jyMVzaUKonyY\u0026q=85\u0026s=afa80c7dbb9e76d1a9272c2f716b6aa6"},"api":{"openapi":"api-reference/openapi.yml"},"background":{"decoration":"gradient","color":{"light":"#FFFFFF","dark":"#111111"}},"navbar":{"links":[{"icon":"globe","href":"https://status.bolna.ai","label":"Status"},{"icon":"slack","href":"https://www.bolna.ai/join-slack","label":"Ask us on Slack"},{"icon":"gauge","href":"https://platform.bolna.ai/sign-up","label":"Platform"}]},"footer":{"socials":{"website":"https://platform.bolna.ai","github":"https://github.com/bolna-ai/bolna","slack":"https://www.bolna.ai/join-slack","linkedin":"https://www.linkedin.com/company/bolna-ai","youtube":"https://www.youtube.com/@BolnaVoiceAI","instagram":"https://www.instagram.com/bolna_dev"}},"seo":{"metatags":{"og:type":"website","og:site_name":"Bolna AI Documentation","canonical":"https://www.bolna.ai/docs"},"organization":{"id":"https://www.bolna.ai/#organization","name":"Bolna AI","legalName":"Whismurwave Inc.","url":"https://www.bolna.ai","logo":"https://www.bolna.ai/logos/logo-black.png","sameAs":["https://www.linkedin.com/company/bolna-ai/","https://www.ycombinator.com/companies/bolna-ai","https://github.com/bolna-ai","https://x.com/bolna_dev","https://www.youtube.com/@BolnaVoiceAI"]}},"fonts":{"family":"Anek Latin"},"styling":{"codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-BJ5QXHE52P"},"gtm":{"tagId":"GTM-53BBWG2J"}},"contextual":{"options":["copy","view","chatgpt","claude","add-mcp","cursor","vscode"],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bolna-54a2d4fe","hasAudioNarration":false,"actualSubdomain":"bolna-54a2d4fe","customDomains":["www.bolna.ai"],"gitSource":{"type":"github","owner":"bolna-ai","repo":"docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10af799ffae5051c3fe223"},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b1038eb213d039e48a6ba35","clientVersion":"0.0.4428","searchFilterCounts":[{"language":"default","tag":"Voice Agents","count":196},{"language":"default","tag":"API Reference","count":174},{"language":"default","tag":"Build","count":88},{"language":"default","tag":"Deploy","count":79},{"language":"default","tag":"Integrations","count":71},{"language":"default","tag":"Workflows","count":66},{"language":"default","tag":"Voice agents","count":57},{"language":"default","tag":"Telephony","count":50},{"language":"default","tag":"AI models","count":47},{"language":"default","tag":"Developers","count":44}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@bolna.ai"}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--bolna-black: #111111;--bolna-grey-05: #262626;--bolna-grey-04: #5b5c5c;--bolna-grey-02: #d0d0d0;--bolna-grey-01: #f2f2f2;--bolna-blue: #0073ff;--bolna-radius-button: 12px;--bolna-radius-card: 16px}#banner{background-color:var(--bolna-black)!important}img[src*=\"bolna-full-\"]{height:26px!important;width:auto!important;max-height:unset!important;max-width:unset!important}.update-container{flex-direction:column!important;align-items:stretch!important}.update-container>div:first-child{position:static!important;width:auto!important;margin-bottom:0.5rem}#content-container,#content-container :is(p,li,td,th,dd,dt,span,div){hyphens:none!important;-webkit-hyphens:none!important}#content-container code:not(pre code){word-break:normal!important;overflow-wrap:break-word!important}:is(h1,h2,h3,#page-title){letter-spacing:-0.02em}:root{font-size-adjust:0.546}:is(code,pre,kbd,samp){font-size-adjust:none}.card{border-radius:var(--bolna-radius-card)!important}.card:hover{border-color:var(--bolna-black)!important}html.dark .card:hover{border-color:#ffffff!important}"}]}
{"page":{"pagePath":"custom-llm-inference/modal","slug":"/custom-llm-inference/modal","pageMetadata":{"title":"Self-host an LLM on Modal for Bolna voice agents","sidebarTitle":"Modal","icon":"/images/icons/modal-logo.svg","description":"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.","keywords":["Modal LLM","vLLM on Modal","self-hosted LLM voice agent","Modal custom LLM Bolna","serverless GPU inference","Modal proxy token"],"last_reviewed":"2026-10-14","href":"/custom-llm-inference/modal"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,hr:`hr`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,CodeBlock,Frame,Heading,OptimizedImage,Step,Steps,Tab,Table,Tabs}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Step)_missingMdxReference(`Step`,true);if(!Steps)_missingMdxReference(`Steps`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.a,{href:`https://modal.com`,children:`Modal`}),` is a serverless GPU platform: you write a small Python app, run `,_jsx(_components.code,{children:`modal deploy`}),`, and Modal gives you a public HTTPS URL backed by GPUs. Unlike the other providers in this section, Modal has no model catalog and no shared endpoint. `,_jsx(_components.strong,{children:`You run the inference server.`}),` Choose Modal when you want a fine-tuned checkpoint, a model no hosted API offers, a GPU region close to your callers, or full control over the serving engine.`]}),`\n`,_jsxs(_components.p,{children:[`This guide deploys an OpenAI-compatible `,_jsx(_components.a,{href:`https://docs.vllm.ai`,children:`vLLM`}),` server on Modal and adds it to Bolna as a `,_jsx(_components.a,{href:`/custom-llm-inference`,children:`custom LLM`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`what-to-enter-in-bolna`,children:`What to enter in Bolna`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Value`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Provider`})}),_jsx(_components.td,{children:`Modal`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Model name`})}),_jsxs(_components.td,{children:[`A value you gave vLLM’s `,_jsx(_components.code,{children:`--served-model-name`}),`, for example `,_jsx(_components.code,{children:`llm`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Endpoint URL`})}),_jsxs(_components.td,{children:[`The URL `,_jsx(_components.code,{children:`modal deploy`}),` prints, followed by `,_jsx(_components.code,{children:`/v1`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API key`})}),_jsxs(_components.td,{children:[`A Modal proxy token, written as `,_jsx(_components.code,{children:`wk-\u003cid>.ws-\u003csecret>`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Family`})}),_jsxs(_components.td,{children:[`The model family, for example `,_jsx(_components.code,{children:`gemma`}),` or `,_jsx(_components.code,{children:`qwen`})]})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`what-you-need`,children:`What you need`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`A Modal account and the Modal CLI (`,_jsx(_components.code,{children:`pip install modal`}),`, then `,_jsx(_components.code,{children:`modal setup`}),`)`]}),`\n`,_jsx(_components.li,{children:`The Hugging Face model you want to serve`}),`\n`,_jsxs(_components.li,{children:[`A Bolna account with access to `,_jsx(_components.strong,{children:`Settings → Integrations`})]}),`\n`]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`deploy-and-connect`,children:`Deploy and connect`}),`\n`,_jsxs(Steps,{children:[_jsxs(Step,{title:`Deploy a vLLM server`,children:[_jsxs(_components.p,{children:[`Save this as `,_jsx(_components.code,{children:`bolna_llm.py`}),` and run `,_jsx(_components.code,{children:`modal deploy bolna_llm.py`}),`. It is a trimmed version of Modal’s `,_jsx(_components.a,{href:`https://modal.com/docs/examples/vllm_inference`,children:`vLLM inference example`}),`, with the settings a voice agent needs. Swap in your own model and the GPU it needs.`]}),_jsx(CodeBlock,{filename:`bolna_llm.py`,numberOfLines:`43`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`43`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` json`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` subprocess`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` modal`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`MODEL`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"google/gemma-4-26B-A4B-it\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`image `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` modal.Image.from_registry(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nvidia/cuda:12.9.0-devel-ubuntu22.04\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`add_python`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"3.12\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .entrypoint([])`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .uv_pip_install(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vllm==0.21.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` .env({`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"HF_XET_HIGH_PERFORMANCE\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`app `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` modal.App(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"bolna-llm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`@app.server`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` image`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`image,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` gpu`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"H200\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` port`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`8000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` startup_timeout`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 60`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` min_containers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# a Server with no running container rejects requests`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` target_concurrency`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# requests per container before Modal adds another`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` routing_region`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"ap-south\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Mumbai; pick the region closest to your callers`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` volumes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/root/.cache/huggingface\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: modal.Volume.from_name(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"huggingface-cache\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`create_if_missing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/root/.cache/vllm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: modal.Volume.from_name(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"vllm-cache\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`create_if_missing`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`True`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`class`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Server`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` @modal.enter`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.process `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` subprocess.Popen([`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"vllm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"serve\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`MODEL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"--served-model-name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"llm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"--host\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"0.0.0.0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"--port\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"8000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"--limit-mm-per-prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, json.dumps({`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"video\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"audio\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"--enable-auto-tool-choice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"--tool-call-parser\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gemma4\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ])`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` @modal.exit`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` def`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` self`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.process.terminate()`})]}),`\n`]})})}),_jsxs(_components.p,{children:[_jsx(_components.code,{children:`modal deploy`}),` prints the server URL, for example `,_jsx(_components.code,{children:`https://your-workspace--bolna-llm-server.ap-south.modal.direct`}),`. The dialog’s placeholder shows the older `,_jsx(_components.code,{children:`*.modal.run`}),` shape that Modal web functions use; both work the same way. Paste the URL you were given and add `,_jsx(_components.code,{children:`/v1`}),`.`]})]}),_jsxs(Step,{title:`Create a proxy token`,children:[_jsxs(_components.p,{children:[`A Modal Server rejects requests without a proxy token by default, with a `,_jsx(_components.code,{children:`401`}),`. Create one under `,_jsx(_components.a,{href:`https://modal.com/settings/proxy-auth-tokens`,children:`Settings → Proxy Auth Tokens`}),` in Modal, or run `,_jsx(_components.code,{children:`modal workspace proxy-tokens create`}),`. Join the token ID and secret with a period, `,_jsx(_components.code,{children:`wk-\u003cid>.ws-\u003csecret>`}),`, and use that as the API key. Modal accepts it as a bearer token, which is what Bolna sends.`]}),_jsxs(_components.p,{children:[`If your workspace uses role-based access, scope the token to the environment the app is deployed in, or requests are denied with a `,_jsx(_components.code,{children:`403`}),`.`]})]}),_jsxs(Step,{title:`Check the endpoint`,children:[_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`your-modal-ur`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`l`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/v1/models`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Authorization: Bearer wk-\u003cid>.ws-\u003csecret>\"`})]}),`\n`]})})}),_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`id`}),` in the response is the model name to register, `,_jsx(_components.code,{children:`llm`}),` in the example above. To also measure time to first token, run the `,_jsx(_components.a,{href:`/custom-llm-inference#test-your-endpoint-before-you-register-it`,children:`streaming test`}),`.`]})]}),_jsxs(Step,{title:`Choose Modal in the Add custom model dialog`,children:[_jsxs(_components.p,{children:[`In Bolna, go to `,_jsx(_components.strong,{children:`Settings → Integrations`}),`, filter by `,_jsx(_components.strong,{children:`LLM`}),`, and click `,_jsx(_components.strong,{children:`Add model`}),` on the `,_jsx(_components.strong,{children:`Custom LLM`}),` card. You can also open the same dialog from an agent: on the `,_jsx(_components.strong,{children:`Intelligence`}),` tab, open the `,_jsx(_components.strong,{children:`LLM Provider`}),` dropdown and choose `,_jsx(_components.strong,{children:`+ Add custom LLM`}),`.`]}),_jsxs(_components.p,{children:[`Pick `,_jsx(_components.strong,{children:`Modal`}),` as the provider. The endpoint field only shows the shape of a Modal URL as a placeholder, because your URL is unique to your workspace and app.`]}),_jsx(Frame,{caption:`Modal selected: the endpoint placeholder shows the URL shape, the hint says to use the URL from modal deploy`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=2b800720a839256685b7cbb1ef20ef63`,alt:`Bolna Add custom model dialog with Modal selected as provider and an empty endpoint URL field showing a Modal URL placeholder`,\"data-og-width\":`1024`,width:`1024`,\"data-og-height\":`1220`,height:`1220`,\"data-path\":`images/custom-llm/providers/modal-selected.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=280\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=a660a1626893ba46b0ee751f8eb40398 280w, https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=560\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=0a1b22cb04ed1b5c3adb4b84b3781eee 560w, https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=840\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=2e6af5d48b8c263a50836d6e4074508a 840w, https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=1100\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=4d77ecc34312dc48b6d871465ceab230 1100w, https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=1650\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=24a35ab2839e3c82b023948d97cf876e 1650w, https://mintcdn.com/bolna-54a2d4fe/0EXypen329Eb5XE2/images/custom-llm/providers/modal-selected.png?w=2500\u0026fit=max\u0026auto=format\u0026n=0EXypen329Eb5XE2\u0026q=85\u0026s=e3930e3dd02e1ec9c2c5117277c08916 2500w`})})]}),_jsx(Step,{title:`Register the model`,children:_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Dashboard`,id:`dashboard`,children:[_jsxs(_components.p,{children:[`Fill in the values from `,_jsx(_components.a,{href:`#what-to-enter-in-bolna`,children:`the table above`}),` and click `,_jsx(_components.strong,{children:`Add model`}),`.`]}),_jsx(Frame,{caption:`A filled-in Modal registration`,children:_jsx(OptimizedImage,{src:`https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=c694afc737e83456ca3817d180d59c5f`,alt:`Add custom model dialog with Modal selected, a model name, a Modal endpoint URL, a masked API key and a family`,\"data-og-width\":`1024`,width:`1024`,\"data-og-height\":`1172`,height:`1172`,\"data-path\":`images/custom-llm/providers/modal-filled.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=280\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=80717f9ba3a9bc63403869027ad94ffa 280w, https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=560\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=b8bd4c1c9b36638e4dad27a38e669bde 560w, https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=840\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=699ca95c8369db28eee2b8b9eae58130 840w, https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=1100\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=fdc4c62c582a60d056a1a140bd4c0198 1100w, https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=1650\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=bca10ac95ed12122cb614e0fa2b7eb61 1650w, https://mintcdn.com/bolna-54a2d4fe/aV72vktown5Rn3f1/images/custom-llm/providers/modal-filled.png?w=2500\u0026fit=max\u0026auto=format\u0026n=aV72vktown5Rn3f1\u0026q=85\u0026s=f38c6bc578c8b3ae43d4779ee18a3577 2500w`})})]}),_jsx(Tab,{title:`API`,id:`api`,children:_jsx(CodeBlock,{filename:``,numberOfLines:`10`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`10`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --request`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --url`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://api.bolna.ai/user/model/custom`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Authorization: Bearer \u003cBOLNA_API_KEY>'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --header`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'Content-Type: application/json'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --data`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_model_name\": \"llm\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_model_url\": \"https://\u003cyour-modal-url>/v1\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_model_key\": \"wk-\u003cid>.ws-\u003csecret>\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"custom_model_family\": \"gemma\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})})]})}),_jsx(Step,{title:`Use it on an agent`,children:_jsxs(_components.p,{children:[`On the agent’s `,_jsx(_components.strong,{children:`Intelligence`}),` tab, choose `,_jsx(_components.strong,{children:`custom`}),` as the provider and select your model. If you added it from the agent’s dropdown, it is already selected. Save the agent and place a web call before you send live traffic to it.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`things-to-know`,children:`Things to know`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Keep a container warm.`}),` A Modal Server with no running container rejects requests with a `,_jsx(_components.code,{children:`503`}),` instead of queuing them, so a call that arrives after the app has scaled to zero gets no reply at all. Keep `,_jsx(_components.code,{children:`min_containers=1`}),` for any agent that takes live calls. You pay for that GPU while it idles.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Region.`}),` `,_jsx(_components.code,{children:`routing_region`}),` sets where Modal’s proxy accepts requests: `,_jsx(_components.code,{children:`us-east`}),` (default), `,_jsx(_components.code,{children:`us-west`}),`, `,_jsx(_components.code,{children:`ca-central`}),`, `,_jsx(_components.code,{children:`eu-west`}),`, `,_jsx(_components.code,{children:`ap-south`}),` (Mumbai) or `,_jsx(_components.code,{children:`ap-southeast-2`}),`. To also keep the GPUs in that region, set `,_jsx(_components.code,{children:`compute_region`}),`, which adds a `,_jsx(_components.a,{href:`https://modal.com/docs/guide/region-selection#pricing`,children:`cost multiplier`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Model name.`}),` Bolna checks the model name against your server’s `,_jsx(_components.code,{children:`/v1/models`}),` when you add it. vLLM lists every value given to `,_jsx(_components.code,{children:`--served-model-name`}),`, so enter one of them exactly.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Tool calling.`}),` If your agent uses tools, vLLM needs `,_jsx(_components.code,{children:`--enable-auto-tool-choice`}),` and the parser for your model, for example `,_jsx(_components.code,{children:`gemma4`}),` for Gemma 4, `,_jsx(_components.code,{children:`hermes`}),` for Qwen2.5 or `,_jsx(_components.code,{children:`llama3_json`}),` for Llama 3.1. See vLLM’s `,_jsx(_components.a,{href:`https://docs.vllm.ai/en/latest/features/tool_calling/`,children:`tool calling guide`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Thinking.`}),` Qwen3 models think before every reply by default, which the caller hears as silence. Turn it off per agent with the `,_jsx(_components.a,{href:`/custom-llm-inference#extra-request-params`,children:`extra request params`}),` `,_jsx(_components.code,{children:`{\"chat_template_kwargs\": {\"enable_thinking\": false}}`}),`. Gemma 4 has thinking off by default.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Using vLLM’s own key instead.`}),` If you deploy with `,_jsx(_components.code,{children:`unauthenticated=True`}),`, Modal’s proxy lets every request through. In that case, protect the server with vLLM’s `,_jsx(_components.code,{children:`--api-key`}),` flag, read from a `,_jsx(_components.a,{href:`https://modal.com/docs/guide/secrets`,children:`Modal Secret`}),`, and register that key in Bolna instead of a proxy token.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`tuning-a-modal-deployment-for-voice`,children:`Tuning a Modal deployment for voice`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Where`}),_jsx(_components.th,{children:`Why it matters on a call`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`min_containers`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@app.server`})}),_jsxs(_components.td,{children:[`Keep at least `,_jsx(_components.code,{children:`1`}),`; with none running, requests get a `,_jsx(_components.code,{children:`503`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`target_concurrency`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@app.server`})}),_jsx(_components.td,{children:`Concurrent requests per container before Modal adds another; size it to your peak concurrent calls`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`routing_region`})}),_jsx(_components.td,{children:_jsx(_components.code,{children:`@app.server`})}),_jsx(_components.td,{children:`Put the endpoint close to your callers to cut network time on every turn`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`GPU type`}),_jsx(_components.td,{children:_jsx(_components.code,{children:`gpu=`})}),_jsx(_components.td,{children:`Larger GPUs cut time to first token for bigger models`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`--max-model-len`})}),_jsx(_components.td,{children:`vLLM flags`}),_jsx(_components.td,{children:`Smaller context windows boot faster and leave more memory for concurrent calls`})]})]})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsxs(AccordionGroup,{children:[_jsx(Accordion,{title:`Calls get no reply, or the first call after a quiet period fails`,id:`calls-get-no-reply-or-the-first-call-after-a-quiet-period-fails`,children:_jsxs(_components.p,{children:[`The app scaled to zero, and Modal rejected the request with a `,_jsx(_components.code,{children:`503`}),`. Registration still saves a model it can’t reach, so this first shows up on a call. Set `,_jsx(_components.code,{children:`min_containers=1`}),` and redeploy.`]})}),_jsx(Accordion,{title:`The endpoint rejected this API key`,id:`the-endpoint-rejected-this-api-key`,children:_jsxs(_components.p,{children:[`Check that the key is the token ID and secret joined with a period, `,_jsx(_components.code,{children:`wk-\u003cid>.ws-\u003csecret>`}),`, with no spaces. A `,_jsx(_components.code,{children:`403`}),` means the token isn’t scoped to the app’s environment. If you use vLLM’s `,_jsx(_components.code,{children:`--api-key`}),` instead, make sure the Secret is attached and redeploy after changing it.`]})}),_jsx(Accordion,{title:`Model not found`,id:`model-not-found`,children:_jsxs(_components.p,{children:[`The model name must match a `,_jsx(_components.code,{children:`--served-model-name`}),` value exactly. Check `,_jsx(_components.code,{children:`GET /v1/models`}),`.`]})}),_jsx(Accordion,{title:`404 on chat completions`,id:`404-on-chat-completions`,children:_jsxs(_components.p,{children:[`The URL is missing `,_jsx(_components.code,{children:`/v1`}),`, or it points at a different Modal app. Use the URL that `,_jsx(_components.code,{children:`modal deploy`}),` printed for the server, followed by `,_jsx(_components.code,{children:`/v1`}),`.`]})})]}),`\n`,_jsx(_components.hr,{}),`\n`,_jsx(Heading,{level:`2`,id:`related`,children:`Related`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/custom-llm-inference`,children:`Custom LLM inference`}),`: every field, the save-time checks and extra request params`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`https://modal.com/docs/examples/vllm_inference`,children:`Modal vLLM inference example`}),`, `,_jsx(_components.a,{href:`https://modal.com/docs/guide/servers`,children:`Modal Servers`}),` and `,_jsx(_components.a,{href:`https://modal.com/docs/guide/webhook-proxy-auth`,children:`proxy auth tokens`})]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/custom-llm-inference/baseten`,children:`Baseten`}),`: managed dedicated deployments if you’d rather not maintain the server code`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Self-host an LLM on Modal for Bolna voice agents","sidebarTitle":"Modal","icon":"/images/icons/modal-logo.svg","description":"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.","keywords":["Modal LLM","vLLM on Modal","self-hosted LLM voice agent","Modal custom LLM Bolna","serverless GPU inference","Modal proxy token"],"last_reviewed":"2026-10-14","href":"/custom-llm-inference/modal"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What to enter in Bolna","slug":"what-to-enter-in-bolna","depth":2,"children":[]},{"title":"What you need","slug":"what-you-need","depth":2,"children":[]},{"title":"Deploy and connect","slug":"deploy-and-connect","depth":2,"children":[]},{"title":"Things to know","slug":"things-to-know","depth":2,"children":[]},{"title":"Tuning a Modal deployment for voice","slug":"tuning-a-modal-deployment-for-voice","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[]},{"title":"Related","slug":"related","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/docs/_mintlify/custom/bolna-54a2d4fe/73314f84f6e30c14/custom.js","/docs/_mintlify/custom/bolna-54a2d4fe/786be19ebac8ab86/faq-schema.js"],"subdomain":"bolna-54a2d4fe","siteName":"Bolna Docs","title":"Self-host an LLM on Modal for Bolna voice agents - Bolna Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-14T06:19:10.521Z","originalFileLocation":"custom-llm-inference/modal.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Bolna Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Self-host an LLM on Modal for Bolna voice agents - Bolna Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Bolna AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.bolna.ai/docs/custom-llm-inference/modal\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bolna-54a2d4fe.mintlify.site/docs/_mintlify/api/og/v2?division=Custom+LLM+inference\u0026amp;title=Self-host+an+LLM+on+Modal+for+Bolna+voice+agents\u0026amp;description=Deploy+an+open-weight+model+with+vLLM+on+Modal+serverless+GPUs%2C+protect+it+with+a+proxy+token%2C+keep+it+warm%2C+and+use+it+as+a+Bolna+custom+LLM.\u0026amp;theme=f2dcce2f7fc3b944c1c433e4\u0026amp;signature=e0dad3c5e4015a16289a46dfa0ea050a1356f205c15f4892471977d507a98fae\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Self-host an LLM on Modal for Bolna voice agents - Bolna Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bolna-54a2d4fe.mintlify.site/docs/_mintlify/api/og/v2?division=Custom+LLM+inference\u0026amp;title=Self-host+an+LLM+on+Modal+for+Bolna+voice+agents\u0026amp;description=Deploy+an+open-weight+model+with+vLLM+on+Modal+serverless+GPUs%2C+protect+it+with+a+proxy+token%2C+keep+it+warm%2C+and+use+it+as+a+Bolna+custom+LLM.\u0026amp;theme=f2dcce2f7fc3b944c1c433e4\u0026amp;signature=e0dad3c5e4015a16289a46dfa0ea050a1356f205c15f4892471977d507a98fae\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/bolna-54a2d4fe/cQLQhIXNsgk9iuEx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Bolna Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0073FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.bolna.ai/docs/custom-llm-inference/modal\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/custom-llm-inference/modal.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.bolna.ai/#organization\",\"name\":\"Bolna AI\",\"legalName\":\"Whismurwave Inc.\",\"url\":\"https://www.bolna.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.bolna.ai/logos/logo-black.png\"},\"sameAs\":[\"https://www.linkedin.com/company/bolna-ai/\",\"https://www.ycombinator.com/companies/bolna-ai\",\"https://github.com/bolna-ai\",\"https://x.com/bolna_dev\",\"https://www.youtube.com/@BolnaVoiceAI\"]},{\"@type\":\"WebSite\",\"@id\":\"https://www.bolna.ai/docs#website\",\"name\":\"Bolna Docs\",\"url\":\"https://www.bolna.ai/docs\",\"publisher\":{\"@id\":\"https://www.bolna.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.bolna.ai/docs/custom-llm-inference/modal#webpage\",\"url\":\"https://www.bolna.ai/docs/custom-llm-inference/modal\",\"name\":\"Self-host an LLM on Modal for Bolna voice agents\",\"description\":\"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\",\"dateModified\":\"2026-11-14T06:19:10.521Z\",\"isPartOf\":{\"@id\":\"https://www.bolna.ai/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.bolna.ai/docs/custom-llm-inference/modal#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.bolna.ai/docs/custom-llm-inference/modal#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"AI models\",\"item\":\"https://www.bolna.ai/docs/deepgram-transcriber\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LLMs\",\"item\":\"https://www.bolna.ai/docs/language-models\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Custom LLM inference\",\"item\":\"https://www.bolna.ai/docs/custom-llm-inference\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Self-host an LLM on Modal for Bolna voice agents\",\"item\":\"https://www.bolna.ai/docs/custom-llm-inference/modal\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.bolna.ai/docs/custom-llm-inference/modal#article\",\"headline\":\"Self-host an LLM on Modal for Bolna voice agents\",\"name\":\"Self-host an LLM on Modal for Bolna voice agents\",\"description\":\"Deploy an open-weight model with vLLM on Modal serverless GPUs, protect it with a proxy token, keep it warm, and use it as a Bolna custom LLM.\",\"url\":\"https://www.bolna.ai/docs/custom-llm-inference/modal\",\"mainEntityOfPage\":{\"@id\":\"https://www.bolna.ai/docs/custom-llm-inference/modal#webpage\"},\"dateModified\":\"2026-11-14T06:19:10.521Z\",\"keywords\":\"Modal LLM, vLLM on Modal, self-hosted LLM voice agent, Modal custom LLM Bolna, serverless GPU inference, Modal proxy token\",\"publisher\":{\"@id\":\"https://www.bolna.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://www.bolna.ai/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Bolna Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Bolna AI\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/custom-llm-inference/modal.md","siteName":"Bolna Docs","nav":{"global":null,"tabs":[{"tab":"Overview","icon":"book","pages":[{"title":"Overview","href":""}]},{"tab":"Voice Agents","icon":"waveform-lines","pages":[{"title":"Voice Agents","href":"/agents/overview"}]},{"tab":"Integrations","icon":"plug","groups":[{"group":" ","pages":[{"title":"Bolna voice AI integrations","sidebarTitle":"All integrations","icon":"grid-2-plus","iconType":"solid","href":"/integrations"},{"sidebarTitle":"Provider credentials","title":"Connect your provider credentials","icon":"link-horizontal","iconType":"solid","href":"/providers"}]},{"group":"Telephony","icon":"tower-cell","pages":[{"title":"Telephony integrations for Bolna voice AI agents","sidebarTitle":"Telephony providers","icon":"phone","href":"/telephony-integrations"}]},{"group":"AI models","icon":"microchip","pages":[{"group":"Speech-to-text","icon":"microphone","root":{"title":"Speech-to-text providers","sidebarTitle":"Speech-to-text","icon":"microphone","iconType":"solid","href":"/speech-to-text"},"expanded":false,"pages":[{"title":"Deepgram real-time transcription for Bolna voice agents","sidebarTitle":"Deepgram","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/deepgram-logo.png","href":"/deepgram-transcriber"},{"title":"Deepgram Flux transcriber (speech to text)","sidebarTitle":"Deepgram Flux","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/deepgram-logo.png","href":"/deepgram-flux"},{"title":"OpenAI Realtime transcriber (speech to text)","sidebarTitle":"OpenAI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/openai-logo.svg","href":"/openai-transcriber"},{"title":"Azure transcriber (speech to text)","sidebarTitle":"Azure","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/azure-openai-logo.svg","href":"/azure-transcriber"},{"title":"AssemblyAI real-time transcription for Bolna voice agents","sidebarTitle":"AssemblyAI","tag":"New","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/assemblyai-logo.svg","href":"/assemblyai"},{"title":"ElevenLabs transcriber (speech to text)","sidebarTitle":"ElevenLabs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/elevenlabs-logo.svg","href":"/elevenlabs-transcriber"},{"title":"Gladia transcriber (speech to text)","sidebarTitle":"Gladia","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/gladia-logo.svg","href":"/gladia"},{"title":"Sarvam transcriber (speech to text)","sidebarTitle":"Sarvam","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/sarvam-mark.svg","href":"/sarvam-transcriber"},{"title":"Smallest transcriber (speech to text)","sidebarTitle":"Smallest","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/smallest-logo.svg","href":"/smallest-transcriber"},{"title":"Soniox transcriber (speech to text)","sidebarTitle":"Soniox","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/soniox-logo.png","href":"/soniox"},{"title":"Gemini transcriber (speech to text)","sidebarTitle":"Gemini","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/gemini-logo.svg","href":"/gemini-transcriber"}]},{"group":"LLMs","icon":"brain","root":{"title":"LLM providers","sidebarTitle":"LLMs","icon":"brain","iconType":"solid","href":"/language-models"},"expanded":false,"pages":[{"title":"OpenAI GPT models for Bolna voice agents","sidebarTitle":"OpenAI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/openai-logo.svg","href":"/openai-llm"},{"title":"OpenRouter models and settings for Bolna agents","sidebarTitle":"OpenRouter","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/openrouter-logo.svg","href":"/openrouter"},{"title":"Azure OpenAI models for Bolna voice agents","sidebarTitle":"Azure OpenAI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/azure-openai-logo.svg","href":"/azure-openai"},{"title":"DeepSeek models for Bolna voice agents","sidebarTitle":"DeepSeek","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/deepseek-logo.svg","href":"/deepseek"},{"title":"Anthropic Claude models for Bolna voice agents","sidebarTitle":"Anthropic","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/anthropic-logo.svg","href":"/anthropic"},{"title":"Google Gemini models for Bolna voice agents","sidebarTitle":"Google Gemini","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/gemini-logo.svg","href":"/gemini-llm"},{"title":"Sarvam LLM for Bolna voice agents","sidebarTitle":"Sarvam","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/sarvam-mark.svg","href":"/sarvam-llm"},{"title":"AWS Bedrock LLM for Bolna voice agents","sidebarTitle":"AWS Bedrock","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/aws-logo.svg","href":"/bedrock-llm"},{"group":"Custom LLM inference","icon":"server","root":{"title":"Custom LLM inference for Bolna voice agents","sidebarTitle":"Custom LLM inference","icon":"server","href":"/custom-llm-inference"},"pages":[{"title":"Use Baseten Model APIs or dedicated deployments in Bolna","sidebarTitle":"Baseten","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/baseten-logo.png","href":"/custom-llm-inference/baseten"},{"title":"Connect Cerebras inference to Bolna voice agents","sidebarTitle":"Cerebras","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/cerebras-logo.png","href":"/custom-llm-inference/cerebras"},{"title":"Use Fireworks AI models in Bolna voice agents","sidebarTitle":"Fireworks AI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/fireworks-logo.svg","href":"/custom-llm-inference/fireworks"},{"title":"Connect Groq to Bolna for low-latency voice agents","sidebarTitle":"Groq","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/groq-logo.svg","description":"Run Llama and GPT-OSS on GroqCloud from a Bolna voice agent for fast time to first token: API key, model IDs, unsupported OpenAI fields and rate limits.","href":"/custom-llm-inference/groq"},{"title":"Self-host an LLM on Modal for Bolna voice agents","sidebarTitle":"Modal","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/modal-logo.svg","href":"/custom-llm-inference/modal"},{"title":"Use Nebius Token Factory as the LLM for Bolna agents","sidebarTitle":"Nebius","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/nebius-logo.svg","description":"Connect Nebius Token Factory public or dedicated endpoints to a Bolna voice agent, including region choice for data residency, model IDs and API keys.","href":"/custom-llm-inference/nebius"},{"title":"Connect Simplismart to Bolna voice agents","sidebarTitle":"Simplismart","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/simplismart-logo.png","href":"/custom-llm-inference/simplismart"},{"title":"Use Together AI open models in Bolna voice agents","sidebarTitle":"Together AI","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/together-logo.png","href":"/custom-llm-inference/together"}]}]},{"group":"Text-to-speech","icon":"volume-high","root":{"title":"Text-to-speech providers","sidebarTitle":"Text-to-speech","icon":"volume-high","iconType":"solid","href":"/text-to-speech"},"expanded":false,"pages":[{"title":"AWS Polly text to speech with Bolna voice AI agents","sidebarTitle":"AWS Polly","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/aws-logo.svg","href":"/aws-polly"},{"title":"Azure text to speech with Bolna voice AI agents","sidebarTitle":"Azure","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/azure-openai-logo.svg","href":"/azure-voice"},{"title":"Cartesia for Voice Agents – Setup Guide","sidebarTitle":"Cartesia","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/cartesia-logo.png","href":"/cartesia"},{"title":"Deepgram text to speech with Bolna voice AI agents","sidebarTitle":"Deepgram","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/deepgram-logo.png","href":"/deepgram-voice"},{"title":"ElevenLabs voice synthesis for Bolna agents","sidebarTitle":"ElevenLabs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/elevenlabs-logo.svg","href":"/elevenlabs-voice"},{"title":"Kalpa Labs voice synthesis for Bolna agents","sidebarTitle":"Kalpa Labs","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/kalpa-logo.svg","href":"/kalpa"},{"title":"Maya voice synthesis for Bolna agents","sidebarTitle":"Maya","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/maya-logo.svg","href":"/maya"},{"title":"Navana voice synthesis for Bolna agents","sidebarTitle":"Navana","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/navana-logo.png","href":"/navana"},{"title":"Rime text to speech with Bolna voice AI agents","sidebarTitle":"Rime","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/rime-logo.png","href":"/rime"},{"title":"Sarvam text to speech with Bolna voice AI agents","sidebarTitle":"Sarvam","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/sarvam-mark.svg","href":"/sarvam-voice"},{"title":"Smallest text to speech with Bolna voice AI agents","sidebarTitle":"Smallest","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/smallest-logo.svg","href":"/smallest-voice"},{"title":"Soniox text to speech with Bolna voice AI agents","sidebarTitle":"Soniox","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/soniox-logo.png","href":"/soniox-voice"},{"title":"Custom TTS for Bolna voice agents","sidebarTitle":"Bring your own TTS","icon":"server","href":"/custom-tts"}]},{"group":"Speech-to-speech","icon":"waveform-lines","root":{"title":"Speech-to-speech agents","sidebarTitle":"Speech-to-speech agents","icon":"waveform-lines","href":"/speech-to-speech"},"expanded":false,"pages":[{"title":"OpenAI Realtime (speech to speech)","sidebarTitle":"OpenAI Realtime","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/openai-logo.svg","href":"/openai-realtime"},{"title":"Gemini Live (speech to speech)","sidebarTitle":"Gemini Live","icon":"https://mintlify.s3.us-west-1.amazonaws.com/bolna-54a2d4fe/images/icons/gemini-logo.svg","href":"/gemini-live"}]}]},{"group":"No-code automation","icon":"wand-magic-sparkles","pages":[{"group":"Automation platforms","icon":"gears","root":{"title":"Using Bolna AI with no-code tools","sidebarTitle":"No-code options overview","icon":"life-ring","iconType":"solid","href":"/tutorials/introduction"},"expanded":false,"pages":[{"group":"Make.com","icon":"gears","root":{"title":"Using Bolna AI with Make.com","sidebarTitle":"Introduction","icon":"circle-info","iconType":"solid","href":"/tutorials/make-com/overview"},"expanded":false,"pages":[{"title":"Create Bolna API connection with Make.com","sidebarTitle":"API connection","icon":"code","iconType":"solid","href":"/tutorials/make-com/create-bolna-api-connection"},{"title":"Create Bolna webhook connection with Make.com","sidebarTitle":"Webhook connection","icon":"webhook","iconType":"solid","href":"/tutorials/make-com/create-bolna-webhook-connection"},{"title":"Integrating make.com with Bolna AI to send emails","sidebarTitle":"Email after a call","icon":"envelope-circle-check","iconType":"solid","href":"/tutorials/make-com/send-email-after-bolna-call"},{"title":"Integrating make.com with Bolna AI to send SMS","sidebarTitle":"SMS after a call","icon":"message-sms","iconType":"solid","href":"/tutorials/make-com/send-sms-after-bolna-call"},{"title":"Integrating make.com with Bolna AI to send WhatsApp","sidebarTitle":"WhatsApp after a call","icon":"whatsapp","iconType":"solid","href":"/tutorials/make-com/send-whatsapp-after-bolna-call"}]},{"group":"n8n","icon":"gears","root":{"title":"Using Bolna AI with n8n","sidebarTitle":"Introduction","icon":"circle-info","iconType":"solid","href":"/tutorials/n8n/overview"},"expanded":false,"pages":[{"title":"Bolna community node for n8n","sidebarTitle":"Community node","icon":"puzzle-piece","iconType":"solid","href":"/tutorials/n8n/community-node"},{"title":"Integrating n8n with Bolna AI to send emails","sidebarTitle":"Email after a call","icon":"envelope-circle-check","iconType":"solid","href":"/tutorials/n8n/send-email-after-bolna-call"}]},{"title":"Using Bolna AI with Zapier","sidebarTitle":"Zapier","icon":"circle-info","iconType":"solid","href":"/tutorials/zapier/overview"},{"group":"viaSocket","icon":"gears","root":{"title":"Using Bolna AI with viaSocket","sidebarTitle":"Introduction","icon":"circle-info","iconType":"solid","href":"/tutorials/viasocket/overview"},"expanded":false,"pages":[{"title":"Create Bolna API connection with viaSocket","sidebarTitle":"API connection","icon":"code","iconType":"solid","href":"/tutorials/viasocket/create-bolna-api-connection"}]},{"title":"Automate outbound calls with Bolna AI and Google Sheets","sidebarTitle":"Google Sheets","icon":"table","iconType":"solid","href":"/tutorials/google-sheets/automate-calls"}]}]},{"group":"Call analytics","icon":"chart-line","pages":[{"title":"Monitor Bolna calls with Agnost AI","sidebarTitle":"Agnost AI","icon":"chart-line","iconType":"solid","href":"/agnost"}]},{"group":"Choose providers","icon":"sliders","pages":[{"title":"Choosing providers","sidebarTitle":"Decision guide","icon":"sliders","iconType":"solid","href":"/concepts/choosing-providers"},{"title":"Choosing a speech-to-text provider","sidebarTitle":"Choose a transcriber","icon":"microphone","iconType":"solid","href":"/concepts/choosing-speech-to-text"},{"title":"Choosing an LLM","sidebarTitle":"Choose an LLM","icon":"brain","iconType":"solid","href":"/concepts/choosing-llm"},{"title":"Choosing a text-to-speech provider","sidebarTitle":"Choose a voice","icon":"volume-high","iconType":"solid","href":"/concepts/choosing-text-to-speech"},{"title":"Choosing a telephony provider","sidebarTitle":"Choose telephony","icon":"phone","iconType":"solid","href":"/concepts/choosing-telephony"},{"title":"Fallback Models","sidebarTitle":"Fallback models (API)","icon":"shield-halved","iconType":"solid","href":"/customizations/fallback-models"}]}]},{"tab":"API Reference","icon":"terminal","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Developers","icon":"toolbox","pages":[{"title":"Developers","href":"/developer-resources/overview"}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog/december-2026"}]}]},"basePath":"","title":"Self-host an LLM on Modal for Bolna voice agents - Bolna Docs","deploymentId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","buildId":"dpl_2XYgqAEo2Z87hCspE7GmXvEteEBv","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-DzCM4ET2.js","DynamicMarkdown-nQmF4d4W.js","zoom-image-lightbox-r-HYrOt0.js","lightbox-handle-r17bVUz3.js"]}