Pricing
Compare models →Pricing is based on the selected duration.
Duration (duration) | Cost |
|---|---|
| 5 s | $0.025 |
| 10 s | $0.025 |
| 30 s (default) | $0.075 |
| 60 s | $0.15 |
| 120 s | $0.30 |
| 300 s | $0.75 |
| 360 s | $0.90 |
Billing Rules
- Billing is per second of the selected
duration: for a 30-secondduration, the rate is $0.0025 per second - There is a 10-second minimum charge: a
durationof 5 s costs $0.025, the same as adurationof 10 s ($0.025) - Maximum billed duration is 360 seconds: a
durationof 360 s costs $0.90 - A run with default settings (
durationof 30 s) costs $0.075 promptdoes not affect pricing
Input schema
| Parameter | Type | Description |
|---|---|---|
promptRequired | string | Text prompt describing the music style, mood, instruments, and arrangement.Characters: 1–2000JSON schema{
"x-rows": 5
} |
durationRequired | integer | Target music duration in seconds, from 5 to 360.Default: 30Minimum: 5 · Maximum: 360 |
README
Sonilo Text-to-Music
Sonilo Text-to-Music generates music directly from a natural-language prompt, with controllable output duration from 5 to 360 seconds. It is designed for background music creation, soundtrack ideation, content scoring, and other prompt-driven music generation workflows.
Why Choose This?
- Prompt-based music generation
Create music from a text description of style, mood, instrumentation, and arrangement.
- Flexible duration control
Choose the target music length from 5 to 360 seconds.
- Simple workflow
Provide a prompt, choose a duration, and generate music with minimal setup.
- Useful for many creative workflows
Suitable for videos, ads, games, social content, trailers, and prototype soundtracks.
- Production-ready API
Easy to integrate into music generation tools, creator workflows, and media pipelines.
Parameters
| Parameter | Required | Description |
|---|---|---|
| prompt | Yes | Text prompt describing the music style, mood, instruments, and arrangement. 1–2000 characters. |
| duration | Yes | Target music duration in seconds. Range: 5–360. Default: 30. |
How to Use
- Write your prompt — describe the genre, mood, instrumentation, pacing, and production feel you want.
- Set duration — choose a duration from 5 to 360 seconds.
- Submit — run the model and download the generated music.
Example Prompt
Cinematic emotional orchestral music with soft piano, warm strings, slow build, inspiring trailer mood, modern polished production
Pricing
Pricing is based on the selected duration.
Duration (duration) | Cost |
|---|---|
| 5 s | $0.025 |
| 10 s | $0.025 |
| 30 s (default) | $0.075 |
| 60 s | $0.15 |
| 120 s | $0.30 |
| 300 s | $0.75 |
| 360 s | $0.90 |
Billing Rules
- Billing is per second of the selected
duration: for a 30-secondduration, the rate is $0.0025 per second
- There is a 10-second minimum charge: a
durationof 5 s costs $0.025, the same as adurationof 10 s ($0.025)
- Maximum billed duration is 360 seconds: a
durationof 360 s costs $0.90
- A run with default settings (
durationof 30 s) costs $0.075
promptdoes not affect pricing
Best Use Cases
- Background music generation — Create music beds for videos, podcasts, and social content.
- Trailer and ad concepts — Generate soundtrack ideas for marketing or promo edits.
- Game and app audio — Produce music for interactive or ambient playback.
- Music prototyping — Explore multiple soundtrack directions quickly from prompts.
- Content production — Create original music for creator and brand workflows.
Pro Tips
- Be specific in your prompt about genre, mood, instrumentation, and pacing.
- Mention arrangement cues like intro, build, drop, chorus, or ambient bed when needed.
- Start with shorter durations to validate the musical direction before generating longer pieces.
- Use concise prompts when you want tighter control, and broader prompts when you want more interpretive results.
Notes
- Both
promptanddurationare required.
durationsupports integer values from5to360seconds.
- Pricing depends only on the selected duration.
- Longer generated music may be more suitable for trailers, background scoring, and extended content workflows.
Related Models
- Sonilo Video-to-Music — Generate music that matches an uploaded video.
- Other prompt-based music generation workflows — Useful when you want alternate music-generation styles or model behavior.
- Video sound design workflows — Useful when you need synchronized effects instead of generated music.
Catalog rates and input examples are published for reference. Contact OpenSI about access and applicable pricing.
Sonilo Text-to-Music API example
The catalog lists POST https://api.opensi.com.ai/api/v3/sonilo/text-to-music for the submission step. Confirm the endpoint and access with your supplier before sending a request.
HTTP request body
{
"prompt": "A cinematic ocean wave at sunrise, highly detailed",
"duration": 30
}Sonilo Text-to-Music API — Frequently asked questions
What is the Text To Music API?
Text To Music is a Sonilo model for music generation, exposed as a REST API on OpenSIAI. Sonilo Text-to-Music is a fast AI music generation model that creates full music tracks from text prompts with manual duration control. Ready-to-use REST inference API for AI music generation, background music, creator content, video soundtracks, advertising audio, social media content, and professional text-to-music workflows with simple integration, no coldstarts, and affordable pricing. You can call it programmatically or try it from the playground above.
How do I call the Text To Music API?
POST your input parameters to the model's REST endpoint (shown in the API tab of this playground) with your OpenSIAI API key in the Authorization header. Submission returns a prediction ID. Poll the result endpoint starting around every 2 seconds, increase the interval for long-running tasks, and stop on any terminal status. The playground generates Python, JavaScript, and cURL examples for submitting requests and polling results. Full request/response shape is documented at /docs/docs-api/sonilo/text-to-music.
How much does Text To Music cost per run or per second?
Text To Music starts at $0.0025 per run or per second. That figure is the base price — the final charge scales with the parameters you set in the form (output size, length, count, references, or whatever knobs this model exposes), so a higher-quality or larger output costs more than a minimal one. The exact cost for your current input is shown live next to the Generate button before you submit, and the actual per-call charge is recorded on the prediction afterwards.
What inputs does Text To Music accept?
Key inputs: prompt, duration. The full JSON schema (types, defaults, allowed values) is rendered above the Generate button and mirrored in the API reference at /docs/docs-api/sonilo/text-to-music.
How long does Text To Music take to generate?
Reported generation time on OpenSIAI is around 24 seconds per request. This is an estimate, not a latency guarantee; queue time and input settings can change the total wait. live status is visible in the prediction record.
Can I use Text To Music outputs commercially?
Commercial usage rights depend on the model's license, set by its provider (Sonilo). Check the provider's applicable terms and OpenSIAI's Terms of Service before commercial use.
