feat: add fast, lower-credit 360p draft generation (--draft) - #12
Open
rainmeter33-jpg wants to merge 2 commits into
Open
feat: add fast, lower-credit 360p draft generation (--draft)#12rainmeter33-jpg wants to merge 2 commits into
rainmeter33-jpg wants to merge 2 commits into
Conversation
Support a --draft flag (HTTP field draft: true) that requests a faster, lower-credit 360p video draft by computing the _360p model key in the generation route, reusing the existing video_model override (4/5/6/7 credits vs 7/10/12/15 at 720p). Engine untouched.
rainmeter33-jpg
force-pushed
the
feat/draft-360p
branch
from
September 8, 2026 16:54
5996467 to
83b1466
Compare
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
Google Flow's Gemini Omni 1.1 Flash (Aug 27, 2026) added a resolution ladder — 360p → 720p (default) → 1080p → 4K — where the 360p step is a draft mode: it renders faster and bills at roughly half the credits of the 720p default. It is the "draft quickly, upscale for quality" workflow behind the Flow UI's 360p option.
The wire format is a model-key suffix:
abra_t2v_{duration}s_360p(verified live against the Flow sandbox API; the generation request otherwise has no resolution field, and the deliveryresolutionparameter only covers the 1080p/4K upsampler pass).This PR threads a
draftoption through the whole stack:generate_video(t2v) andgenerate_video_i2v/generate_video_fl/generate_video_r2vgaindraft: bool = False; when set (and no explicitvideo_model), the model key gets the_360psuffixPOST /v1/videos/generationsaccepts"draft": true(VideoGenerationRequest)flow video --draft--draftusage + the credit tableVerified
360x640output at 4 credits (vs 7 at 720p); 6s draft → 5 credits (vs 10).tests/test_video_draft.py): engine model-key for t2v/i2v, explicitvideo_modeloverride wins over draft, CLI payload flag.test_ext_http_apiport-binding failures pass once port 9227 is free).Usage
Note for maintainers: credit figures are the observed sandbox billing; the repo's
CREDITS_PER_VIDEOtable currently reflects the 720p prices, so a--draftgeneration is also a natural way to stretch daily free credits further.