MixMedia API
RUEN
API keys Sign inTry it
Open as Markdown
← Try it on the website

Suno

Suno · ~1.5 min
$0.09per picture

Songs with vocals and music from a description or your own lyrics. Two tracks per run, MP3.

·

Suno V6 is the main Suno model: natural vocals, rich arrangements and expressive music. Describe a song and the lyrics are written for you, or turn on «Own lyrics and style» to set the words, title, genre, voice and length (up to 6 minutes). Each run gives two different tracks in MP3. Price per run.

ID: suno-v6 · $0.09 per run (2 MP3 tracks) · ~1.5 min

Parameters (field input). Settings other than prompt, custom_mode and instrumental apply when custom_mode=true.

FieldTypeValuesDescription
versionstringv6, v6-wild, v6-mini, v5.5, v5, v4.5-plus, v4.5-all, v4.5, v4Version: v6 (default), v6-wild, v6-mini, v5.5, v5, v4.5-plus, v4.5-all, v4.5, v4. Same price
promptstringup to 5000 charscustom_mode=false: what the song is about (up to 3000 characters), lyrics are written for you. custom_mode=true: your lyrics (up to 5000), [Verse]/[Chorus] tags allowed
custom_modebooleanfalsetrue — your own lyrics and the settings below (title required)
instrumentalbooleanfalsetrue — no vocals
titlestringup to 80 charsTitle, up to 80 characters (custom_mode=true)
stylestringup to 1000 charsGenre, instruments, mood, up to 1000 characters
negative_tagsstringup to 1000 charsWhat to avoid in the sound
vocal_genderstringauto, female, maleVoice: female, male or auto
durationstringauto, 10…360Target length, 10–360 s or auto
varietystringauto, off, normal, high, extra, maxVariety of the results
style_weightstringauto, 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 10–1: how strictly to follow the style
weirdness_constraintstringauto, 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 10–1: boldness
audio_weightstringauto, 0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 10–1: sound weight (not for instrumental)

Example: a song from a description

curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"suno-v6","input":{"prompt":"A cheerful birthday song for mum Olga, pop, female vocal"}}'
import os, requests

r = requests.post(
    "https://mixmedia.tech/api/v1/jobs/createTask",
    headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
    json={
      "model": "suno-v6",
      "input": {
        "prompt": "A cheerful birthday song for mum Olga, pop, female vocal"
      }
    },
)
print(r.json())  # {"code": 200, "data": {"taskId": "..."}}
const r = await fetch("https://mixmedia.tech/api/v1/jobs/createTask", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "suno-v6",
    "input": {
      "prompt": "A cheerful birthday song for mum Olga, pop, female vocal"
    }
  }),
});
console.log(await r.json()); // { code: 200, data: { taskId: "..." } }

Example: your own lyrics

curl -X POST https://mixmedia.tech/api/v1/jobs/createTask \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"suno-v6","input":{"custom_mode":true,"title":"Summer evening","prompt":"[Verse]\nWarm wind, the sea is near\n[Chorus]\nSummer evening, you are here","style":"acoustic pop, guitar, warm","vocal_gender":"female","duration":"120"}}'
import os, requests

r = requests.post(
    "https://mixmedia.tech/api/v1/jobs/createTask",
    headers={"Authorization": f"Bearer {os.environ['API_KEY']}"},
    json={
      "model": "suno-v6",
      "input": {
        "custom_mode": True,
        "title": "Summer evening",
        "prompt": "[Verse]\nWarm wind, the sea is near\n[Chorus]\nSummer evening, you are here",
        "style": "acoustic pop, guitar, warm",
        "vocal_gender": "female",
        "duration": "120"
      }
    },
)
print(r.json())  # {"code": 200, "data": {"taskId": "..."}}
const r = await fetch("https://mixmedia.tech/api/v1/jobs/createTask", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    "model": "suno-v6",
    "input": {
      "custom_mode": true,
      "title": "Summer evening",
      "prompt": "[Verse]\nWarm wind, the sea is near\n[Chorus]\nSummer evening, you are here",
      "style": "acoustic pop, guitar, warm",
      "vocal_gender": "female",
      "duration": "120"
    }
  }),
});
console.log(await r.json()); // { code: 200, data: { taskId: "..." } }

Price

$0.09 per run — the answer always has two different tracks. Parameters (length, style, lyrics) do not change the price. A failure is refunded in full.

Result

Same as any task: call recordInfo or receive a callback. Links to the two MP3 tracks are in resultJson.resultUrls (kept for 24 hours).

Error handling

API responses are JSON {"code", "msg", "data"}; errors also have a string error field (type). On /api/v1/* the HTTP status matches body code.

Example response bodies

400

{
  "code": 400,
  "msg": "input.duration: must be between 4 and 30, or \"auto\" / -1",
  "data": null,
  "error": "invalid_request_error"
}

401

{
  "code": 401,
  "msg": "Authentication failed. Please check your API key",
  "data": null,
  "error": "authentication_error"
}

402

{
  "code": 402,
  "msg": "Insufficient balance. Please top up and try again. Available: $0.01, required: $0.015. Top up at https://mixmedia.tech/cabinet/billing",
  "data": {
    "balance": "0.0100",
    "required": "0.0150",
    "currency": "USD",
    "topUpUrl": "https://mixmedia.tech/cabinet/billing"
  },
  "error": "payment_required"
}

429

{
  "code": 429,
  "msg": "Rate limit exceeded: 10 createTask/upload requests per 10 s per key. Retry after 8s",
  "data": null,
  "error": "rate_limit_error"
}

500

{
  "code": 500,
  "msg": "Internal server error",
  "data": null,
  "error": "server_error"
}

Codes on createTask / upload

codeerrorMeaningWhat to do
400invalid_request_errorInvalid parameter or bodySee msg
400unsupported_modelUnknown modelModel list
401authentication_errorMissing or invalid keyCheck the key
402payment_requiredNot enough balanceTop up
403permission_errorNo accessContact support
429rate_limit_errorToo many requestsWait for Retry-After
505model_disabledModel temporarily disabledPick another
500server_errorOur failureRetry later

Example msg values: Authentication failed. Please check your API key (401); Insufficient balance. Please top up and try again… (402).

Task errors (recordInfo)

If the task was created and then failed: state: "fail" (alias status: "failed"), failCode / failMsg, and error: { code, message, type }. Money is refunded (refunded: true).

failCodeerror.typeMeaning
400nsfw_content_detected / invalid_request_errorModeration — failMsg is upstream text verbatim
422invalid_request_errorThe model rejected the parameters (e.g. a photo could not be downloaded)
501server_errorThe model could not generate (failMsg)
504timeout_errorTimed out — retry
500 / 503server_errorService temporarily unavailable

Rate limits

WhatLimit
createTask and upload20 per 10 s per key
recordInfo / list / balance100 per 10 s per key

Over the limit — HTTP 429 and Retry-After.

Try the same models on the website or see prices.

© 2026 MixMedia