Model API'si

Stable Audio 3 Small Sfx

Stable Audio 3 Small Sfx ile müzik ya da ses oluştur, dönüştür, belirli bir bölümünü düzenle veya uzat.

Model kimliği

Her istekte bunu kullan
stable-audio-3/small/sfx/audio-to-audio

Bu modelin kendi kimliği olan başka modları da var: stable-audio-3/small/sfx/text-to-audio, stable-audio-3/small/sfx/audio-inpainting, stable-audio-3/small/sfx/audio-outpainting.

Çalıştır

Girdiye ücret teklifi al, bu teklifle üretimi başlat, ardından işin durumunu sorgula. Önce RAYWAKE_API_KEY değişkenini ayarla; ayrıntılar için Kimlik doğrulama sayfasına bak.

# 1. Price the exact input (quotes are valid for up to 10 minutes)
curl -s https://api.raywake.com/v1/quotes \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "stable-audio-3/small/sfx/audio-to-audio",
  "input": {
    "prompt": "A red ceramic cup on a wooden table, soft morning light",
    "audio_url": "https://example.com/input.mp3"
  }
}'

# 2. Start the generation with the quote_id from step 1
curl -s https://api.raywake.com/v1/generate \
  -H "Authorization: Bearer $RAYWAKE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"model": "stable-audio-3/small/sfx/audio-to-audio", "quote_id": "QUOTE_ID", "input": {"prompt":"A red ceramic cup on a wooden table, soft morning light","audio_url":"https://example.com/input.mp3"}}'

# 3. Poll until the status is terminal
curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"

Girdi

stable-audio-3/small/sfx/audio-to-audio girdi alanları
AlanTürAçıklama
negative_promptstring
Text description of qualities to avoid in the output.
durationnumber
Duration of the generated audio in seconds.

Varsayılan: 30

num_inference_stepsinteger
Number of sampling steps. Post-trained (distilled) checkpoints look good with the default 8 and gain little from going higher.

Varsayılan: 8

guidance_scalenumber
Classifier-free guidance scale. Higher values follow the prompt more strictly. Only effective on base (non-distilled) checkpoints.

Varsayılan: 1

seedinteger
Random seed for reproducible outputs. Omit for a random seed.
enable_prompt_expansionboolean
If True, the prompt will be expanded using an LLM for more detailed and higher quality results.

Varsayılan: false

sync_modeboolean
If True, the audio is returned inline as a data URI and the result is not saved to the request history.

Varsayılan: false

output_formatstring (enum)
Container format for the generated audio output.

Varsayılan: mp3

Seçenekler: mp3, wav, flac, ogg, opus, m4a, aac

bitratestring
Audio bitrate for compressed output formats (e.g., mp3, aac, opus). Format e.g. '192k' or '320k'. Ignored for lossless formats (wav, flac).

Varsayılan: 192k

promptzorunlustring
Text description guiding how the source audio should be transformed.
audio_urlzorunlustring (URL)
Source audio to transform.
init_noise_levelnumber
How much noise to add to the source audio. 1.0 fully replaces the audio with noise (pure generation); 0.1 keeps the source close to the input. 0.5 sits halfway between.

Varsayılan: 0.9

Çıktı

Başarılı bir iş, sonuçlarını outputs altında listeler; dosyalar bizim tarafımızda saklanır. Tüm alanlar için İşler sayfasına bak.

İş yanıtından bir bölüm
"outputs": [
  { "type": "audio", "url": "https://…", "mime_type": "audio/mpeg", "thumbnail_url": null }
]

Fiyatlandırma

  • en fazla, varsayılan ayarlar$0,04/ üretim

Girdinin kesin ücreti ücret teklifinden gelir. Bakiye nasıl kesinleşir?