generate-images-with-firebase-ai
Skill by evanca
Guides Flutter and Dart developers through generating or editing images with Firebase AI Logic and Gemini image models. It covers setup failures, response handling, photo input, sizing, prompting and testing.
Install generate-images-with-firebase-ai
Built from the published package, never by AI.
git clone --depth 1 https://github.com/evanca/flutter-ai-rules /tmp/flutter-ai-rules && mkdir -p ~/.claude/skills && cp -r /tmp/flutter-ai-rules/skills/generate-images-with-firebase-ai ~/.claude/skills/generate-images-with-firebase-aiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install generate-images-with-firebase-ai in Claude Code
git clone --depth 1 https://github.com/evanca/flutter-ai-rules /tmp/flutter-ai-rules && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/flutter-ai-rules/skills/generate-images-with-firebase-ai ~/.gemini/antigravity-cli/skills/generate-images-with-firebase-aiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install generate-images-with-firebase-ai in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives guidance for adding image generation to a Flutter or Dart app with Firebase AI Logic and a Gemini image model. It covers the configuration problems that block a first call, including billing on the Spark plan, App Check and responseModalities. It also shows a minimal generateContent call, how to walk the interleaved response parts, and how to report empty responses.
It explains how to send a user photo as input, downscale it before sending, and size results with ImageConfig or by measuring the output. It also covers getting text and image from one call, writing image prompts, and choosing what to test. The skill is aimed at Flutter and Dart developers who use Firebase AI Logic. Reference files cover setup, models, prompting and testing.
Written from the project's SKILL.md and checked against it.
What it can do
- First call troubleshootingRules out billing, App Check and responseModalities issues before debugging Dart code.
- Minimal image callShows a Dart generateContent call with GenerationConfig, ImageConfig and an optional photo input.
- Response parsingWalks interleaved text and image parts and reads blockReason and finishReason when no image returns.
- Photo inputDownscales a user photo at pick time before base64 encoding it for the request.
- Result sizingSets aspect ratio with ImageConfig or measures the returned image dimensions.
- Text and image from one callRequests JSON text alongside an image and parses it defensively.
- Prompting guidanceLists common image prompt mistakes and phrasings that fix them.
- Test layersDescribes unit, golden, e2e and eval layers and what each cannot reach.
What you need
- Flutter or Dart project
- Firebase AI Logic
- Gemini image model access
- Blaze plan for image generation
- App Check for apps reachable from devices you do not control
Try asking
- Use the Firebase AI skill to find why my Gemini image call returns no image.
- Show me how to send a user photo to Gemini for an image edit in Flutter.
- Help me pick an aspect ratio for a 16:9 image with firebase_ai.
Good to know
- The source says image generation has no free tier on the Spark plan.
- Image responses can be empty or image-only on some runs, according to the source.
- Aspect ratio in the prompt is often ignored, so ImageConfig enum values are the reliable option.
- The source says appCheck and auth parameters on googleAI() are deprecated.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/generate-images-with-firebase-ai/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to generate-images-with-firebase-ai
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
generate-images-with-firebase-ai: common questions
Why does image generation fail on the Spark plan?
The source says image models return limit 0 for the free tier on Spark, so the first request fails. It recommends upgrading to Blaze.
Should I use googleAI() or vertexAI()?
The source says to prefer FirebaseAI.googleAI() because it needs no GCP surface of its own and its free tier covers text. Vertex AI requires Blaze regardless of model.
Why does the model ignore my requested aspect ratio?
The source says a ratio written in the prompt is a suggestion the model often ignores. Use ImageConfig with a supported enum value instead.
How do I install generate-images-with-firebase-ai?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is generate-images-with-firebase-ai free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is generate-images-with-firebase-ai safe to use?
It scores 77 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to generate-images-with-firebase-ai?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
