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 scoring a video on the sound-effects endpoint #1207
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.
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
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.
Activity
edenreich commentedon Nov 14, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Nov 14, 2026
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/sfxexamples/rest-endpoints/README.md)413, credits note, narration recipe,502answersbun run format,bun run lint:md,bun run build- all pass)PR: #1210
What changed:
api-reference.md- newScoring a videosubsection under Sound effects: intro, curl example, a field table formodel,video,prompt,duration_seconds(omit to score the whole clip),start_offset_seconds,preserve_speech,output(mix/sfx/speech) andresponse_format(mp3/flac), theSERVER_MAX_REQUEST_BODY_SIZE10 MiB limit and413, the credits note (duration x variants, same rate as text-to-sfx), the ffmpegamixnarration recipe, and the two502cases (output: speechon a clip with no dialogue, a refused upload) next to the existing504.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 theGENERATED:*markers).Two deliberate deviations:
AGENTS.mdforbids referencing GitHub issues or pull requests in doc content. The behavior is described instead - the provenance will land inCHANGELOG.md.configuration.mdchange.SERVER_MAX_REQUEST_BODY_SIZEis already in the config table there, and the endpoint-specific guidance reads better next to the endpoint, which is how/v1/videosalready 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
inference-gateway-maintainer commentedon Nov 14, 2026
Update from the spec side: inference-gateway/schemas#318 (resolving inference-gateway/schemas#317) folds video-to-sfx into the single
CreateSFXRequestonREST POST /v1/audio/sfx- one JSON body,multipart/form-datais removed. The optionalvideocarries an https URL or a base64data:video/...URI;start_offset_seconds,preserve_speechandoutput(mix,sfx,speech) move onto the JSON body, andpromptis required unlessvideois given.For the Audio API page: document
videowith 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 withSERVER_MAX_REQUEST_BODY_SIZEand413, and show a JSON body withvideoset instead of a-Fupload in the examples. The credits note and the narration recipe (Mirelo does not synthesize speech) are unaffected.inference-gateway-releaser commentedon Nov 17, 2026
🎉 This issue has been resolved in version 0.9.27 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀