Skip to content

[DOCS] Use Rust SDK examples for /audio/sfx and /audio/music #736

Closed

Description

Summary

The Rust SDK now wraps POST /v1/audio/sfx and POST /v1/audio/music, so api-reference.md and sdks.md can swap their raw-HTTP fallback for SDK examples.

Added in inference-gateway/rust-sdk#145 (tracking issue inference-gateway/rust-sdk#146):

let audio: Vec<u8> = client
    .create_sfx(Some(Provider::Elevenlabs), CreateSFXRequest {
        model: "elevenlabs/eleven_text_to_sound_v2".to_string(),
        prompt: "distant thunder rolling over a valley".to_string(),
        duration_seconds: Some(3.0),
        loop_: None,
        prompt_influence: None,
        response_format: CreateSFXRequestResponseFormat::Mp3,
    })
    .await?;

create_music takes CreateMusicRequest { model, prompt, duration_seconds, instrumental, response_format } and returns Vec<u8> the same way. Both return raw audio bytes in the format named by response_format (defaults to mp3).

Supersedes the closed #710, which covered /audio/sfx only.

Acceptance Criteria

  • api-reference.md shows the Rust SDK call for /audio/sfx and /audio/music instead of the raw-HTTP fallback
  • sdks.md lists create_sfx and create_music in the Rust SDK coverage

Activity

  1. edenreich commented on Sep 23, 2026

    @edenreich
    Contributor

    @claude Can you document this? use /ponytail:ponytail

  2. added theissue type on Sep 23, 2026
  3. added
    documentation
    on Sep 23, 2026
  4. moved this to In progress in 2026on Sep 23, 2026
  5. inference-gateway-maintainer commented on Sep 23, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 2m 14s —— View job • docs/issue-736-20260923-1315 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-736-20260923-1315?quick_pull=1&title=Issue%20%23736%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23736%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Documenting Rust SDK create_sfx / create_music

    • Read issue + repo conventions
    • api-reference.md - Rust SDK example in Sound effects and Music; raw-HTTP fallback now scoped to the SDKs that still lack wrappers (TypeScript, Go, Python)
    • sdks.md - new "Sound effects and music" section under the Rust SDK (create_sfx + create_music, the loop_ keyword rename, rust-sdk#145 link); removed the old "no create_sfx / create_music yet" note
    • bun run lint:md, bun run format:check, bun run build all pass
    • Committed and PR opened: docs: use Rust SDK examples for /audio/sfx and /audio/music #739

    Not done: the TypeScript/Go/Python SDK sections still point at raw HTTP, since those wrappers do not exist yet.
    | Branch

  6. moved this from In progress to QA in 2026on Sep 23, 2026
  7. moved this from QA to Done in 2026on Sep 23, 2026
  8. inference-gateway-releaser commented on Sep 23, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.15 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions