Source: https://ailoot.ai/models/en/google-lyria-3-clip-preview/
Canonical: https://ailoot.ai/models/en/google-lyria-3-clip-preview/
Language: en

# Lyria 3 Clip Preview

[Markdown](https://ailoot.ai/models/en/google-lyria-3-clip-preview/index.md) · [JSON](https://ailoot.ai/models/en/google-lyria-3-clip-preview/facts.json)

## [Lyria 3 Clip Preview](https://ailoot.ai/models/en/google-lyria-3-clip-preview/)

Lyria 3 Clip Preview is Google’s music model for short clips, loops and previews. It takes text or image inspiration and produces 30-second music with 48 kHz stereo audio, supporting vocals, timed lyrics and instrumental arrangements.

- [**Ailoot · Music** `POST /v1/music/generations` `google/lyria-3-clip-preview`](https://ailoot.ai/models/en/google-lyria-3-clip-preview/#method-0)

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Lyria 3 Clip Preview is Google’s music-generation profile for short clips, loops and previews. It accepts a text prompt or image inspiration and returns text and audio. The published profile describes 30-second clips with 48 kHz stereo audio, including vocals, timed lyrics and full instrumental arrangements.

#### Describe the musical moment

Name the purpose of the clip and the mood it should carry. A short opening theme can specify a restrained introduction and a clear arrival; a background cue can identify the pace and texture needed beneath a visual scene. State whether the result should feature vocals or be instrumental, and name the musical elements that matter to the brief.

Keep the structure small enough for the clip. Identify the opening, the main phrase and the ending or loop point. If words matter, provide the intended lyrical idea or wording and inspect the actual sung result. The musical brief should distinguish the vocal content from directions about the arrangement.

#### Image inspiration and arrangement

When supplying an image, explain which scene or mood it contributes to the music request. A calm landscape and a crowded night scene suggest different directions, but the desired emotional role should still be explicit in the text. Keep the image with the prompt when comparing the returned clip with the intended concept.

Review the balance between vocals, instruments and the main musical phrase. For a loop, listen through the end and beginning together; for a preview, check whether the short duration communicates the intended direction. A clip that accompanies an edit should be reviewed against that edit rather than only in isolation.

#### Retain the listening artifact

Save the actual audio and any accompanying text with the brief. Inspect its file properties when preparing playback or importing it into an editor, and preserve any lyric or timing information returned by the request. The music is the model’s output; cuts, titles, visual transitions and a final production mix can be arranged around that inspected asset.

This exact Clip Preview profile is suited to a compact musical deliverable. Keep its short-form role distinct when planning a longer composition, and choose the returned clip by listening to the complete phrase, vocal wording and ending.

**Ailoot · Music** `POST /v1/music/generations` `google/lyria-3-clip-preview`

[`google/lyria-3-clip-preview`](https://ailoot.ai/models/en/#m=google%2Flyria-3-clip-preview&route=Core&caller=google%2Flyria-3-clip-preview&fmt=music)

Google /`google/lyria-3-clip-preview`

### Overview

Lyria 3 Clip Preview is Google’s music model for short clips, loops and previews. It takes text or image inspiration and produces 30-second music with 48 kHz stereo audio, supporting vocals, timed lyrics and instrumental arrangements.

Accepted inputs

Text

Results

music

### Available in Ailoot · inputs & methods

**Ailoot · Music** `POST /v1/music/generations`

Input types

`text`

Output types

`music`

Output format

complete owned audio clips / JSON links

| Field | Type | Requirement | Values & limits | Default |
| --- | --- | --- | --- | --- |
| Field`model` | Type`string` | RequirementRequired | Values & limits google/lyria-3-clip-preview | Default— |
| Field`prompt` | Type`string` | RequirementRequired | Values & limits Minimum length: 1 | Default— |

Input material combinations

**text\_to\_music** · Required: prompt

Method parameters and lifecycle

| Parameter | Contract |
| --- | --- |
| Parameter`material_types` | Contracttext |
| Parameter`required` | Contractnull |
| Parameter`optional_controls` | Contractnull |

Lifecycle: `synchronous_result_then_owned_library`

`GET /v1/media/tasks/{task_id}` · actual returned task\_id or media library record

`GET /v1/media/assets/{asset_id}/content`

`GET /v1/media/assets`

`GET /v1/media/assets/{asset_id}`

Method shapes and IDs are exact; supplier capability is separate from admission.

### Pricing

#### Ailoot method rates

Output

$0.04 *per clip*

Reference only · not added

$0.04 *per request*

Delivered clips × base clip rate. The per-request reference is not added. Examples are before applicable adjustments.

`1 × $0.04 = $0.04`

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. [How reservation and settlement work →](https://ailoot.ai/docs/en/billing/reserve/)

#### Reference tariff details

Model-level reference schedules do not change method selection, quotes or charges. Active charges use the selected Ailoot method rates.

Model reference schedules

#### Prices by configuration

| Configuration | Service tier | Context condition | Charge |
| --- | --- | --- | --- |
| ConfigurationUltra | Service tierstandard | Context condition{} | Charge Output · music **$0.08** per song |

### Example requests

#### Ailoot · Music

Music example

```bash
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_PROMPT_FILE:?Set your actual UTF-8 music brief}"
export AILOOT_PROMPT_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
p=json.loads('{"model": "google/lyria-3-clip-preview", "prompt": ""}')
f=Path(os.environ["AILOOT_PROMPT_FILE"])
if not f.is_file():raise SystemExit("Choose your actual UTF-8 brief")
p['prompt']=f.read_text(encoding="utf-8")
if not p['prompt'].strip():raise SystemExit("Brief must contain text")
Path("request.json").write_text(json.dumps(p,ensure_ascii=False))
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/music/generations \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o result.json
export AILOOT_API_KEY
python3 - <<'PY_RESULT'
import json, os, subprocess
from pathlib import Path
from urllib.parse import urljoin, urlparse
result=json.loads(Path("result.json").read_text(encoding="utf-8"))
print(json.dumps(result,ensure_ascii=False,indent=2))
for number,clip in enumerate(result.get("data") or []):
    u=urlparse(urljoin("https://api.ailoot.ai",clip["url"]))
    if u.scheme!="https" or not u.hostname or u.username or u.password:
        raise SystemExit("Result URL must be HTTPS without embedded credentials")
    owned=u.netloc=="api.ailoot.ai" and u.path.startswith("/v1/media/assets/") and u.path.endswith("/content")
    args=["curl","--fail-with-body","--silent","--show-error",u.geturl()]
    if owned: args += ["-H","Authorization: Bearer "+os.environ["AILOOT_API_KEY"]]
    raw=subprocess.check_output(args)
    ext="wav" if raw.startswith(b"RIFF") and raw[8:12]==b"WAVE" else "flac" if raw.startswith(b"fLaC") else "ogg" if raw.startswith(b"OggS") else "mp3" if raw.startswith(b"ID3") or raw[:1]==b"\xff" else "bin"
    f=Path("music-"+str(number)+"."+ext);f.write_bytes(raw)
    print("Saved",f,clip.get("asset_id"))

PY_RESULT
```

### Receive and save results

#### Ailoot · Music

complete owned audio clips / JSON links

- `GET /v1/media/tasks/{task_id}`
- `GET /v1/media/assets/{asset_id}/content`
- `GET /v1/media/assets`
- `GET /v1/media/assets/{asset_id}`

##### Keep all completed results

Keep every complete returned response, file and content part.

Save/fetch every returned clip and preserve actual ID, MIME and metadata. The method is synchronous; no separate Ailoot music generationpollingURL is introduced.

##### If the original response needs checking

If a music result requires a check, keep the original operation\_id/X-Client-Request-ID and returned clip information. Recover existing owned clips through the media library using actual task\_id or asset\_id values. Do not resubmit the music request or construct a generation polling URL from operation\_id.

Response fields

| Field | Type |
| --- | --- |
| Field`model` | Typestring |
| Field`response_id` | Typestring |
| Field`data[]` | Typeowned clip record |

Errors and next steps

| Response | Condition | Next step |
| --- | --- | --- |
| Response400 · `invalid_request_error` | ConditionInvalid required fields, material representation or parameter value | Next stepCorrect the indicated fields before a new creation request. |
| Response`server_error` | ConditionThe returned response says the operation or result requires a check | Next stepKeep the original returned operation/task ID, request headers and response; continue supported reads of that original operation. Do not resubmit the creation request. |

### Aliases

#### Model aliases

**Ailoot** [`google/lyria-3-clip-preview`](https://ailoot.ai/models/en/#m=google%2Flyria-3-clip-preview&route=Core&caller=google%2Flyria-3-clip-preview&fmt=music)

#### Method path aliases

Use the method paths shown above.

#### Related caller IDs

[`google/lyria-3-clip-preview`](https://ailoot.ai/models/en/#m=google%2Flyria-3-clip-preview&route=Core&caller=google%2Flyria-3-clip-preview&fmt=music)

FAQ · Lyria 3 Clip Preview

What inputs and results are available?

`POST /v1/music/generations` · `google/lyria-3-clip-preview`: `text` → `music`

Which fields does the request use?

`POST /v1/music/generations` · `google/lyria-3-clip-preview`: `model`, `prompt`

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

## The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

## Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription

Choose a discounted plan for your regular requests.

Promo code: up to 50% off

Enter your code at checkout. The price updates to reflect the current promotion.

Spending in your history

The model, tokens and amount are recorded for each request.

[Choose a subscription](https://ailoot.ai/docs/en/billing/subscriptions/) · [View model prices](https://ailoot.ai/models/en/)

## Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application

Add text, image, video and audio generation to paid features in your service.

Reseller licence

Send a description of your project and how you provide access. Request written terms for use and resale.

Documents on the website

The service offer, licence agreement and data processing policy are available before you connect.

[Request a reseller licence](mailto:support@ailoot.ai) · [Service offer and licence agreement](https://ailoot.ai/legal/offer?lang=en)

## Ailoot · The company and its project portfolio





Ailoot combines established operating experience, a large client base, stable service and ongoing KPI control.





The company and its project portfolio: millions of customers; monthly sales in the billions.





Ailoot brings that operating experience to API access for AI features in customer products, agents, applications and automations.
