Skip to content

[DOCS] Document scoring a video on the sound-effects endpoint #1207

Closed

Description

@edenreich

Summary

The Audio API page documents sound-effect generation from a text prompt only. inference-gateway/inference-gateway#864 (spec: inference-gateway/schemas#314) adds a multipart/form-data body to POST /v1/audio/sfx that uploads a video to score: Mirelo watches the clip and generates the sound that fits it, optionally keeping or separating the speech already in it.

Affected pages: the Audio API page (sound effects section), the Mirelo provider page, and the configuration reference if the SERVER_MAX_REQUEST_BODY_SIZE guidance belongs there.

The gateway's own example lives in examples/rest-endpoints/README.md, section "Scoring a video", and can be copied.

Acceptance Criteria

  • The multipart form is documented with every field: model, video, prompt, duration_seconds (omit to score the whole clip), start_offset_seconds, preserve_speech, output (mix, sfx, speech) and response_format.
  • The body limit is explained: the upload must fit SERVER_MAX_REQUEST_BODY_SIZE (10 MiB by default), otherwise 413.
  • The credits note is present: Mirelo bills duration x variants at the same rate as text-to-sfx.
  • The narration recipe is included: generate the voice with POST /v1/audio/speech and mix with ffmpeg amix, since Mirelo does not synthesize speech.
  • The 502 answers are described: a clip without speech has no speech track, and a refused upload.
  • The page links to feat(audio): score a video on the sfx endpoint inference-gateway#864 and feat(openapi): score a video on the sfx endpoint schemas#314.

Activity

  1. added
    documentation
    on Nov 14, 2026
  2. added theissue type on Nov 14, 2026
  3. moved this to Todo in 2026on Nov 14, 2026
  4. edenreich commented on Nov 14, 2026

    @edenreich
    ContributorAuthor

    @claude can you document this?

  5. inference-gateway-maintainer commented on Nov 14, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documented video scoring on /v1/audio/sfx

    • Gather context (api-reference sound-effects section, Mirelo provider section, configuration reference, gateway's examples/rest-endpoints/README.md)
    • Document the multipart form with every field
    • Body limit / 413, credits note, narration recipe, 502 answers
    • Validate (bun run format, bun run lint:md, bun run build - all pass)
    • Commit and open PR

    PR: #1210

    What changed:

    • api-reference.md - new Scoring a video subsection under Sound effects: intro, curl example, a field table for model, video, prompt, duration_seconds (omit to score the whole clip), start_offset_seconds, preserve_speech, output (mix / sfx / speech) and response_format (mp3 / flac), the SERVER_MAX_REQUEST_BODY_SIZE 10 MiB limit and 413, the credits note (duration x variants, same rate as text-to-sfx), the ffmpeg amix narration recipe, and the two 502 cases (output: speech on a clip with no dialogue, a refused upload) next to the existing 504.
    • api-reference.md - the Sound effects intro now points at the new subsection.
    • supported-providers.md - the Mirelo provider section points at it too (edited outside the GENERATED:* markers).

    Two deliberate deviations:

    • No PR links. The last acceptance criterion asked the page to link the gateway and schemas pull requests, but AGENTS.md forbids referencing GitHub issues or pull requests in doc content. The behavior is described instead - the provenance will land in CHANGELOG.md.
    • No configuration.md change. SERVER_MAX_REQUEST_BODY_SIZE is already in the config table there, and the endpoint-specific guidance reads better next to the endpoint, which is how /v1/videos already does it.

    Skipped: I did not add the form to the SDK sections - none of the SDKs wrap the multipart variant, so there is nothing to show. I took the field semantics from the gateway's own example README rather than reading the handler code, so if the spec renamed a field after that README was written the table would inherit the error.
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 14, 2026
  7. moved this from In progress to QA in 2026on Nov 14, 2026
  8. inference-gateway-maintainer commented on Nov 14, 2026

    @inference-gateway-maintainer
    Contributor

    Update from the spec side: inference-gateway/schemas#318 (resolving inference-gateway/schemas#317) folds video-to-sfx into the single CreateSFXRequest on REST POST /v1/audio/sfx - one JSON body, multipart/form-data is removed. The optional video carries an https URL or a base64 data:video/... URI; start_offset_seconds, preserve_speech and output (mix, sfx, speech) move onto the JSON body, and prompt is required unless video is given.

    For the Audio API page: document video with the URL-versus-data-URI trade-off - a URL is passed to the provider as a URL media reference with no upload and no request body limit, while a data URI is decoded and uploaded as a provider asset, is about a third larger than the file, and is held in gateway memory, so large clips should be sent as a URL. Keep the body-limit note with SERVER_MAX_REQUEST_BODY_SIZE and 413, and show a JSON body with video set instead of a -F upload in the examples. The credits note and the narration recipe (Mirelo does not synthesize speech) are unaffected.

  9. moved this from QA to Done in 2026on Nov 15, 2026
  10. inference-gateway-releaser commented on Nov 17, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.27 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions