ਸਮੱਗਰੀ ਵੱਲ ਜਾਓ

Mirelo SFX2.0 · Text to Audio

ਇੰਟੀਗ੍ਰੇਟ ਕਰੋ

ਮਾਡਲ id mirelo-ai/sfx2.0/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/mirelo-ai/sfx2.0/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"

ਉਦਾਹਰਨ ਵਰਗੀਆਂ ਫ਼ਾਈਲਾਂ: $0.60 600 API ਕ੍ਰੈਡਿਟ · ≈ ₽64.39 ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ ਚਲਾਉਣ ਤੋਂ ਪਹਿਲਾਂ ਮਾਪੀਆਂ ਜਾਂਦੀਆਂ ਹਨ ਇਸ ਪੰਨੇ ’ਤੇ ਚਲਾਓ

API ਕੁੰਜੀ ਲਵੋ
Mirelo AI ਆਡੀਓ 0.1–600 s #text-to-audio#sfx

ਟੈਕਸਟ ਵੇਰਵੇ ਤੋਂ ਧੁਨੀ ਪ੍ਰਭਾਵ, ਨਕਾਰਾਤਮਕ ਪ੍ਰੌਂਪਟ, ਮਿਆਦ ਅਤੇ ਕਈ ਨਮੂਨਿਆਂ ਨਾਲ

Mirelo AI · ਆਡੀਓ

ਤੁਹਾਡਾ ਪਹਿਲਾ ਨਤੀਜਾ ਇੱਥੇ ਹੋਵੇਗਾ

ਹੇਠਾਂ ਬੇਨਤੀ ਬਣਾਓ ਅਤੇ ਆਪਣੀ API ਕੁੰਜੀ ਨਾਲ ਚਲਾਓ। ਆਉਟਪੁੱਟ ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਕਾਪੀ ਕੀਤੇ ਜਾਂਦੇ ਹਨ ਅਤੇ ਹਮੇਸ਼ਾ ਲਈ ਜਾਂ ਮੁਫ਼ਤ ਵਿੱਚ 7 ਦਿਨ ਤੱਕ ਰੱਖੇ ਜਾਂਦੇ ਹਨ।

ਰਿਕਵੈਸਟ ਬਣਾਓ

ਕੰਟਰੋਲ ਮਾਡਲ ਸਕੀਮਾ ਤੋਂ ਤਿਆਰ ਹੁੰਦੇ ਹਨ। ਤੁਸੀਂ ਬਦਲਾਅ ਕਰਦੇ ਹੀ ਕੋਡ ਅਤੇ ਕੀਮਤ ਅੱਪਡੇਟ ਹੋ ਜਾਂਦੇ ਹਨ।

•ਲੋੜੀਂਦਾ 88 / 2000

ਲੋੜੀਂਦੇ ਧੁਨੀ ਪ੍ਰਭਾਵ ਦਾ ਵਰਣਨ।

ਡਿਫ਼ਾਲਟ 30

ਬੇਨਤੀ ਕੀਤੀ ਧੁਨੀ ਦੀ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ ਮਾਪੀ ਗਈ; ਇਹ text-to-SFX ਲਈ deployment-ਵਿਸ਼ੇਸ਼ ਵੱਧ ਤੋਂ ਵੱਧ ਸੀਮਾ ਦੇ ਅੰਦਰ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।

ਡਿਫ਼ਾਲਟ 2

ਇੱਕੋ batched forward pass ਵਿੱਚ ਸਿਰਜਣਾ ਲਈ samples ਦੀ ਗਿਣਤੀ।

ਉੱਨਤ negative_prompt · upload_audio_format · upload_audio_bitrate_kbps · seed
0 / 1000

ਆਉਟਪੁੱਟ ਵਿੱਚੋਂ ਬਾਹਰ ਰੱਖਣ ਵਾਲੀਆਂ ਧੁਨੀਆਂ।

upload_audio_format ਡਿਫ਼ਾਲਟ wav

ਹਰੇਕ ਆਡੀਓ ਫ਼ਾਈਲ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਫਾਰਮੈਟ।

kbps ਵਿੱਚ ਅੱਪਲੋਡ bitrate override, upload_audio_format lossless ਹੋਣ 'ਤੇ ਰੱਦ ਕੀਤਾ ਜਾਂਦਾ ਹੈ; ਇਸਨੂੰ ਅਣਸੈੱਟ ਛੱਡਣ 'ਤੇ mp3 ਲਈ LAME V0 VBR ਜਾਂ aac ਲਈ 256 kbps ਟਾਰਗੇਟ ਬਰਕਰਾਰ ਰਹਿੰਦਾ ਹੈ। mp3 ਲਈ 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 ਵਿੱਚੋਂ ਸਹੀ constant rate ਚੁਣੋ। aac ਲਈ 32 ਤੋਂ 256 ਤੱਕ ਦੇ ਮੁੱਲ guaranteed rate ਦੀ ਬਜਾਏ encoder target ਦੱਸਦੇ ਹਨ, ਇਸ ਲਈ ਮੋਨੋ ਜਾਂ sparse ਆਡੀਓ ਇਸ ਤੋਂ ਹੇਠਾਂ ਜਾ ਸਕਦਾ ਹੈ।

ਸ਼ੁਰੂਆਤੀ sample ਦਾ seed; -1 ਲਈ ਜਾਂ ਛੱਡੇ ਜਾਣ 'ਤੇ ਬੇਤਰਤੀਬ seed ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ।

POST /run/mirelo-ai/sfx2.0/text-to-audio?wait=20 ਕੋਟ → $0.60
# 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/mirelo-ai/sfx2.0/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"

ਇਹ ਬੇਨਤੀ ਚਲਾਓ

ਤੁਹਾਡੀ key ਇਸ ਬ੍ਰਾਊਜ਼ਰ ਵਿੱਚ ਰਹਿੰਦੀ ਹੈ: ਇਹ ਸਿਰਫ਼ Doitong API ਨੂੰ ਭੇਜੀ ਜਾਂਦੀ ਹੈ ਅਤੇ ਸਿਰਫ਼ ਤਾਂ ਹੀ (localStorage) ਵਿੱਚ ਸੁਰੱਖਿਅਤ ਹੁੰਦੀ ਹੈ ਜੇ ਤੁਸੀਂ Remember ਚੁਣੋ। API ਕੁੰਜੀ ਪ੍ਰਾਪਤ ਕਰੋ

Mirelo SFX2.0 · Text to Audio ਬਾਰੇ

2000 ਅੱਖਰਾਂ ਤੱਕ ਦੇ `prompt` ਤੋਂ ਧੁਨੀ ਪ੍ਰਭਾਵ ਬਣਾਉਂਦਾ ਹੈ, ਅਤੇ ਆਵਾਜ਼ਾਂ ਨੂੰ ਹਟਾਉਣ ਲਈ `negative_prompt` ਵਰਤਦਾ ਹੈ। `duration` 0.1 ਤੋਂ 600 ਸਕਿੰਟ ਤੱਕ ਹੁੰਦੀ ਹੈ (ਪੂਰਵ-ਨਿਰਧਾਰਤ 30), ਅਤੇ `num_samples` 1 ਤੋਂ 4 ਵੈਰੀਐਂਟ ਬਣਾਉਂਦਾ ਹੈ, ਹਰ ਇੱਕ ਦੀ ਆਪਣੀ ਸੀਡ ਨਾਲ। ਆਉਟਪੁੱਟ ਫ਼ਾਰਮੈਟ `upload_audio_format` ਰਾਹੀਂ wav, mp3, aac ਜਾਂ flac ਹੁੰਦਾ ਹੈ, ਅਤੇ mp3 ਤੇ aac ਲਈ ਵਿਕਲਪਿਕ ਬਿਟਰੇਟ ਉਪਲਬਧ ਹੈ।

ਪੈਰਾਮੀਟਰ

ਨਾਮਕਿਸਮ ਡਿਫ਼ਾਲਟਮਨਜ਼ੂਰਸ਼ੁਦਾ ਵੇਰਵਾ
promptਲੋੜੀਂਦਾ
ਕਿਸਮstring
≤ 2,000 ਅੱਖਰ
ਲੋੜੀਂਦੇ ਧੁਨੀ ਪ੍ਰਭਾਵ ਦਾ ਵਰਣਨ।
negative_promptਵਿਕਲਪਿਕ
ਕਿਸਮstring | null
≤ 1,000 ਅੱਖਰ
ਆਉਟਪੁੱਟ ਵਿੱਚੋਂ ਬਾਹਰ ਰੱਖਣ ਵਾਲੀਆਂ ਧੁਨੀਆਂ।
durationਵਿਕਲਪਿਕ
ਕਿਸਮnumber
ਡਿਫ਼ਾਲਟ30
0.1 – 600
ਬੇਨਤੀ ਕੀਤੀ ਧੁਨੀ ਦੀ ਲੰਬਾਈ, ਸਕਿੰਟਾਂ ਵਿੱਚ ਮਾਪੀ ਗਈ; ਇਹ text-to-SFX ਲਈ deployment-ਵਿਸ਼ੇਸ਼ ਵੱਧ ਤੋਂ ਵੱਧ ਸੀਮਾ ਦੇ ਅੰਦਰ ਹੋਣੀ ਚਾਹੀਦੀ ਹੈ।
seedਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
-1 – 92,23,37,20,36,85,47,76,000
ਸ਼ੁਰੂਆਤੀ sample ਦਾ seed; -1 ਲਈ ਜਾਂ ਛੱਡੇ ਜਾਣ 'ਤੇ ਬੇਤਰਤੀਬ seed ਵਰਤਿਆ ਜਾਂਦਾ ਹੈ।
num_samplesਵਿਕਲਪਿਕ
ਕਿਸਮinteger
ਡਿਫ਼ਾਲਟ2
1 – 4
ਇੱਕੋ batched forward pass ਵਿੱਚ ਸਿਰਜਣਾ ਲਈ samples ਦੀ ਗਿਣਤੀ।
upload_audio_formatਵਿਕਲਪਿਕ
ਕਿਸਮenum
ਡਿਫ਼ਾਲਟwav
wavmp3aacflac
ਹਰੇਕ ਆਡੀਓ ਫ਼ਾਈਲ ਲਈ ਵਰਤਿਆ ਜਾਣ ਵਾਲਾ ਫਾਰਮੈਟ।
upload_audio_bitrate_kbpsਵਿਕਲਪਿਕ
ਕਿਸਮinteger | null
32 – 320
kbps ਵਿੱਚ ਅੱਪਲੋਡ bitrate override, upload_audio_format lossless ਹੋਣ 'ਤੇ ਰੱਦ ਕੀਤਾ ਜਾਂਦਾ ਹੈ; ਇਸਨੂੰ ਅਣਸੈੱਟ ਛੱਡਣ 'ਤੇ mp3 ਲਈ LAME V0 VBR ਜਾਂ aac ਲਈ 256 kbps ਟਾਰਗੇਟ ਬਰਕਰਾਰ ਰਹਿੰਦਾ ਹੈ। mp3 ਲਈ 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320 ਵਿੱਚੋਂ ਸਹੀ constant rate ਚੁਣੋ। aac ਲਈ 32 ਤੋਂ 256 ਤੱਕ ਦੇ ਮੁੱਲ guaranteed rate ਦੀ ਬਜਾਏ encoder target ਦੱਸਦੇ ਹਨ, ਇਸ ਲਈ ਮੋਨੋ ਜਾਂ sparse ਆਡੀਓ ਇਸ ਤੋਂ ਹੇਠਾਂ ਜਾ ਸਕਦਾ ਹੈ।
ਲੋੜੀਂਦਾ

ਆਉਟਪੁੱਟ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "mirelo-ai/sfx2.0/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": 600,
    "usd": "0.60",
    "charged": 600,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "model": "sfx-2.0",
    "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
      }
    ],
    "seeds": [
      42
    ]
  },
  "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"
  }
}
ਤੁਹਾਡੀਆਂ ਫ਼ਾਈਲਾਂ, ਤੁਹਾਡੀ ਚੋਣਹਰ outputs[].url ਸਾਡੇ ਸਟੋਰੇਜ ਵਿੱਚ ਇੱਕ ਕਾਪੀ ਹੈ: ਹਮੇਸ਼ਾ ਲਈ ਰੱਖੀ ਜਾਂਦੀ ਹੈ (ਪ੍ਰਤੀ GB-ਮਹੀਨਾ ਭੁਗਤਾਨ) ਜਾਂ 7 ਦਿਨ ਤੱਕ ਮੁਫ਼ਤ, ਤੁਹਾਡੀ ਖਾਤਾ ਸੈਟਿੰਗ ਜਾਂ ?storage= ਅਨੁਸਾਰ।
ਹਰ ਮਾਡਲ ’ਤੇ ਇੱਕੋ ਜਿਹਾ ਰੂਪਤਸਵੀਰਾਂ, ਵੀਡੀਓ ਅਤੇ ਆਡੀਓ ਸਭ ਲਈ type, url, content_type, width, height ਅਤੇ duration। output ਮਾਡਲ ਦਾ ਆਪਣਾ ਨਤੀਜਾ ਆਬਜੈਕਟ ਹੈ।
ਆਉਟਪੁੱਟ ਦੇ ਫ਼ੀਲਡ
model
stringਆਉਟਪੁੱਟ ਤਿਆਰ ਕਰਨ ਲਈ ਵਰਤੀ ਗਈ SFX ਮਾਡਲ ਰਿਲੀਜ਼।
audio
array of object {url, content_type, file_name, file_size}ਸਿਰਜੇ ਗਏ ਧੁਨੀ ਪ੍ਰਭਾਵ, ਹਰ sample ਲਈ ਇੱਕ ਨਤੀਜੇ ਸਮੇਤ।
seeds
array of integersamples ਨਾਲ ਸੰਬੰਧਿਤ seeds, ਉਨ੍ਹਾਂ ਦਾ ਕ੍ਰਮ ਬਰਕਰਾਰ ਰੱਖਦੇ ਹੋਏ।

ਹੋਰ ਮਾਡਲ: ਆਡੀਓ

AI ਏਜੰਟਾਂ ਲਈ: ਇਹ ਪੰਨਾ Markdown ਵਜੋਂ ਇੱਥੇ ਹੈ https://doitong.com/pa/developers/models/mirelo-ai/sfx2.0/text-to-audio.md. ਸਾਰੇ ਮਾਡਲ ਅਤੇ ਗਾਈਡ: https://doitong.com/developers/llms.txt