| name | elevenlabs-deploy-integration |
| description | Deploy ElevenLabs TTS applications to Vercel, Fly.io, and Cloud Run.
Use when deploying ElevenLabs-powered apps to production,
configuring platform-specific secrets, or setting up serverless TTS.
Trigger: "deploy elevenlabs", "elevenlabs Vercel", "elevenlabs Cloud Run",
"elevenlabs Fly.io", "elevenlabs serverless", "host TTS API".
|
| allowed-tools | Read, Write, Edit, Bash(vercel:*), Bash(fly:*), Bash(gcloud:*) |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","voice","ai","elevenlabs","deployment","serverless"] |
| compatible-with | claude-code |
ElevenLabs Deploy Integration
Overview
Deploy ElevenLabs TTS/voice applications to cloud platforms. Covers Vercel (serverless), Fly.io (containers), and Google Cloud Run with proper secrets management, timeout configuration, and streaming support.
Prerequisites
- ElevenLabs API key for production
- Platform CLI installed (
vercel, fly, or gcloud)
- Application code tested locally
Instructions
Vercel Deployment (Serverless)
Key constraint: Vercel functions have a 10-second timeout on Hobby (30s on Pro). Use Flash model for speed.
vercel env add ELEVENLABS_API_KEY production
vercel env add ELEVENLABS_API_KEY preview
vercel --prod
API Route (Next.js / Vercel):
import { ElevenLabsClient } from "@elevenlabs/elevenlabs-js";
import { NextResponse } from "next/server";
export const runtime = "nodejs";
export const maxDuration = 30;
const client = new ElevenLabsClient();
export async function POST(req: Request) {
const { text, voiceId = "21m00Tcm4TlvDq8ikWAM" } = await req.json();
(!text || text. > ) {
.(
{ : },
{ : }
);
}
{
audio = client..(voiceId, {
text,
: ,
: ,
: {
: ,
: ,
},
});
(audio , {
: {
: ,
: ,
},
});
} (: ) {
status = error. || ;
.(
{ : error. || },
{ status }
);
}
}