ElevenLabs, Flux & Suno Through One API
· Varosity
Call ElevenLabs voice, Flux image, and Suno music models through a single Varosity API key. No per-provider auth. REST, MCP, and CLI supported.
One API Key for ElevenLabs, Flux, and Suno
Varosity gives developers a single API key that routes requests to ElevenLabs (voice), Flux (images), and Suno (music) without managing separate provider accounts or credentials. You authenticate once with Varosity, specify the model in your request body, and the platform handles provider-side auth, rate-limit tracking, and billing — either through your own provider keys (BYOK) or Varosity credits.
Why This Matters for Multi-Modal Pipelines
Building a pipeline that generates a product video — voiceover, background music, and visual assets — normally requires three separate SDKs, three API keys, three billing relationships, and three sets of error-handling logic. With Varosity, all three calls go to https://varosity.ai with the same key — POST /api/tts for voice, POST /api/v1/images for images, POST /api/v1/music for music — with a model id such as elevenlabs-tts, flux-1.1-pro, or suno-v4.
This matters most for:
- AI agents that need to call media models dynamically without hardcoded provider switching
- Backend services that produce mixed media (narrated explainer videos, audio-visual ads, game assets)
- Rapid prototyping where swapping voice or music providers mid-project shouldn't require refactoring auth
REST Example: Voice + Image in Two Calls
# Generate voiceover with ElevenLabs
curl https://varosity.ai/api/tts \
-H "Authorization: Bearer $VAROSITY_KEY" \
-H "Content-Type: application/json" \
-d '{"voiceModel":"elevenlabs-tts","text":"Welcome to our product demo.","voiceId":"21m00Tcm4TlvDq8ikWAM"}'
# Generate a matching image with Flux
curl https://varosity.ai/api/v1/images \
-H "Authorization: Bearer $VAROSITY_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"flux-1.1-pro","prompt":"Minimalist product shot, white background, soft lighting","aspect_ratio":"16:9"}'Both calls use the same key and the same base URL. Voice returns an audioUrl and images return an imageUrl, in the same shape whichever provider handled the request.
MCP Support for Agent-Native Workflows
If you're building with Claude, GPT-4o, or any MCP-compatible agent framework, Varosity exposes a Model Context Protocol server. Your agent connects to https://varosity.ai/api/mcp and calls generate_voice, generate_image or generate_music, passing a model id and parameters — no custom tool wrappers per provider.
{
"name": "generate_music",
"arguments": {
"modelId": "suno-v4",
"prompt": "Upbeat corporate background music, 30 seconds, no vocals",
"durationSec": 30
}
}This lets an agent orchestrate a full media production loop — write copy, generate voice, generate music, generate visuals — without leaving the tool-call interface or managing provider tokens at the agent level.
BYOK vs. Credits
Varosity supports two billing modes, and verified accounts without a plan get 10 free credits a day:
- BYOK (Bring Your Own Key): Attach your existing ElevenLabs key, or the fal or Replicate key that runs Flux, in the Varosity dashboard. Varosity routes your requests using those keys; you pay providers directly at your existing rate, and Varosity adds no fee. Suno runs on Varosity credits only.
- Credits: Purchase Varosity credits and the platform covers provider costs. Useful when you don't have existing provider relationships or want consolidated invoicing.
Both modes work identically at the API level — no code changes needed to switch.
CLI Access
The Varosity CLI lets you test media generation without writing a script:
varosity generate voice --text "Hello world" --voice 21m00Tcm4TlvDq8ikWAM --out ./audio.mp3
Useful for CI pipelines, local prototyping, or scripting batch asset generation.