Skip to content

Lyria 3.5

Integrate

Model id google/lyria-3.5
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/google/lyria-3.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

This request: $0.10 100 API credits Run it on this page

Get API key
Google Text to Music #music#text-to-music#speech

Text-to-music that returns an MP3 and lyrics, with optional image as mood inspiration

Google · Audio

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 5000

Describe the music to generate; Lyria 3.5 can create full-length songs lasting up to a few minutes. Supported languages are Japanese, Korean, Hindi, Portuguese, French, Spanish, German, and English. For best results, specify instrumentation, vocals, genre, structure, mood, and tempo. Control length through duration hints such as 'a 2-minute track' or timestamped sections such as '[0:00-0:30] Intro: ...' / '[0:30-1:00] Verse: ...'.

Advanced negative_prompt · image · enable_safety_checker
default

Negative prompts are unsupported in Lyria 3.5.

image_url
Drop a file, or

Optional URL of an image that inspires the generated music, guiding its mood and theme.

POST /run/google/lyria-3.5?wait=20 quote → $0.10
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/google/lyria-3.5?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Lyria 3.5

Composes music from a prompt of up to 5000 characters describing genre, mood, instrumentation, tempo, vocals and structure. An optional `image_url` provides visual inspiration for the mood. The result is an MP3 file plus lyrics where applicable. Negative prompts are not supported.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 5,000 characters
Describe the music to generate; Lyria 3.5 can create full-length songs lasting up to a few minutes. Supported languages are Japanese, Korean, Hindi, Portuguese, French, Spanish, German, and English. For best results, specify instrumentation, vocals, genre, structure, mood, and tempo. Control length through duration hints such as 'a 2-minute track' or timestamped sections such as '[0:00-0:30] Intro: ...' / '[0:30-1:00] Verse: ...'.
negative_promptoptional
Typestring
Default
Negative prompts are unsupported in Lyria 3.5.
image_urloptional image
Typeurl · image
Optional URL of an image that inspires the generated music, guiding its mood and theme.
enable_safety_checkeroptional
Typeboolean
Defaulttrue
Screening can be relaxed by setting false, provided the caller is authorized.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "google/lyria-3.5",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 100,
    "usd": "0.10",
    "charged": 100,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    },
    "lyrics": "[[A0]]\n[[B1]]\n[12.0:] Dust motes dancing in the light,\n[:] Morning breaks so soft and white."
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
audio
object {url, content_type, file_name, file_size}Music output in MP3 format.
lyrics
string | nullTrack lyrics, either generated or supplied, when applicable.

More models: Text to Music

For AI agents: this page as Markdown is at https://doitong.com/developers/models/google/lyria-3.5.md. All models and guides: https://doitong.com/developers/llms.txt