Conversation
mcheiyue
added a commit
to mcheiyue/grok2api
that referenced
this pull request
Aug 20, 2026
…me#989 thinking-hold / chenyme#983 audit,保留 Console team 熔断)
3 tasks
gnayhz
pushed a commit
to gnayhz/grok2api
that referenced
this pull request
Aug 27, 2026
fix: align video generation with current mediaGenInput protocol
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.
Summary
mediaGenInput.textToVideo.videoGenModelConfigrequest path.enableImageStreamingenableSideBySidesendFinalMetadatakind: CONVERSATION_KIND_IMAGINEWhy
Grok Web now submits text-to-video requests directly to:
The previous implementation first created a synthetic media post and placed video parameters under:
That legacy request shape no longer matches the current browser protocol and may enter an upstream compatibility or degraded path, producing unrelated demo videos even though generation completes successfully.
Removed
The following obsolete code was removed:
/rest/media/post/createpreflight for Web video generationparentPostIdvideoGenModelConfigtemporary: trueThese paths were removed instead of retained as fallback because silently using an unverified protocol can consume quota while returning unrelated output.
Compatibility
grok-imagine-video.Validation
go test ./... -count=1go vet ./...mediaGenInput.textToVideo./rest/media/post/create.git diff --check