# MiniMax Lyrics Generation — Atlas Cloud API

> MiniMax Lyrics Generation is a dedicated lyric-writing model that turns a one-line theme into a complete, professionally structured set of song lyrics - title, style tags, and sections marked with [Verse]/[Chorus] structure tags - and can also edit, continue, or restructure existing lyrics, with output directly usable as the lyrics input of MiniMax's music models.

This is the machine-readable API reference for **MiniMax Lyrics Generation** on Atlas Cloud,
a unified API platform for 400+ AI models across text, image, video, audio and 3D.

- **Model ID**: `minimax/lyrics-generation`
- **Built by**: MiniMax
- **Modality**: Audio
- **Model page**: https://www.atlascloud.ai/models/minimax/lyrics-generation
- **API key**: https://www.atlascloud.ai/console/api-keys
- **Docs**: https://www.atlascloud.ai/docs

## Pricing on Atlas Cloud

- $0.01 per generation
- Pay-as-you-go. No minimum spend, no subscription required.

> **These are the authoritative Atlas Cloud rates for this model.** Any price that
> appears in the vendor description further down refers to a different platform or
> a different model variant and does not apply here.

## Use this model from an AI agent

Atlas Cloud ships three first-party integration surfaces. All three authenticate
with the same API key via the `ATLASCLOUD_API_KEY` environment variable.

### MCP server

The official MCP server (`atlascloud-mcp`) exposes this model to any
MCP-compatible host — Claude Code, OpenAI Codex, Cursor, Gemini CLI, Goose,
Claude Desktop. One-line install:

```bash
# Claude Code
claude mcp add atlascloud -- npx -y atlascloud-mcp

# OpenAI Codex CLI
codex mcp add atlascloud -- npx -y atlascloud-mcp

# Gemini CLI
gemini mcp add atlascloud -- npx -y atlascloud-mcp

export ATLASCLOUD_API_KEY="your-api-key"
```

Then ask in plain English; the agent calls `atlas_generate_audio` with `model: "minimax/lyrics-generation"`.
The server fetches each model's schema and validates parameters before submitting,
so invalid requests fail fast without spending credits.

MCP docs: https://www.atlascloud.ai/docs/mcp-server

### Agent Skills

`atlas-cloud-skills` is a portable skill package (API reference, code templates in
Python / Node.js / cURL, model IDs with pricing) for Claude Code, Cursor, Codex and
12+ other agents:

```bash
npx skills add AtlasCloudAI/atlas-cloud-skills
export ATLASCLOUD_API_KEY="your-api-key"
```

Skills docs: https://www.atlascloud.ai/docs/skills

### CLI

The `atlas` binary runs Atlas Cloud from a terminal or CI script. Async media jobs
are polled and downloaded automatically (use `--no-download` when a script only
needs the output URLs):

```bash
# Install (Homebrew, npm, or shell installer)
brew install AtlasCloudAI/tap/atlascloud
# npm install -g atlascloud-cli
# curl -fsSL https://raw.githubusercontent.com/AtlasCloudAI/cli/main/install.sh | sh

atlas auth login
atlas models get minimax/lyrics-generation --json
```

CLI docs: https://www.atlascloud.ai/docs/cli

## HTTP API reference

- **Submit endpoint (POST)**: `https://api.atlascloud.ai/api/v1/model/generateAudio` — start an async generation; returns a `prediction_id`
- **Poll endpoint (GET)**: `https://api.atlascloud.ai/api/v1/model/prediction/{prediction_id}` — poll this until the prediction finishes
- **Model ID**: `minimax/lyrics-generation`


## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:

- **`model`** (`string`, _required_):
  Model name.
  - Default: `"minimax/lyrics-generation"`

- **`mode`** (`string`, _required_):
  Generation mode. write_full_song creates a complete new set of lyrics from the prompt; edit rewrites, continues or modifies the lyrics supplied in the lyrics field.
  - Default: `"write_full_song"`
  - Options: "write_full_song", "edit"

- **`prompt`** (`string`, _required_):
  Song theme, style or editing instruction, e.g. "a lighthearted summer beach pop song about a seaside promise". Max 2000 chars. If left empty, a random song is generated.
  - Default: `""`

- **`lyrics`** (`string`, _optional_):
  Existing lyrics to continue or modify. Required when mode is edit, and must be left empty when mode is write_full_song, where the model writes the lyrics from scratch. Separate lines with a newline; supports section structure tags on their own line (e.g. [Verse], [Chorus]) to mark the arrangement of the song. Max 3500 chars.
  - Default: `""`

- **`title`** (`string`, _optional_):
  Song title. When provided, the generated result keeps this title unchanged.
  - Default: `""`

- **`enable_sync_mode`** (`boolean`, _optional_):
  If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
  - Default: `false`



**Required Parameters Example**:

```json
{
  "model": "minimax/lyrics-generation",
  "mode": "write_full_song",
  "prompt": ""
}
```


**Full Example**:

```json
{
  "model": "minimax/lyrics-generation",
  "mode": "write_full_song",
  "prompt": "",
  "lyrics": "",
  "title": "",
  "enable_sync_mode": false
}
```


### Output Schema

The API returns the following output format:


- **`code`** (`integer`, _optional_):
  HTTP status code of the response.

- **`message`** (`string`, _optional_):
  Human-readable message; non-empty on failure.

- **`data`** (`object`, _optional_):
  - Properties:
    - **`id`** (`string`, _optional_):
      Unique identifier for the prediction.

    - **`model`** (`string`, _optional_):
      Model ID used for the prediction.

    - **`outputs`** (`array[string]`, _optional_):
      Array of URLs to the generated content. Null when status is not completed.

    - **`lyrics_result`** (`object`, _optional_):
      The generated lyrics result. Null when status is not completed.
      - Properties:
        - **`song_title`** (`string`, _optional_):
          Generated song title. If title was provided in the request, it is preserved, e.g. "Summer Breeze Promise".

        - **`style_tags`** (`array[string]`, _optional_):
          Style tags describing the song, e.g. ["Pop", "Summer Vibe", "Romance", "Lighthearted", "Beach Pop"].

        - **`lyrics`** (`string`, _optional_):
          Generated lyrics, with lines separated by newlines and sections marked by structure tags such as [Intro], [Verse], [Pre Chorus], [Chorus], [Bridge] and [Outro]. Directly compatible with the lyrics field of the music generation models.


    - **`urls`** (`object`, _optional_):
      Object containing related API endpoints.
      - Properties:
        - **`get`** (`string`, _optional_):
          URL to poll for the prediction result.


    - **`status`** (`string`, _optional_):
      Status of the task: created, processing, completed, timeout, or failed.

    - **`created_at`** (`string`, _optional_):
      ISO timestamp of when the request was created (e.g., "2023-04-01T12:34:56.789Z").

    - **`error`** (`string`, _optional_):
      Error message if the task failed, empty string otherwise.

    - **`error_code`** (`integer`, _optional_):
      Error code if the task failed.

    - **`executionTime`** (`number`, _optional_):
      Total execution time in milliseconds.

    - **`timings`** (`object`, _optional_):
      Detailed timing breakdown.
      - Properties:
        - **`inference`** (`number`, _optional_):
          Inference time in milliseconds.





**Example Response**:

```json
{
  "code": 0,
  "message": "",
  "data": {
    "id": "",
    "model": "",
    "outputs": [
      ""
    ],
    "lyrics_result": {
      "song_title": "",
      "style_tags": [
        ""
      ],
      "lyrics": ""
    },
    "urls": {
      "get": ""
    },
    "status": "",
    "created_at": "",
    "error": "",
    "error_code": 0,
    "executionTime": 0,
    "timings": {
      "inference": 0
    }
  }
}
```


## Usage Examples

### cURL

```bash
# Step 1: Start generation (async)
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateAudio" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/lyrics-generation",
  "mode": "write_full_song",
  "prompt": "",
  "lyrics": "",
  "title": "",
  "enable_sync_mode": false
}'

# Response will contain: {"code": 200, "data": {"id": "prediction_id", "status": "processing"}}

# Step 2: Poll for result (replace {prediction_id} with the id returned above)
curl -X GET "https://api.atlascloud.ai/api/v1/model/prediction/{prediction_id}" \
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY"

# Keep polling until status is "completed", "succeeded" or "failed"
# When completed, outputs will contain the generated content URL(s)
```

## Additional Resources

### Documentation

- [Model Playground](https://www.atlascloud.ai/models/minimax/lyrics-generation)

## About this model

_Vendor-supplied description. Any pricing or endpoint mentioned below refers to_
_other platforms — use the Atlas Cloud values above._

### MiniMax Lyrics Generation

**Developer:** MiniMax
**Model ID:** `minimax/lyrics-generation`

#### Overview

MiniMax Lyrics Generation is a dedicated lyric-writing model that turns a one-line theme into a **complete, professionally structured set of song lyrics**. It does not just produce verse text: each result arrives with a song title, a set of style tags describing the intended genre and mood, and lyrics already segmented into named sections — `[Intro]`, `[Verse]`, `[Pre Chorus]`, `[Chorus]`, `[Bridge]`, `[Outro]` and more.

That structure is the point. The section tags this model emits are the same tags MiniMax's music models read to control arrangement, so its output can be passed straight into `minimax/music-3.0` as the `lyrics` input with no reformatting. The two models together form the standard two-step songwriting workflow: write the words, review or edit them, then compose the track.

Beyond writing from scratch, the model also works as a lyric editor — give it existing lyrics and an instruction, and it will rewrite, extend, or restructure them while keeping the parts you want intact.

#### How It Works

The model operates in one of two modes, selected by the `mode` parameter.

##### Write Full Song

In `write_full_song` mode, the `prompt` describes the song you want — theme, style, mood, scenario — and the model composes an entire lyric sheet from nothing. It decides the arrangement, writes each section, keeps the rhyme scheme and line lengths singable, and maintains a coherent narrative and emotional arc from opening to close. The `lyrics` field must be left empty in this mode.

If the `prompt` is left empty as well, the model generates a random song rather than failing — useful for ideation or sampling.

##### Edit Existing Lyrics

_(Description truncated. Full text on the model page.)_

---

Atlas Cloud — one API for 400+ AI models. Model page: https://www.atlascloud.ai/models/minimax/lyrics-generation · Docs: https://www.atlascloud.ai/docs
