Nano Banana Pro OpenRouter
nano-banana-pro-openrouter skill for programming & development
An image generation skill that leverages OpenRouter's API to access Nano Banana Pro and other image generation models, enabling AI-powered image creation, editing, and transformation from text prompts.
What Is This?
Overview
This skill integrates with OpenRouter's unified API to access image generation models including Nano Banana Pro. It handles prompt formatting, API configuration, model selection, and response processing to generate images from text descriptions directly within your AI assistant workflow.
Who Should Use This
Perfect for developers integrating image generation into applications, content creators needing AI-generated visuals, designers creating concept art and mockups, and teams automating visual content production.
Why Use It?
Problems It Solves
Accessing multiple image generation models requires managing different APIs, authentication methods, and prompt formats. OpenRouter provides a unified interface, but configuring it correctly with proper parameters and handling responses requires specific knowledge this skill provides.
Core Highlights
- Unified API Access - Single endpoint for multiple image generation models
- Prompt Optimization - Guidance for effective image generation prompts
- Model Selection - Choose the right model for your use case and budget
- Response Handling - Parse and save generated images properly
- Cost Management - Track token usage and optimize for cost efficiency
How to Use It?
Basic Usage
Ask Claude to generate images via OpenRouter, and this skill handles API configuration.
Scenario 1: Basic Image Generation
Ask Claude: "Generate an image of a mountain landscape at sunset"
Claude will construct the API call:
curl https://openrouter.ai/api/v1/images/generations -H "Authorization: Bearer $OPENROUTER_API_KEY" -H "Content-Type: application/json" -d '{
"model": "nano-banana-pro",
"prompt": "A majestic mountain landscape at sunset, golden light casting long shadows across alpine meadows, snow-capped peaks reflecting warm orange and purple hues, photorealistic style",
"n": 1,
"size": "1024x1024",
"quality": "standard"
}'Scenario 2: Programmatic Integration
Tell Claude: "Integrate image generation into my Node.js app"
Claude will provide:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://openrouter.ai/api/v1",
apiKey: process.env.OPENROUTER_API_KEY,
});
async function generateImage(prompt, options = {}) {
const response = await client.images.generate({
model: options.model || "nano-banana-pro",
prompt,
n: options.count || 1,
size: options.size || "1024x1024",
});
return response.data.map(img => img.url);
}
const images = await generateImage(
"Modern minimalist logo for a tech startup, clean lines, blue gradient"
);
console.log("Generated:", images[0]);Real-World Examples
Marketing Asset Pipeline
A marketing team automated hero image generation for blog posts. Each article's metadata fed into prompt templates, producing consistent brand-aligned visuals without manual design work.
Rapid Prototyping
A product designer used text-to-image generation to create 20 UI concept variations in an hour. Iterating on prompts was faster than sketching, enabling broader design exploration.
Advanced Tips
Prompt Engineering
Structure prompts with subject, style, lighting, and composition details. Be specific about artistic style (photorealistic, watercolor, isometric) for consistent results.
Model Comparison
Test the same prompt across different models available on OpenRouter to compare quality, speed, and cost. Different models excel at different styles and subjects.
When to Use It?
Use Cases
- Content Creation - Generate images for blog posts, social media, and marketing
- Concept Art - Create visual concepts for products and features
- Prototyping - Produce UI mockups and design explorations quickly
- App Integration - Add image generation features to applications
- Batch Generation - Create multiple image variations programmatically
Related Topics
When you ask Claude these questions, this skill will activate:
- "Generate an image using OpenRouter"
- "Create AI images with Nano Banana Pro"
- "Integrate image generation API"
- "Text to image with OpenRouter"
Important Notes
Requirements
- OpenRouter API key with image generation access
- Sufficient API credits for image generation requests
- Node.js 18+ or Python 3.9+ for SDK integration
- Network access to OpenRouter API endpoints
Usage Recommendations
Do:
- Write detailed prompts - Specific descriptions produce better results
- Specify art style - Include style keywords for consistent output
- Set appropriate sizes - Match output resolution to your use case
- Cache generated images - Save results to avoid regenerating identical content
Don't:
- Don't use vague prompts - Generic descriptions produce inconsistent results
- Don't ignore content policies - Follow OpenRouter's acceptable use guidelines
- Don't skip error handling - API calls can fail or timeout
Limitations
- Image quality varies by model and prompt specificity
- Generation times depend on model complexity and server load
- API rate limits apply to concurrent generation requests
- Generated images may require manual refinement for production use
More Skills You Might Like
Explore similar skills to enhance your workflow
Create GitHub Issues For Unmet Specification Requirements
create-github-issues-for-unmet-specification-requirements skill for design & creative
Tailwind Theme Builder
A Claude Code skill for tailwind theme builder workflows and automation
Create Auth Skill
Scaffold and implement authentication in TypeScript/JavaScript apps using Better Auth. Detect frameworks, configure database adapters, set up route
Openai Image Gen
Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery
Startup Financial Modeling
Build revenue from customer acquisition and retention by cohort
Create Voltagent
Skill for creating AI agent projects using the VoltAgent framework. Guide for CLI setup and manual bootstrapping