အကြောင်းအရာသို့ ကျော်ရန်

ACE Step Prompt To Audio

ပေါင်းစည်းရန်

မော်ဒယ် id ace-step/prompt-to-audio
# 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/ace-step/prompt-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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်: ၀.၀၁၂ $ ၁၂ API ခရက်ဒစ် ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
ACE Studio စာသားမှ တေးဂီတ ၅–၂၄၀ s #text-to-audio#text-to-music

ရိုးရိုးစာသားပရောမ့်ကို သီချင်းအဖြစ် ပြောင်းပေးပြီး တဂ်များနှင့် သီချင်းစာသားများကို ကိုယ်တိုင်ဖန်တီးပေးကာ တူရိယာသီချင်းအဖြစ် ပြောင်းနိုင်သော ခလုတ်ပါဝင်သည်

ACE Studio · အသံ

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

ရလဒ်အသံကို ပုံဖော်ရန် တဂ်များနှင့် သီချင်းစာသားများ ဖန်တီးသည့် စတိုင်ညွှန်ကြားချက်များ။

မူလ 60

ဖန်တီးထားသော အသံ၏ ကြာချိန်၊ စက္ကန့်ဖြင့်။

အဆင့်မြင့် scheduler · guidance_type · number_of_steps · granularity_scale · guidance_interval · guidance_interval_decay · guidance_scale · minimum_guidance_scale · tag_guidance_scale · lyric_guidance_scale · seed · instrumental
scheduler မူလ euler

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် scheduler။

guidance_type မူလ apg

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် CFG အမျိုးအစား။

မူလ 27

အသံဖန်တီးမှုအတွင်း အသုံးပြုသည့် အဆင့်အရေအတွက်။

မူလ 10

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် အသေးစိတ်အဆင့်စကေး။ ၎င်းကို တိုးမြှင့်ခြင်းဖြင့် မလိုလားအပ်သော အမှားများ ပိုမိုဖြစ်ပေါ်နိုင်သည်။

မူလ 0.5

လမ်းညွှန်မှုရရှိသည့် ဖန်တီးမှုအစီအစဉ်၏ အပိုင်း။ 0.5 ကို ရွေးချယ်ပါက 0.25 * infer_steps မှ 0.75 * infer_steps အထိ အဆင့်များတွင်သာ ကန့်သတ်ပြီး အစနှင့်အဆုံးတွင် လမ်းညွှန်မှုမရှိပါ။

မူလ 0

ဖန်တီးမှုအပိုင်းအတွင်း လမ်းညွှန်မှုလျော့ကျမှု။ 0.0 သည် လျော့ကျမှုကို ပိတ်ထားပြီး၊ အခြားတန်ဖိုးများတွင် ထိုအပိုင်းတစ်လျှောက် စကေးသည် guidance_scale မှ min_guidance_scale သို့ လျော့ကျသည်။

မူလ 15

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် လမ်းညွှန်မှုစကေး။

မူလ 3

ဖန်တီးမှုအတွင်း လျော့ကျပြီးနောက် ရောက်ရှိသည့် အနိမ့်ဆုံး လမ်းညွှန်မှုစကေး။

မူလ 5

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် တဂ်လမ်းညွှန်မှုစကေး။

မူလ 1.5

ဖန်တီးမှုအတွင်း အသုံးပြုသည့် သီချင်းစာသားလမ်းညွှန်မှုစကေး။

ထပ်တူပြန်လည်ဖန်တီးနိုင်ရန် အသုံးပြုသည့် seed ဖြစ်ပြီး တန်ဖိုးမပေးပါက ကျပန်းရွေးချယ်သည်။

POST /run/ace-step/prompt-to-audio?wait=20 ကုန်ကျစရိတ် → ၀.၀၁၂ $
# 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/ace-step/prompt-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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

ACE Step Prompt To Audio အကြောင်း

တေးဂီတကို ဖော်ပြထားသော `prompt` တစ်ခုတည်းသာ လိုအပ်သည်။ ၎င်းမှ တဂ်များနှင့် သီချင်းစာသားများကို အလိုအလျောက် ဖန်တီးပေးပြီး `instrumental` အလံကို ဖွင့်ပါက အသံပိုင်းကို ဖယ်ရှားပေးသည်။ `duration` သည် 5 မှ 240 စက္ကန့်အထိ ဖြစ်ပြီး မူလတန်ဖိုးမှာ 60 ဖြစ်သည်။ အဆင့်မြင့်ရွေးချယ်စရာများတွင် `number_of_steps`၊ `scheduler`၊ `guidance_type` နှင့် `seed` ပါဝင်သည်။

ပါရာမီတာများ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
promptလိုအပ်သည်
အမျိုးအစားstring
ရလဒ်အသံကို ပုံဖော်ရန် တဂ်များနှင့် သီချင်းစာသားများ ဖန်တီးသည့် စတိုင်ညွှန်ကြားချက်များ။
instrumentalရွေးချယ်နိုင်သည်
အမျိုးအစားboolean
မူလတန်ဖိုးfalse
ဖန်တီးထားသော အသံသည် တူရိယာသံသက်သက်ဗားရှင်း ဖြစ်မဖြစ် ထိန်းချုပ်သည်။
durationရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး60
၅ – ၂၄၀
ဖန်တီးထားသော အသံ၏ ကြာချိန်၊ စက္ကန့်ဖြင့်။
number_of_stepsရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး27
၃ – ၆၀
အသံဖန်တီးမှုအတွင်း အသုံးပြုသည့် အဆင့်အရေအတွက်။
seedရွေးချယ်နိုင်သည်
အမျိုးအစားinteger | null
ထပ်တူပြန်လည်ဖန်တီးနိုင်ရန် အသုံးပြုသည့် seed ဖြစ်ပြီး တန်ဖိုးမပေးပါက ကျပန်းရွေးချယ်သည်။
schedulerရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးeuler
eulerheun
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် scheduler။
guidance_typeရွေးချယ်နိုင်သည်
အမျိုးအစားenum
မူလတန်ဖိုးapg
cfgapgcfg_star
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် CFG အမျိုးအစား။
granularity_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး10
-၁၀၀ – ၁၀၀
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် အသေးစိတ်အဆင့်စကေး။ ၎င်းကို တိုးမြှင့်ခြင်းဖြင့် မလိုလားအပ်သော အမှားများ ပိုမိုဖြစ်ပေါ်နိုင်သည်။
guidance_intervalရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0.5
၀ – ၁
လမ်းညွှန်မှုရရှိသည့် ဖန်တီးမှုအစီအစဉ်၏ အပိုင်း။ 0.5 ကို ရွေးချယ်ပါက 0.25 * infer_steps မှ 0.75 * infer_steps အထိ အဆင့်များတွင်သာ ကန့်သတ်ပြီး အစနှင့်အဆုံးတွင် လမ်းညွှန်မှုမရှိပါ။
guidance_interval_decayရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး0
၀ – ၁
ဖန်တီးမှုအပိုင်းအတွင်း လမ်းညွှန်မှုလျော့ကျမှု။ 0.0 သည် လျော့ကျမှုကို ပိတ်ထားပြီး၊ အခြားတန်ဖိုးများတွင် ထိုအပိုင်းတစ်လျှောက် စကေးသည် guidance_scale မှ min_guidance_scale သို့ လျော့ကျသည်။
guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး15
၀ – ၂၀၀
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် လမ်းညွှန်မှုစကေး။
minimum_guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး3
၀ – ၂၀၀
ဖန်တီးမှုအတွင်း လျော့ကျပြီးနောက် ရောက်ရှိသည့် အနိမ့်ဆုံး လမ်းညွှန်မှုစကေး။
tag_guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး5
၀ – ၁၀
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် တဂ်လမ်းညွှန်မှုစကေး။
lyric_guidance_scaleရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး1.5
၀ – ၁၀
ဖန်တီးမှုအတွင်း အသုံးပြုသည့် သီချင်းစာသားလမ်းညွှန်မှုစကေး။
လိုအပ်သည်

ထွက်ရလဒ်

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ace-step/prompt-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": 12,
    "usd": "0.012",
    "charged": 12,
    "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
    },
    "seed": 42,
    "tags": "lofi, hiphop, drum and bass, trap, chill",
    "lyrics": "[inst]"
  },
  "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"
  }
}
သင့်ဖိုင်များ၊ သင့်ရွေးချယ်မှုoutputs[].url တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
audio
object {url, content_type, file_name, file_size}ဖန်တီးမှုမှ ထွက်ရှိသည့် အသံဖိုင်။
seed
integerဖန်တီးမှုအတွင်း အသုံးပြုသည့် ကျပန်း seed။
tags
stringဖန်တီးမှုအတွင်း အသုံးပြုသည့် ဂီတအမျိုးအစားတဂ်များ။
lyrics
stringဖန်တီးမှုအတွင်း အသုံးပြုသည့် သီချင်းစာသား။

နောက်ထပ် မော်ဒယ်များ: စာသားမှ တေးဂီတ

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/ace-step/prompt-to-audio.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt