Music Generation
Producer
AI music generation using Producer (FUZZ) models.
POST /v2/music/generate — model: "producer"
Generate music tracks from sound style descriptions, optionally with custom lyrics.
See Music Generation overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
producerParams.model_version | string | "FUZZ_2_PRO" | Model version: "FUZZ_2_PRO", "FUZZ_2", "FUZZ_2_RAW", "FUZZ_1_1_PRO", "FUZZ_1_PRO", "FUZZ_1" |
producerParams.lyrics | string | — | Custom lyrics (max 5,000 characters) |
producerParams.instrumental | boolean | false | Generate instrumental only (no vocals) |
producerParams.title | string | — | Track title (max 80 characters) |
producerParams.seed | string | — | Seed for reproducibility |
producerParams.lyrics_strength | number | — | Lyrics adherence strength (0.0–1.0) |
producerParams.sound_strength | number | — | Sound style strength (0.2–1.0) |
producerParams.weirdness | number | — | Creativity/randomness level (0.0–1.0) |
Code examples
Sound-only mode (style description)
curl -X POST https://api.apiframe.ai/v2/music/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "lo-fi hip hop beat with warm vinyl crackle and mellow piano chords",
"model": "producer",
"producerParams": {
"model_version": "FUZZ_2_PRO"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/music/generate",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"prompt": "lo-fi hip hop beat with warm vinyl crackle and mellow piano chords",
"model": "producer",
"producerParams": {
"model_version": "FUZZ_2_PRO",
},
},
)
print(response.json())const response = await fetch("https://api.apiframe.ai/v2/music/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "lo-fi hip hop beat with warm vinyl crackle and mellow piano chords",
model: "producer",
producerParams: {
model_version: "FUZZ_2_PRO",
},
}),
});
console.log(await response.json());body := `{
"prompt": "lo-fi hip hop beat with warm vinyl crackle and mellow piano chords",
"model": "producer",
"producerParams": {"model_version": "FUZZ_2_PRO"}
}`
req, _ := http.NewRequest("POST", "https://api.apiframe.ai/v2/music/generate",
strings.NewReader(body))
req.Header.Set("X-API-Key", "afk_your_api_key_here")
req.Header.Set("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)Sound + lyrics mode
curl -X POST https://api.apiframe.ai/v2/music/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "indie rock with jangly guitars and driving drums",
"model": "producer",
"producerParams": {
"model_version": "FUZZ_2_PRO",
"lyrics": "[Verse 1]\nRunning through the open fields\nChasing what the morning reveals\n\n[Chorus]\nWe are the echoes of the dawn",
"title": "Echoes of Dawn"
}
}'Instrumental mode
curl -X POST https://api.apiframe.ai/v2/music/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "cinematic orchestral piece with soaring strings and timpani",
"model": "producer",
"producerParams": {
"instrumental": true,
"model_version": "FUZZ_2"
}
}'Try it
POST
/v2/music/generateTry it