Neidio i'r cynnwys

Minimax Music

Integreiddio

ID y model minimax-music/v2
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/minimax-music/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Y cais hwn: $0.03 30 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
MiniMax · Sain

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

•gofynnol 88 / 2000

Anogiad cerddoriaeth o 10–300 nod. Nodwch y senario bwriadedig ynghyd â'r arddull gerddorol a'r naws.

•gofynnol 88 / 3000

Geiriau cân o 10–3000 nod, gyda n yn gwahanu llinellau. Gall marcwyr trefniant dewisol fel [Intro], [Verse], [Chorus], [Bridge], ac [Outro] wella'r strwythur.

Uwch enable_safety_checker · audio_setting

Gosodiadau ar gyfer ffurfweddu sain.

POST /run/minimax-music/v2?wait=20 dyfynbris → $0.03
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/minimax-music/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â Minimax Music

Yn creu cân o `prompt`, sy'n disgrifio arddull, naws a senario, a `lyrics_prompt`, sy'n cynnwys y geiriau gyda thagiau dewisol fel [Intro], [Verse], [Chorus], [Bridge] ac [Outro]. Gall y geiriau fod hyd at 3000 nod. Mae `audio_setting` yn rheoli ffurfweddiad yr allbwn.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
≤ 2,000 nod≥ 10 nod
Anogiad cerddoriaeth o 10–300 nod. Nodwch y senario bwriadedig ynghyd â'r arddull gerddorol a'r naws.
lyrics_promptgofynnol
Mathstring
≤ 3,000 nod≥ 10 nod
Geiriau cân o 10–3000 nod, gyda n yn gwahanu llinellau. Gall marcwyr trefniant dewisol fel [Intro], [Verse], [Chorus], [Bridge], ac [Outro] wella'r strwythur.
audio_settingdewisol
Mathobject
Gosodiadau ar gyfer ffurfweddu sain.
audio_setting.sample_ratedewisol
Mathenum
Rhagosodedig44100
80001600022050240003200044100
Cyfradd samplu ar gyfer y sain a gynhyrchir.
audio_setting.bitratedewisol
Mathenum
Rhagosodedig256000
3200064000128000256000
Bitrate ar gyfer y sain a gynhyrchir.
audio_setting.formatdewisol
Mathenum
Rhagosodedigmp3
mp3pcmflac
Fformat y sain.
enable_safety_checkerdewisol
Mathboolean
Rhagosodedigtrue
Gellir llacio'r sgrinio drwy osod false, ar yr amod bod y galwr wedi'i awdurdodi.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "minimax-music/v2",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 30,
    "usd": "0.03",
    "charged": 30,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "lyrics_prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "audio": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_name": "0-output.mp3",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "audio",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp3",
      "content_type": "audio/mpeg",
      "file_size": 1843200,
      "duration": 12,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
audio
object {url, content_type, file_name, file_size}Cerddoriaeth a gynhyrchir gan y model.

Mwy o fodelau: Testun i Gerddoriaeth

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/minimax-music/v2.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt