# Sonilo V1.1 Text-to-Music — Atlas Cloud API

> Sonilo V1.1 composes licensed, commercial-use-safe music from a text prompt, with control over style, mood, instrumentation and exact length from 1 second to 10 minutes, and up to 3 tracks per request.

This is the machine-readable API reference for **Sonilo V1.1 Text-to-Music** on Atlas Cloud,
a unified API platform with a catalog of 600+ models across text, image, video, audio and 3D.

- **Model ID**: `sonilo/v1.1/text-to-music`
- **Built by**: SONILO
- **Modality**: Audio
- **Model page**: https://www.atlascloud.ai/models/sonilo/v1.1/text-to-music
- **API key**: https://www.atlascloud.ai/console/api-keys
- **Docs**: https://www.atlascloud.ai/docs

## Pricing on Atlas Cloud

- $0.003 per second of generated video
- 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: "sonilo/v1.1/text-to-music"`.
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 sonilo/v1.1/text-to-music --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**: `sonilo/v1.1/text-to-music`


## 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: `"sonilo/v1.1/text-to-music"`

- **`prompt`** (`string`, _required_):
  Describe the music: genre, mood, instrumentation, tempo, structure.

- **`duration`** (`integer`, _optional_):
  Length of each track in seconds, 1–600. Each track is billed for at least 10 seconds.
  - Default: `90`
  - Min: 1
  - Max: 600

- **`num_samples`** (`integer`, _optional_):
  Number of distinct tracks to generate, 1–3. Each is billed separately and returned as its own output.
  - Default: `1`
  - Min: 1
  - Max: 3



**Required Parameters Example**:

```json
{
  "model": "sonilo/v1.1/text-to-music",
  "prompt": ""
}
```


**Full Example**:

```json
{
  "model": "sonilo/v1.1/text-to-music",
  "prompt": "",
  "duration": 90,
  "num_samples": 1
}
```


### Output Schema

The API returns the following output format:


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

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

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

- **`outputs`** (`array[string]`, _optional_):
  Array of URLs to the generated music tracks (AAC/M4A), one per sample.

- **`created_at`** (`string`, _optional_):
  ISO timestamp of when the request was created.

- **`urls`** (`object`, _optional_):
  Object containing related API endpoints.



**Example Response**:

```json
{
  "id": "",
  "model": "",
  "status": "",
  "outputs": [
    ""
  ],
  "created_at": "",
  "urls": {}
}
```


## 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": "sonilo/v1.1/text-to-music",
  "prompt": "",
  "duration": 90,
  "num_samples": 1
}'

# 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/sonilo/v1.1/text-to-music)

## About this model

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

### Sonilo V1.1 Text-to-Music

**Sonilo V1.1 Text-to-Music** composes original music from a text prompt. Describe the genre, mood, instrumentation and pacing, set the exact length from 1 second to 10 minutes, and get up to three different tracks per request. Sonilo trains on professionally licensed catalogs and says its output is cleared for commercial use.

#### Why Choose This?

- **Exact length.** Any duration from 1 to 600 seconds, no trimming needed.
- **Variations.** Up to 3 distinct tracks per request with `num_samples`.
- **Commercial use.** Built on licensed catalogs, so the music can go into ads, videos and products.

#### Parameters

| Parameter | Required | Description |
| --- | --- | --- |
| model | Yes | `sonilo/v1.1/text-to-music` |
| prompt | Yes | Description of the music: genre, mood, instruments, tempo. |
| duration | No | Length of each track in seconds, integer 1–600. Default `90`. |
| num_samples | No | Number of tracks, 1–3. Default `1`. |

#### Pricing

**$0.00275 per second of music, per sample**, rounded up to whole seconds, with a 10-second minimum per sample. The default 90-second track costs 90 × $0.00275 = $0.2475; three 30-second tracks cost 3 × 30 × $0.00275 = $0.2475; a 4-second track bills as 10 seconds ($0.0275).

#### How to Use

```bash
curl -X POST "https://api.atlascloud.ai/api/v1/model/generateAudio" \
  -H "Authorization: Bearer $AIP_API_KEY" \
  -H "Content-Type: application/json" \
  --data-raw '{
    "model": "sonilo/v1.1/text-to-music",
    "prompt": "Warm lo-fi hip hop with dusty vinyl crackle, mellow Rhodes chords and a relaxed 80 BPM groove",
    "duration": 60,
    "num_samples": 1
  }'
```

Generation is asynchronous. The response contains a request `id`. Poll `GET https://api.atlascloud.ai/api/v1/model/prediction/{id}` until `status` is `completed`, then read the audio URLs from `outputs`.

#### Best Use Cases

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

---

Atlas Cloud — one API for multimodal AI. Model page: https://www.atlascloud.ai/models/sonilo/v1.1/text-to-music · Docs: https://www.atlascloud.ai/docs
