Neidio i'r cynnwys

MMAudio V2 Text to Audio

Integreiddio

ID y model mmaudio-v2/text-to-audio
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mmaudio-v2/text-to-audio?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"
  }'

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

Y cais hwn: $0.008 8 o gredydau API · ≈ ₽0.86 Ei redeg ar y dudalen hon

Cael allwedd API
Sony AI Sain 1–30 s #audio#fast

Cynhyrchu testun-i-sain o synau o anogwr gyda chamau, arweiniad a hyd y gellir eu tiwnio

Sony AI · 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

Anogiad sy'n disgrifio'r sain i'w chreu.

rhagosodedig 8

Hyd y sain a gynhyrchwyd.

Uwch negative_prompt · num_steps · cfg_strength · seed · mask_away_clip
rhagosodedig

Anogiad negyddol sy'n nodi beth i'w eithrio wrth gynhyrchu sain.

rhagosodedig 25

Cyfrif camau a ddefnyddir ar gyfer cynhyrchu sain.

rhagosodedig 4.5

Dwyster Classifier Free Guidance.

Gwerth hedyn a ddefnyddir gan y generadur rhifau ar hap.

POST /run/mmaudio-v2/text-to-audio?wait=20 dyfynbris → $0.008
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/mmaudio-v2/text-to-audio?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"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/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 â MMAudio V2 Text to Audio

Yn cynhyrchu sain o `prompt` testun, gyda `negative_prompt` i osgoi rhai synau. Mae `duration` yn rhedeg o 1 i 30 eiliad (rhagosodiad 8), `num_steps` o 4 i 50 (rhagosodiad 25), a `cfg_strength` o 0 i 20 (rhagosodiad 4.5). Mae `seed` rhwng 0 a 65535 yn gwneud y canlyniadau'n ailadroddadwy.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
promptgofynnol
Mathstring
Anogiad sy'n disgrifio'r sain i'w chreu.
negative_promptdewisol
Mathstring
Rhagosodedig
Anogiad negyddol sy'n nodi beth i'w eithrio wrth gynhyrchu sain.
seeddewisol
Mathinteger | null
0 – 65,535
Gwerth hedyn a ddefnyddir gan y generadur rhifau ar hap.
num_stepsdewisol
Mathinteger
Rhagosodedig25
4 – 50
Cyfrif camau a ddefnyddir ar gyfer cynhyrchu sain.
durationdewisol
Mathnumber
Rhagosodedig8
1 – 30
Hyd y sain a gynhyrchwyd.
cfg_strengthdewisol
Mathnumber
Rhagosodedig4.5
0 – 20
Dwyster Classifier Free Guidance.
mask_away_clipdewisol
Mathboolean
Rhagosodedigfalse
Yn rheoli a yw'r clip yn cael ei guddio.
gofynnol

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mmaudio-v2/text-to-audio",
  "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": 8,
    "usd": "0.008",
    "charged": 8,
    "refunded": 0
  },
  "input": {
    "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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}Sain a gynhyrchwyd gan y model.

Mwy o fodelau: Sain

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