Skip to main content
Back to API Platform

Text to Music API

ACE-Step v1.5. Generate instrumental beds or full songs from a prompt, 30 seconds to 5 minutes. Integrate this model via REST with endpoint docs, parameters, and code examples.

Audio Generation
Credit Cost
6 credits
Type
Audio

API Endpoint

POST
/api/v1/models/text-to-music/run

Test This Model

Run a real request through the API pipeline and inspect the exact input and output your integration will handle. Uses your credits like any API call; failed runs are refunded automatically.

Parameters

Input parameters accepted by this model

ParameterTypeDefault
prompt
string
-
music_length_ms
integer
30000
force_instrumental
boolean
true
lyrics
string
-
respect_sections_durations
boolean
true
output_format
enum
mp3_standard

Example Outputs

Real outputs generated by this model

View Details

a thrilling action sequence of a woman trying to find her favorite candy. The candy wrapper is purple with a pixelated dragon and reads "Pixel Dojo". The woman says "Gotta have that pixel dojo candy. with over 60 ai tools, it's basically zero calories."

0 credits
0

Code Examples

Cinematic orchestral — copy and paste to get started

bash
curl -X POST "https://pixeldojo.ai/api/v1/models/text-to-music/run" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "cinematic orchestral with thunderous brass",
    "music_length_ms": 30000
  }'

Response Format

Submit Response (202 Accepted)

json
{
  "jobId": "job_abc123...",
  "status": "pending",
  "statusUrl": "https://pixeldojo.ai/api/v1/jobs/job_abc123...",
  "creditCost": 6,
  "creditsRemaining": 95,
  "expiresAt": "2026-08-29T11:45:11Z"
}

Completed Response

json
{
  "jobId": "job_abc123...",
  "status": "completed",
  "output": {
    "audio": "https://temp.pixeldojo.ai/pixeldojotemp/1705930123-456789.mp3"
  },
  "creditCost": 6,
  "expiresAt": "2026-08-29T11:45:11Z"
}