Text to Music
Generated on PixelDojo with Text to Music. Produced by PixelDojo's generation pipeline.
Text to Music costs 0.2 credits per second, billed in 5-second steps with a 6-credit floor for a 30-second track and a 60-credit cap at the 5-minute maximum. There is no extra charge for adding lyrics or for using a structured composition plan instead of a plain prompt. This page reads the exact billing formula and the two ways to drive the model straight out of the tool's own code.
How the price and the two input modes work
The exact formula
Credits equal the track length in milliseconds divided by 5,000, rounded up. A 30 second track is 6 credits, a 60 second track is 12, and the 5 minute maximum comes to 60 credits.
A hard 30 second to 5 minute window
Anything requested outside that range is clamped into it before billing, so a plan that adds up to 12 minutes is generated and charged as the 5 minute track the model can actually deliver.
Composition plans get flattened
A structured plan of global styles, per-section styles, and section lyrics is turned into one prose prompt built from those styles in order. Only the sum of the section durations sets the length; individual section boundaries are no longer pinned to specific timestamps.
Instrumental by default
force_instrumental defaults to true. Set it to false and supply lyrics, using [verse] and [chorus] tags to mark structure, to get a track that actually sings your words.
Six output formats, same price
mp3_standard is the default. You can also request mp3_high_quality or wav at 16kHz, 22kHz, 24kHz, or CD quality sample rates, at no extra credit cost.
0.2 credits a second, a 30-second floor at 6 credits, a 5-minute cap at 60 credits, read from the pricing formula itself.
Why Choose Pixel Dojo for Text to Music
Professional-quality results with cutting-edge AI technology
0.2 credits a second
One credit per 5 seconds of finished audio, the same rate whether the track is instrumental or carries lyrics.
One endpoint, two ways in
A flat prompt plus a length, or a structured composition_plan built from global and per-section styles.
Formats built in
mp3 or wav at four sample rates, chosen with a single field, no separate conversion step.
How It Works
How a Text to Music job gets priced before it runs:
Pick a length or build a plan
Set music_length_ms directly in 5-second increments, or hand it a composition_plan and let the section durations add up to the length instead.
The platform clamps and rounds the length
Whatever length results gets clamped into the 30 second to 5 minute window, then divided by 5,000 and rounded up to the whole-credit charge.
Run it in the app or over the API
From the tool page, or POST to /api/v1/models/text-to-music/run with your key. Add lyrics and set force_instrumental to false for a track that sings.
Loved by creators on PixelDojo
Real feedback from people using PixelDojo, pulled from our in-product surveys.
the amount you can do on this site
all in one place
It is a lot of fun to uae and easy too.
So many different models to try out
You keep adding to it to stay up to date and that is GOLD.
very easy to use and good support
Explore more AI tools on PixelDojo
AI Tools
Compare & Switch
- Best AI Image Generators
- Best AI Video Generators
- Midjourney Alternatives
- Civitai Alternatives
- Runway Alternatives
- Leonardo Alternatives
- Pika Alternatives
- Luma Alternatives
- Magnific Alternatives
- Veo Alternatives
- Flux Alternatives
- Freepik Alternatives
- Seedance Alternatives
- Seedream Alternatives
- Pixverse Alternatives
- GPT Image Alternatives
- Synthesia Alternatives
- Playground Alternatives
- NightCafe Alternatives
- Canva AI Alternatives
- ElevenLabs Alternatives
- ComfyUI Alternatives
- Fal Alternatives
- Replicate Alternatives
Common Questions
Everything you need to know about Text to Music
What does Text to Music cost?
0.2 credits per second of the finished track, billed in 5-second steps. A 30-second track, the minimum length, costs 6 credits. The 5-minute maximum costs 60 credits.
How is the length billed when I use a composition_plan?
The platform adds up every section's duration_ms, clamps the total into the 30-second to 5-minute window, and bills that clamped length. A plan that adds up to more than 5 minutes is generated and charged as a 5-minute track, not the longer length requested.
Can Text to Music produce vocals?
Yes, but only if force_instrumental is set to false and lyrics are supplied. Without lyrics, or with the default force_instrumental of true, the output is instrumental.
How does it differ from Text to Speech?
Text to Speech starts at 0.5 credits for a short line of narration and is priced by word count. Text to Music starts at 6 credits because it is billed by seconds of a full musical track, not by the words in a script.
Does the output format change the price?
No. mp3_standard, mp3_high_quality, and wav at 16kHz, 22kHz, 24kHz, or CD quality all cost the same for the same length.
How do I call it from the API?
POST to /api/v1/models/text-to-music/run with your API key and a prompt plus music_length_ms, or a composition_plan instead of a flat prompt.