flow2api pools session tokens behind an API, and ships with admin as the password
Unlimited-use Banana Pro: a reverse-engineered account pool with load balancing, automatic token refresh, caching strategies and proxy support.
At a glance
- What is it?
- flow2api is an OpenAI-compatible service that sits in front of Google's Flow product and serves image and video generation to anything that speaks that API. Its token pool is the core of it, and the file documents that pool openly: a public health endpoint that counts how many tokens are alive, expiring, expired or rate-limited, and a management endpoint that returns each token's expiry and ban reason. The documented default login is the username and the password, both the same word.
- Who is it for?
- Before anything else, find out what the service provider's terms say about this. flow2api works by driving a consumer web product's session, refreshing those sessions when they expire, and answering a captcha that the provider added, which is a different thing from integrating with an API the provider offers.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 6 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- TheSmallHanCat/flow2api3,188 ★ · +225
| Repository | 2026-09-24 | 2026-11-22 |
|---|---|---|
| TheSmallHanCat/flow2api | 3k | 3.2k |
225 Stars in the last 59 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The token pool is the product, and the login is two copies of one word
The repository describes itself in its own summary line as unlimited uses of a paid image model, with a reverse-engineered account pool supporting load balancing, automatic refresh, caching and proxies.
Load balancing is described as round-robin over multiple tokens with concurrency control. Automatic refresh is described as refreshing an access token when it expires, and when a second kind of credential expires, updating it through a browser in what the file calls personal mode. A balance display queries and shows the remaining video credits.
Then the deployment section, which is the part to read carefully. The service listens on a port, the admin interface is at the root address, and the credentials are given in the file itself: the username is the word admin and the password is the word admin, followed by an instruction to change the password immediately after the first sign-in.
That is a normal thing for a first-run experience to do and a dangerous thing for a service that pools other people's sessions to do. The admin interface is where tokens are managed, where the captcha provider keys are entered, and where the config is changed. Anyone who reaches the port before you change it has all of that.
A public endpoint that counts the pool
Three monitoring endpoints are documented, and they are not equally exposed.
One is described as a public health check. It returns whether the service is alive and a summary including the number of active tokens, the number about to expire, the number already expired, and the number disabled after rate limiting.
A second is a Prometheus metrics endpoint, and the file does say something about it: if you deploy to Kubernetes, scrape it only from inside the cluster and restrict external access to it separately at the ingress or gateway layer. So the author treats that one as sensitive.
A third is a management endpoint that returns per-token state, including expiry, whether it has expired, whether it expires within an hour, the ban reason and a consecutive error count.
So the public one gives an aggregate view of the same information the management one gives in detail, and the file does not ask you to protect it. On a deployment where the port is reachable, that aggregate is a live map of your pool: it tells a stranger how many accounts you are running, which are close to failing, and how many have been rate-limited.
The README says port 8000 and the compose file publishes 38000
The documentation and the compose file disagree about where the service is, and the gap is large enough to matter.
Every address in the README is the default port: the admin interface after startup, the built-in model test page, and the monitoring endpoints. The API port is listed as 8000 in the deployment section.
The default compose file publishes a different host port mapped to that container port. So a user who follows the first-run instructions exactly, types the documented address after starting the container, and gets nothing has not made a mistake so much as followed the file.
There are four compose files at the root of the repository: the default one, one for local deployment, one that adds a proxy, and one for the headed captcha mode. The README demonstrates three of them. Each is a separate configuration surface with its own environment variables, so knowing which one you started also determines which settings apply.
The requirements list describes the mechanism more plainly than the prose
The dependency file is a dozen lines and it is the most direct account of how this works.
Most entries are pinned to exact versions: the web framework, the server, a SQLite driver, the validation library, a TOML reader, a password hashing library, a multipart parser, a date library and a metrics client.
Three are not pinned, and they are the interesting ones. One is an HTTP client whose distinguishing feature is that it imitates the TLS fingerprint of a real browser, which is why a request from this service does not look like a request from a script. One is the standard browser automation library. And one is a driverless browser automation library, which drives a browser without going through the browser's own automation interface.
Two of those are there for the captcha. The file says the provider added an extra captcha and that you can choose between solving it in a browser or using a third-party solving service, and the browser automation libraries are what make the first option possible.
So the honest summary of the architecture is: a browser-impersonating HTTP client plus one or two ways to drive a real browser, wrapped in an API server. That is visible in the dependency list before you read a word of the feature list.
Third-party captcha services, and a virtual desktop in the container
The captcha story is documented with a level of detail that is unusual, and it comes in two shapes.
The first is paying someone else. Three solving services are named, each with a registration link, and the file says the default compose setup is meant to be paired with a third-party solver. A fifth and sixth service name appear in that default list without their own sections. There is also a documented knob for the chosen provider's task type, with four named variants and a note that two of them force a minimum score to be submitted, with the recommended default identified.
The second is doing it yourself, in a container. A separate compose file starts a virtual framebuffer and a window manager inside the image so that a headed browser has a display to draw on, and it sets an environment variable to allow that mode. The file notes that only the application port is opened and no remote desktop port is offered, and that the in-container browser now defaults to headed, with an environment variable to switch it back.
Taken together, the two options are the same goal by different means: keep a session alive against a control that exists to detect automation. Neither is documented as optional, and both require a paid service or a browser you did not ask for.
Fifteen model names, and older names that still work
The model table is long and mechanical, and it is where the naming shows its age.
The service exposes fifteen image models, listed identically on its own models endpoint and on the provider's native endpoint. Every name is built from one base identifier plus an orientation or aspect suffix, plus an optional resolution suffix, and the resolutions run through a default, a 2K and a 4K variant of each. That is fifteen combinations from five aspects and three resolutions, and the table is a complete enumeration rather than a curated list.
Underneath the table there is a compatibility note: older image names continue to work but no longer appear in the model list.
That is a small thing with a real consequence. The list you can enumerate is fifteen names. The set of names the service will accept is larger and includes names that are documented nowhere, which means a request that works is not evidence that the name is supported, and a client generated from the models endpoint will not know about the rest.
The feature list also claims compatibility with the provider's native request format, including its two entry points, a system instruction field, and three content part shapes, and says the native format has been verified to return images with a real token.
Root in the image, a floating tag, and a config file from your directory
Three packaging details are worth reading before you deploy.
The image is built from a slim Python base with no user directive anywhere in the file, so the service runs as root inside the container. The one concession to that is a flag on the install command that tells the installer not to warn about running as root:
FROM python:3.11-slim
WORKDIR /app
# 安装 Python 依赖
COPY requirements.txt .
RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
COPY . .
EXPOSE 8000
CMD ["python", "main.py"]The compose file pulls an image with a floating latest tag rather than a version, so a restart after a few weeks is a restart on new code. Everything else in the stack is pinned exactly, which makes the floating tag the one unpinned thing in the chain.
The compose file also bind-mounts three host paths: a data directory, a cache directory, and the configuration file itself, mounted as a single file from the directory beside the compose file. That is where the captcha keys you enter through the admin page end up living. The README explains the cache mount too: the cache timeout can be set to a value meaning never expire automatically, and keeping the cache files across a container rebuild requires keeping that mount.
Together those are the operational facts: root, latest, and a configuration file sitting in your working directory.
Editorial conclusion
Before anything else, find out what the service provider's terms say about this. flow2api works by driving a consumer web product's session, refreshing those sessions when they expire, and answering a captcha that the provider added, which is a different thing from integrating with an API the provider offers. Nothing here is a judgement about the code, and the file is unusually open about the mechanism, but the decision about whether to run it is a decision about the account attached to it, and that is not the implementer's call.
If you do run it, two things in this repository deserve attention before anything else. The documented default login is the username and the password both set to the same word, with a note to change it after the first sign-in, so treat the admin interface as exposed until you have. And the health endpoint is public and reports how many tokens are active, how many are about to expire, how many have expired and how many are disabled by rate limiting, which is a map of your pool to anyone who can reach the port.
Frequently asked questions
What is flow2api?
An OpenAI-compatible API service in front of Google's Flow product, for text to image, image to image, text to video, image to video and first and last frame video. It works by holding a pool of session tokens, round-robining across them with concurrency control, and refreshing them when they expire, rather than by calling a documented API from the provider.
What are the default login credentials for flow2api?
The documentation gives the username as admin and the password as admin, and instructs you to change the password immediately after the first sign-in. That admin interface is where tokens are managed, where captcha provider keys are entered, and where configuration is changed.
Does flow2api need a proxy or does it work without one?
Both are documented. HTTP and SOCKS5 proxies are supported as a configuration option, and a separate compose file starts the service behind a WARP proxy. The default compose file is described as the standard mode that uses no proxy.
How does flow2api handle the captcha?
The file says the provider added an extra captcha and gives two options: solving it with a browser, which in Docker means a virtual framebuffer and window manager so a headed browser has a display, or using a third-party solving service whose key you enter in the admin page. It also documents a browser extension that pushes a refreshed login state to the service.
What do flow2api's monitoring endpoints expose?
A public health check returning liveness plus counts of active tokens, tokens about to expire, expired tokens and tokens disabled after rate limiting. A Prometheus metrics endpoint, which the file recommends scraping only inside a cluster and restricting at the ingress layer. And a management endpoint returning per-token expiry, ban reason and consecutive error counts.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/thesmallhancat-flow2api)Star history chart for your README
[](https://hysenlabs.com/projects/thesmallhancat-flow2api)Was this useful?