Skip to content

音楽Use · Anime music

Anime songs for $0.0095 each.

Describe the song, add lyrics if you want them sung, and get back a full track in about a minute. Openings, ending ballads, lo-fi, battle themes. Same key and balance as your anime images and video.
$0.0095
per song, any format
526
songs for $5
~57s
to make one
1:24–4:24
song length

01Listen

Four songs made through the API for this page, unedited: one-minute excerpts, each with the prompt that made it.

  1. Opening theme

    J-rock, vocals

    1:00

    “Upbeat J-rock anime opening theme, 160 BPM, driving electric guitars, soaring female vocal, energetic and hopeful. Lyrics: [verse] Running through the neon rain, chasing every spark again [chorus] We are the light that never fades, burning bright through endless days”

    excerpt of a 3:11 song · made in 60s · $0.0095

  2. Ending ballad

    J-pop, vocals

    1:00

    “Anime ending theme, gentle J-pop ballad, 78 BPM, soft piano and strings, warm female vocal, bittersweet and hopeful. [verse] The train lights fade along the river, I keep your drawing folded small [chorus] Even when the season changes, I will find you after all”

    excerpt of a 3:56 song · made in 58s · $0.0095

  3. Lo-fi study beat

    lo-fi

    1:00

    “Lo-fi anime study beat, 80 BPM, warm Rhodes piano, soft vinyl crackle, rain on the window, mellow bass, gentle brushed drums. Instrumental.”

    excerpt of a 3:52 song · $0.0095

  4. Battle theme

    orchestral, choir

    1:00

    “Epic orchestral anime battle theme, 150 BPM, thundering taiko drums, soaring strings, brass stabs, choir chanting, rising tension into a heroic climax. Instrumental.”

    excerpt of a 1:52 song · made in 47s · $0.0095

02A soundtrack in one script

No dependencies. It starts three songs at once, waits for them and saves them into music/. As written it costs $0.0285.

soundtrack.mjs
// soundtrack.mjs · Node 18+ · run: ANIMEAPI_KEY=ank_... node soundtrack.mjs
import { mkdir, writeFile } from "node:fs/promises";

const API = "https://animeapi.ai/api/music";
const headers = { Authorization: `Bearer ${process.env.ANIMEAPI_KEY}`, "Content-Type": "application/json" };

const CUES = [
  { file: "title", prompt: "Anime opening theme, J-rock, 170 BPM, bright female vocal. [chorus] Draw me running, draw me flying" },
  { file: "town", prompt: "Gentle slice-of-life anime town theme, acoustic guitar, glockenspiel, warm and cozy. Instrumental." },
  { file: "boss", prompt: "Orchestral anime battle theme, taiko drums, fast strings, brass, choir. Instrumental." },
];

// 1. Start every song. Each is charged now and refunded if it fails.
const jobs = await Promise.all(
  CUES.map(async (cue) => {
    const res = await fetch(API, { method: "POST", headers, body: JSON.stringify({ prompt: cue.prompt, format: "mp3" }) });
    const job = await res.json();
    if (!res.ok) throw new Error(`${cue.file}: ${job.error}`);
    return { ...cue, id: job.id };
  }),
);

// 2. Wait for each one (about a minute) and save it.
await mkdir("music", { recursive: true });
for (const job of jobs) {
  let song;
  do {
    await new Promise((r) => setTimeout(r, 5000));
    song = await (await fetch(`${API}/${job.id}`, { headers })).json();
  } while (song.status === "processing");
  if (song.status === "failed") {
    console.log(`${job.file}: failed and refunded (${song.error})`);
    continue;
  }
  const audio = await fetch(song.audio_url);
  await writeFile(`music/${job.file}.mp3`, Buffer.from(await audio.arrayBuffer()));
  console.log(`music/${job.file}.mp3 · ${Math.round(song.duration)}s · $${song.cost_usd}`);
}

03Writing the prompt

04What it costs

A visual novel soundtrack

12 tracks, 3 tries each · 36 songs

$0.34 in total

A song for every chapter of a webcomic

50 songs

$0.48 in total

A bot that makes songs on request

20 songs a day

$0.19 a day · $5.70 per 30 days

An album's worth of drafts

100 songs

$0.95 in total

05Limits to know first

06Questions

Is there an API that generates anime-style music?
Yes. AnimeAPI's POST /api/music turns a prompt into a full song: an anime opening, an ending ballad, a lo-fi loop, a battle theme. $0.0095 per song, from the same key and balance as anime images and video.
How much does it cost?
$0.0095 per song in any format, charged when the song starts and refunded if it fails. $5 buys 526 songs. No subscription; the balance never expires.
Can I write my own lyrics?
Yes. Put them in the prompt after the style, with tags like [verse] and [chorus]. Ending with Instrumental usually leaves the vocals out, but not every time.
How long are the songs? Can I set the length?
Songs end on their own; there is no length setting. The ones on this page came back between 1:24 and 4:24.
How long does a song take?
About a minute: 34 to 78 seconds in our measured runs. The first song after a quiet spell can take a few minutes. You get a job id at once and poll it.
Which formats?
MP3 (192 kbps), WAV or FLAC, at the same price.