Generate Lyrics

Overview

Our API allows you to generate lyrics and a title for your song. These lyrics can be used as the prompt property in custom song generation.

Example

const main = async () => {
  const prompt = `A song about the future.`;
  const { id } = await fetch('https://api.aimlapi.com/v2/generate/audio/suno-ai/lyric', {
    method: 'POST',
    headers: {
      Authorization: 'Bearer my_key',
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({
      prompt,
    }),
  }).then((res) => res.json());

  console.log('Generated lyric id:', id);
};

main();

This request will return a generated lyrics ID. To fetch the actual lyrics data, you need to retrieve it using this ID.

Fetch Lyrics

Last updated