You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the new POST /audio/sfx operation #704
A new public API operation was added to the Inference Gateway schema: POST /audio/sfx, which turns a text prompt into a non-speech audio clip (sound effect or ambience), the way POST /audio/speech turns text into a voice. It is a gateway extension - OpenAI has no sound-effects endpoint - shaped like /audio/speech: JSON in, raw audio bytes out, provider chosen by the provider/model prefix or the provider query parameter. First provider is ElevenLabs (eleven_text_to_sound_v2).
Request body (CreateSFXRequest):
model (string, required), e.g. elevenlabs/eleven_text_to_sound_v2
prompt (string, required): description of the sound
duration_seconds (number, 0.5-30, optional): omitted means the provider picks the length
Audio API intro now covers both operations; the speech material moved under a #### Speech synthesis heading.
New #### Sound effects subsection: endpoint, provider routing (provider/model prefix or ?provider=), shared AUDIO_ENABLED gate, curl example with elevenlabs/eleven_text_to_sound_v2, raw-bytes response, and the full CreateSFXRequest table with every range and default (duration_seconds 0.5-30, prompt_influence 0-1, loop, response_format default mp3).
Noted a detail the issue did not mention but users will hit: the gateway's ElevenLabs translator only maps mp3, opus and pcm, so aac/flac/wav come back 400 naming the supported set.
Unsupported providers now documents the SFX-specific error, Sound effect generation is not supported by this provider yet., and explains that it is gated separately from speech.
supported-providers.md - ElevenLabs is described as audio-only (speech plus sound effects) rather than speech-only, linking to the new section; frontmatter description updated to match.
One deviation from the acceptance criteria
"at least one SDK" example: no SDK implements this yet - createSFX/create_sfx only exist in inference-gateway/inference-gateway and the schema, none of the four SDK repos. Rather than document a method that does not exist, the second example is a plain fetch call with a note that the SDKs do not wrap the endpoint yet. Tracked in #710 (SDK coverage across typescript/go/rust/python plus the docs swap).
Also filed #709: the schema carries a sibling POST /audio/music operation that is undocumented too - out of scope here.
Activity
edenreich commentedon Sep 22, 2026
@claude Can you work on this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 22, 2026
Claude finished @edenreich's task in 4m 20s —— View job •
docs/issue-704-20260922-1200• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-704-20260922-1200?quick_pull=1&title=Issue%20%23704%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23704%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documenting
POST /audio/sfxschemasopenapi.yaml, the gatewaySFXHandlerand the ElevenLabs translator)api-reference.mdsupported-providers.mdnotes sound-effect support400for providers without text-to-sound supportlint:md,format:check,bun test,build(anchors verified in the built HTML)What changed
api-reference.md#### Speech synthesisheading.#### Sound effectssubsection: endpoint, provider routing (provider/modelprefix or?provider=), sharedAUDIO_ENABLEDgate, curl example withelevenlabs/eleven_text_to_sound_v2, raw-bytes response, and the fullCreateSFXRequesttable with every range and default (duration_seconds0.5-30,prompt_influence0-1,loop,response_formatdefaultmp3).mp3,opusandpcm, soaac/flac/wavcome back400naming the supported set.Sound effect generation is not supported by this provider yet., and explains that it is gated separately from speech.supported-providers.md- ElevenLabs is described as audio-only (speech plus sound effects) rather than speech-only, linking to the new section; frontmatter description updated to match.One deviation from the acceptance criteria
"at least one SDK" example: no SDK implements this yet -
createSFX/create_sfxonly exist ininference-gateway/inference-gatewayand the schema, none of the four SDK repos. Rather than document a method that does not exist, the second example is a plainfetchcall with a note that the SDKs do not wrap the endpoint yet. Tracked in #710 (SDK coverage across typescript/go/rust/python plus the docs swap).Also filed #709: the schema carries a sibling
POST /audio/musicoperation that is undocumented too - out of scope here.docs/issue-704-20260922-1200- PR #708inference-gateway-releaser commentedon Sep 22, 2026
🎉 This issue has been resolved in version 0.9.14 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀