# Lyria 3 > AI model for generating voice cloning content ## Overview - **Model ID**: `lyria-3` - **Category**: voice cloning - **Provider**: google - **Source Type**: Closed Source Model - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.ai/generations/66bf9425-5954-41fa-aab7-36946b316d76.webp` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v7/voice/music-gen` - **Method**: POST ### Parameters - **`prompt`** (required): Prompt for generating audio - Type: textarea - **`model_id`** (optional): Model - Type: text - **`init_image`** (required): Add your reference image - Type: file ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/voice/music-gen \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "lyria-3", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights", "init_image": "https://assets.modelslab.ai/generations/9c2b6fa0-0a2a-49f1-b6f4-367203e05afc.webp" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/voice/music-gen", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "lyria-3", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights", "init_image": "https://assets.modelslab.ai/generations/9c2b6fa0-0a2a-49f1-b6f4-367203e05afc.webp" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/voice/music-gen", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "lyria-3", "prompt": "An upbeat Afrobeat song with energetic percussion, groovy bassline, and rhythmic guitar riffs. The vocals are clear and uplifting, with lyrics about dancing together, freedom, and feeling alive under the city lights", "init_image": "https://assets.modelslab.ai/generations/9c2b6fa0-0a2a-49f1-b6f4-367203e05afc.webp" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Integration Options ### CLI Install: `curl -fsSL https://modelslab.sh/install.sh | sh` or `brew install modelslab/tap/modelslab` ```bash modelslab auth login # Authenticate modelslab models search "lyria-3" # Find this model modelslab models detail --id lyria-3 # Get model details modelslab generate image --prompt "..." --model lyria-3 # Generate with model modelslab config set generation.default_model lyria-3 # Set as default ``` - Website: https://modelslab.sh - GitHub: https://github.com/ModelsLab/modelslab-cli ### MCP Servers (Model Context Protocol) For Claude Code, Cursor, VS Code, Windsurf, and any MCP-compatible agent. - Generation: `https://modelslab.com/mcp/v7` (API key auth, 23 tools) - Agent Control Plane: `https://modelslab.com/mcp/agents` (Bearer token auth, 10 tools) Claude Code config (`~/.claude/settings.json`): ```json { "mcpServers": { "modelslab-v7": { "url": "https://modelslab.com/mcp/v7", "headers": { "Authorization": "Bearer YOUR_API_KEY" } } } } ``` - Documentation: https://docs.modelslab.com/mcp-web-api/overview ### Agent Skills Install skill files directly into AI coding agents: ```bash npx skills add modelslab/skills --all # All skills npx skills add modelslab/skills --skill image-generation # Specific skill npx skills add modelslab/skills --all -a claude-code -a cursor # Target agents ``` - GitHub: https://github.com/ModelsLab/skills - Documentation: https://docs.modelslab.com/agent-skills ### SDKs - Python: `pip install modelslab` - TypeScript: `npm install modelslab` - PHP: `composer require modelslab/modelslab` - Go: `go get github.com/modelslab/modelslab-go` - Dart: `dart pub add modelslab` ## Links - [Model Playground](https://modelslab-frontend-v2-927501783998.us-east4.run.app/models/lyria-3/lyria-3) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)