SuperAPI AI Directory

PaperBanana-Pro

PaperBanana-Pro (Paper Banana) is a multi-agent system for academic paper figure generation, independently evolved from the original PaperBanana, having undergone 21 rounds of engineering refinement and 70+ unit test coverage, positioned as a product-grade tool for daily use. By inputting a paper's method section and figure caption, it concurrently generates multiple scientific figure candidates with one click, and supports management features such as favoriting, selecting, or eliminating candidates, ZIP batch packaging and download, and evolution timeline replay. The system provides a fully Chinese GUI and streaming interaction, with a built-in independent refinement workbench that allows setting target resolution and aspect ratio; each refinement round forms a version chain, supporting continuation from or rollback to any historical version. After installation, the paperbanana command can be used, or the GUI can be launched via streamlit run demo.py, or the CLI via python main.py --help. It supports four Providers: Gemini, OpenAI, Openrouter, and Evolink, and can connect to any OpenAI-compatible API. The default text model is gemini-3.8-flash, and the image generation model is gemini-nano-banana-2.1. It is suitable for batch dataset runs and artifact archiving. Note: The original PaperBanana methodology has been patented and must not be used for commercial purposes; this restriction also applies to this extended version.

Open website

About this tool

Purpose

PaperBanana-Pro is a multi-agent generation and refinement system for academic paper figures, independently evolved from the original PaperBanana, having undergone 21 rounds of engineering refinement and 70+ unit test coverage. Its goal is to transform input of a paper's method section and figure caption into scientific figure candidates, and to support subsequent screening, refinement, and archiving.

Main Capabilities

  • Input a paper's method section and figure caption to concurrently generate multiple scientific figure candidates with one click.
  • Favorite, select, or eliminate candidates, and download all results in a one-click ZIP package.
  • Expand the evolution timeline of any candidate to view the complete process stage by stage: planning → style enhancement → review correction.
  • Independent refinement workbench: set target resolution and aspect ratio; each refinement round forms a version chain, allowing continuation from or rollback to any historical version.
  • Pre-launch checks and parameter preview, automatically validating configuration and estimating cost.
  • History replay: load past run results from Bundle snapshots.
  • Batch download: one-click ZIP packaging by filter scope (including images, descriptions, and plotting code).
  • Visual API Key configuration; keys are automatically stored locally and are not lost on refresh.
  • Support for custom model providers: connect to any OpenAI-compatible API by filling in the Base URL and Key.
  • GUI candidate generation supports diagram (scientific figure) or plot (statistical chart), with background generation, multi-candidate concurrency, real-time preview, history replay, and batch export.
  • Image refinement supports modifying candidate results, upscaling, version history, concurrent refinement, and batch download.
  • Provides evaluation tools (scripts/eval/): retrieval usefulness evaluation, full-chain measurement (time and cost per stage, per-round figure export), pairwise blind evaluation of generated figures and Critic screening, along with benchmark data for retrieval and image generation prompts.

Installation and Usage

After installation is complete, the paperbanana command can be used in any directory; if it is not in PATH, run uv tool update-shell. When a global command is not needed, you can also directly launch the GUI with streamlit run demo.py, or use python main.py --help for CLI operations.

Dataset (optional, strongly recommended): download dwzhu/PaperBananaBench and place it in data/PaperBananaBUnder ench/, few-shot reference examples and evaluation benchmarks are available; if you only want to try it out, you can set retrieval to none to skip the dataset dependency.

Configuration: fill in the API Key in configs/model_config.yaml, or write the Key into configs/local/google_api_key.txt or configs/local/evolink_api_key.txt (choose either method). You can also configure it visually directly in the GUI, and the API Key will be automatically stored locally.

Provider support: Currently, four Providers are officially supported: Gemini, OpenAI, Openrouter, and Evolink.

Default models: gemini-3.8-flash is used for text; gemini-nano-banana-2.1 (Nano Banana 2.1) is used for image generation. Gemini and Evolink use the same model names, while OpenRouter adds the google/ prefix.

For common CLI parameters, see paperbanana run --help. For evaluation tool usage, see scripts/eval/README.md; real calls require the environment variable GOOGLE_API_KEY.

Cost and Performance Reference (provided by the source)

  • Text model: gemini-3.8-flash is the default; if you want to save money, you can choose gemini-3.1-flash-lite, whose text cost is about 1/4 of the former, with slightly lower retrieval quality. It is not recommended to use gemini-3.5-flash-lite: in actual testing, when acting as the Critic, it almost always replies "no modification needed," so review corrections do not work.
  • Image generation model: gemini-nano-banana-2.1, including thinking tokens, costs about $0.05 per image at 1K and about $0.07 per image at 2K in actual testing, with about 30-40 seconds per image; small text may become blurry at 1K, so images with many labels are recommended to use 2K. For better image quality, you can choose gemini-3-pro-image (Nano Banana Pro, $0.134 per image at 1K/2K).
  • Overall reference: for the standard process, at 2K, with 3 rounds of Critic, each candidate costs about $0.4 and takes about 5 minutes. Starting in 2027, gemini-3.8-flash pricing doubles.

Applicable Scenarios

  • Academic writing scenarios that need to generate scientific illustrations or statistical charts for the methods section of a paper.
  • Drawing workflows that need multiple candidate images, concurrent generation, and version management.
  • Workflows that need to run datasets in batches and archive artifacts (including images, descriptions, and drawing code).
  • Localized deployment usage scenarios that need to integrate with an OpenAI-compatible API.

Limitations and Notes

  • The GUI is intended for single-user local use; do not publicly deploy it for multiple users to share: API Keys entered in the GUI will be saved on the local machine and become the default Key for all subsequent sessions, so other visitors will directly use your Key to generate and incur charges.
  • Copyright and patent restrictions: The core methodology of PaperBanana (a multi-Agent academic drawing pipeline) was developed by the original authors during an internship at Google, and Google has applied for a patent on the related workflow. This means that the pipeline logic of PaperBanana must not be used for commercial purposes; PaperBanana-Pro, as an independently evolved version, is likewise subject to this restriction.
  • The source mentions that in previous internal testing, GPT Image 2 performed worse than Banana Pro. The speculated reason is that GPT Image's advantages are concentrated in text stability and zero-shot image generation ability, which are not sufficiently complementary to PaperBanana's goals of stable text and style consistency.

Evolution and Dependencies

This project evolved independently based on the following work: the original repository dwzhu-pku/PaperBanana; the Chinese interface reference & lightweight retrieval Mylszd/PaperBanana-CN; the original paper PaperBanana: Automating Academic Illustration for AI Scientists.