stable-audio-2 通常消耗在20-23 credits,即0.4-0.46ptc
stable-audio-2.5 消耗固定在20 credits,即0.4ptc
curl --location --request POST 'https://api.302.ai/sd/v2beta/audio/stable-audio-2/text-to-audio?response_format=url' \
--header 'Authorization: Bearer ' \
--form 'prompt="A cinematic orchestral score with violins and piano";type=text/plain' \
--form 'duration="120";type=text/plain' \
--form 'seed="42";type=text/plain' \
--form 'steps="50";type=text/plain' \
--form 'cfg_scale="7";type=text/plain' \
--form 'model="stable-audio-2.5";type=text/plain' \
--form 'output_format="mp3";type=text/plain'{
"content_type": "application/json",
"filename": "stability_audio_1768448513.mp3",
"size": 151,
"url": "https://file.302.ai/gpt/imgs/20260115/cdf9889a61711c38a9e7865fd5c865bb.mp3"
}