QVAC-20424 feat[api]: img2vid for POST /v1/videos#2481
Draft
lauripiisang wants to merge 9 commits into
Draft
Conversation
…ST /v1/audio/speech Adds GET /v1/audio/voices and /v1/audio/models discovery endpoints (QVAC-17706 Open WebUI gap) alongside the encoding feature. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…iption, discovery endpoint smoke tests - Correct audio/x-pcm → audio/L16; rate=<sr>; channels=1 in OpenAPI description - Update serve-openai.md: response_format table, headers table, error table, route index, add /v1/audio/voices and /v1/audio/models sections - Remove stale "wav + pcm only" caveat from README.md - Add explicit BATS smoke tests for GET /v1/audio/models and GET /v1/audio/voices Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… with exactOptionalPropertyTypes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎯 What problem does this PR solve?
POST /v1/videosonly supported text-to-video; callers had no way to animate a still image via the CLI OpenAI server.📝 How does it solve it?
multipart/form-dataonPOST /v1/videosalongside the existing JSON body (no breaking change — JSON txt2vid continues to work unchanged).init_imagefile field: provided →img2vid, absent →txt2vid.strength(0–1) controls denoise intensity for img2vid; coerced from string for multipart compatibility.strengthvalues return400 invalid_strength.packages/cli/docs/serve-openai.mdanddocs/website/content/docs/ai-capabilities/video-generation.mdxto document both modes and the I2V model family.🧪 How was it tested?
init_imageandstrength,extractVideoCreateParamsmode selection, strength coercion and range validation (371/371 pass).npm install @qvac/sdk@npm:@tetherto/sdk-mono@0.12.2-tmp.runid-27142936775— andnpx tsc --noEmitpassed clean.package.jsonwas restored before committing.clipVisionModelSrcwhich needs hardware. These should be added as a follow-up.🔌 API Changes
POST /v1/videos— new optional fields (multipart only forinit_image):Do not merge until
@qvac/sdkis published with img2vid support (from PR #2436). The CLI routesVideoClientParamsat runtime through the SDK — without the released types and execution pipeline, img2vid requests will fail at the SDK call site. Once a public SDK release including those changes is available, update@qvac/sdkinpackages/cli/package.jsonto that version and re-runbun run buildbefore merging.