What problem does it solve? Creating publication-quality scientific diagrams (flowcharts, neural network architectures, biological pathways, circuit diagrams) normally requires manual drawing tools or coding, which is slow and demands design expertise. ## Core Features & Use Cases - Natural Language Generation: Describe a diagram in plain text and Nano Banana 2 generates a publication-ready PNG via the OpenRouter API. - Smart Iterative Refinement: Gemini 3.1 Pro Preview scores each image against document-type quality thresholds (8.5 for journals down to 6.5 for presentations) and only regenerates when below threshold. - Review Logging: Every run saves versioned images plus a JSON review log with scores, critiques, and early-stop reasons. - Use Case: Generate a CONSORT participant flow diagram for a clinical trial paper by describing the screening, exclusion, and randomization counts, then receive a journal-threshold-scored figure with a full review log. ## Quick Start Set the OPENROUTER_API_KEY environment variable and ask the agent to run scripts/generate_schematic.py with your diagram description, an output path, and a document type such as journal or poster.