feat(tools): Flow2API integration — Veo 3.1 video + Gemini/Imagen image generation#183
Open
cat9999aaa wants to merge 1 commit into
Open
feat(tools): Flow2API integration — Veo 3.1 video + Gemini/Imagen image generation#183cat9999aaa wants to merge 1 commit into
cat9999aaa wants to merge 1 commit into
Conversation
…agen image generation Add two new tools that connect OpenMontage to a local Flow2API gateway, enabling Google Veo 3.1 video generation and Gemini 3.0/3.1 + Imagen 4.0 image generation through a self-hosted proxy. Tools: - tools/video/flow2api_video.py: Veo 3.1 T2V/I2V/R2V video generation supporting fast/quality/ultra tiers, 4s/6s durations, 720p/1080p/4k - tools/graphics/flow2api_image.py: Gemini 3.0 Pro, Gemini 3.1 Flash, and Imagen 4.0 image generation with 5 aspect ratios and 2K/4K upscaling Both tools use the OpenAI-compatible /v1/chat/completions endpoint and require FLOW2API_API_KEY + FLOW2API_BASE_URL environment variables.
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
Adds two new tools connecting OpenMontage to a local Flow2API gateway for Google AI generation:
tools/video/flow2api_video.pytools/graphics/flow2api_image.pyWhy
Flow2API is a self-hosted proxy that bridges to Google VideoFX/ImageFX. It provides:
/v1/chat/completions) — no custom protocol neededThese tools let OpenMontage users leverage this free quota for video and image generation without direct Google API costs.
Features
flow2api_video (381 lines)
fast,quality,ultraflow2api_image (267 lines)
gemini-3.0-pro-image,gemini-3.1-flash-image,imagen-4.0-generate-previewSetup
# .env FLOW2API_API_KEY=your_flow2api_key FLOW2API_BASE_URL=http://127.0.0.1:8000Testing
Both tools were tested against a live Flow2API instance: