بنقرة واحدة
ai-generated-readme-banners
Create professional ultra-wide cinematic banners for GitHub READMEs using modern AI image models with typography
القائمة
Create professional ultra-wide cinematic banners for GitHub READMEs using modern AI image models with typography
Run the 7-step Artificial Critical Thinking pass — Materiality → Hypothesise → Alternatives → Disconfirmers → Audit priors → Severity → Commit-with-marker
Challenge what you think is right — alternative hypotheses, missing data, evidence quality, bias detection, falsifiability, and adversarial review
Step-back protocol — restate, generalise, specialise, invert, ask why, pre-mortem, check stakeholders, and audit framings before solving
Build knowledge bases that build software — research before code, teach before execute
Two-phase brain upgrade — mechanical install via shared core, then LLM-led semantic reconciliation
Generate consistent visual character references across multiple scenarios using Flux and nano-banana-pro on Replicate
| type | skill |
| lifecycle | external-dependent |
| inheritance | inheritable |
| name | ai-generated-readme-banners |
| description | Create professional ultra-wide cinematic banners for GitHub READMEs using modern AI image models with typography |
| tier | standard |
| applyTo | **/*banner*,**/*readme*,**/generate-readme* |
| currency | "2026-04-20T00:00:00.000Z" |
Ultra-wide cinematic project branding — from ASCII art to professional visuals in minutes.
Last Updated: April 2026 | Models Verified: Replicate API
Staleness Watch: See EXTERNAL-API-REGISTRY.md for source URLs and recheck cadence
Problem: ASCII art and SVG banners are limited; professional banner design is expensive and time-consuming.
Solution: Generate ultra-wide photorealistic banners using modern AI models with crystal-clear typography, professional composition, and project-specific branding in minutes.
Quality: Current-generation models (Ideogram v3, Recraft v4, FLUX Kontext, Imagen 4) produce stunning photorealistic results with excellent text rendering.
| Model | Cost | Typography | Speed | Best For |
|---|---|---|---|---|
| Ideogram v3 Turbo | $0.03 | ✅ Excellent | ~6s | Best value — fast, cheap, great text |
| Ideogram v3 Balanced | $0.06 | ✅ Excellent | ~12s | Balance quality/cost |
| Ideogram v3 Quality | $0.09 | ✅ Best | ~20s | Premium + style references |
| Recraft v4 | $0.04 | ✅ Integrated | ~10s | Design taste, art-directed |
| Recraft v4 Pro | varies | ✅ Integrated | ~28s | Print-ready 2048px |
| FLUX Kontext Max | $0.08 | ✅ Improved | ~5s | Image editing + typography |
| Google Imagen 4 | $0.04 | ✅ Good | ~4s | Fine detail, versatile |
| Imagen 4 Fast | $0.02 | ✅ Good | <1s | 10× faster, budget |
| Nano Banana Pro | $0.15 | ✅ Best multilingual | ~60s | Complex layouts, infographics |
| GPT Image 1.5 | $0.01-$0.14 | ✅ Strong | ~20s | Dense text, UI mockups |
| Model | Cost | Best For |
|---|---|---|
| FLUX 2 Max | $0.04+ | Highest fidelity, 8 reference images |
| FLUX 2 Pro | ~$0.05 | Production quality, multi-reference |
| FLUX 1.1 Pro | $0.04 | Clean visuals, proven quality |
| FLUX Schnell | $0.003 | Testing, iteration |
| Recraft v4 SVG | varies | Native SVG output |
| Need | Model | Why |
|---|---|---|
| Budget typography | Ideogram v3 Turbo | $0.03, excellent results |
| Premium quality | Ideogram v3 Quality | Style references, best output |
| Fastest iteration | Imagen 4 Fast | Sub-second, $0.02 |
| Design aesthetic | Recraft v4 | "Design taste" built in |
| SVG/vector | Recraft v4 SVG | Native scalable output |
| Complex text layouts | Nano Banana Pro | Multilingual, infographics |
| Image editing + text | FLUX Kontext Max | Edit existing images |
| Clean visuals (no text) | FLUX 2 Max | Highest fidelity |
const output = await replicate.run("ideogram-ai/ideogram-v3-turbo", {
input: {
prompt: BANNER_PROMPT,
aspect_ratio: '3:1', // Widest supported (NOT '21:9')
magic_prompt_option: 'Auto', // 'Auto', 'On', or 'Off'
style_preset: 'None', // Or: 'Art Deco', 'Pop Art', etc.
output_format: 'png',
}
});
const output = await replicate.run("recraft-ai/recraft-v4-svg", {
input: {
prompt: "Professional ultra-wide banner...",
aspect_ratio: '16:9', // Or: '1:1', '4:3', '3:2', '9:16'
}
});
// Output is native SVG
await writeFile("banner.svg", output);
const output = await replicate.run("black-forest-labs/flux-2-max", {
input: {
prompt: BANNER_PROMPT,
aspect_ratio: '21:9', // Ultra-wide supported
resolution: '2 MP', // Up to 4 MP available
output_format: 'webp',
}
});
| Model Family | Ultra-Wide | Wide | Standard |
|---|---|---|---|
| Ideogram | 3:1 | 16:9 | 1:1 |
| FLUX 2.x | 21:9 | 16:9 | 1:1 |
| Recraft v4 | 16:9 | 4:3, 3:2 | 1:1 |
| Imagen 4 | ❌ | 16:9 | 1:1, 4:3 |
Note: Ideogram uses 3:1 for ultra-wide (NOT 21:9).
- Left side: Main character/protagonist (1/3)
- Center: Thematic element/focal point (1/3)
- Right side: Environmental/world context (1/3)
Cinematic ultra-wide banner illustration for "[PROJECT NAME]" header.
[Genre/aesthetic description]
COMPOSITION (21:9 or 3:1 ultra-wide cinematic format):
- Left: [Character with specific details]
- Center: [Thematic focal point]
- Right: [Environment, atmosphere]
LIGHTING:
- [Specific techniques for each zone]
STYLE:
- [Art direction, realism level]
COLOR PALETTE:
- [Dominant colors, accents]
MOOD: [Emotional tone]
// v3 Turbo — $0.03/image, fastest, best value
const input = {
prompt: BANNER_PROMPT,
aspect_ratio: '3:1', // Ideogram's widest (NOT '21:9')
magic_prompt_option: 'Auto', // 'Auto', 'On', or 'Off' (case-sensitive!)
style_preset: 'None', // 80+ presets available
style_reference_images: [], // Up to 3 reference images (v3 only)
output_format: 'png',
};
// Model IDs:
// ideogram-ai/ideogram-v3-turbo $0.03 — fastest, best value
// ideogram-ai/ideogram-v3-balanced $0.06 — quality/speed balance
// ideogram-ai/ideogram-v3-quality $0.09 — highest quality, style refs
Style Presets (v3 new feature):
None, 80s Illustration, Art Deco, Watercolor, Oil PaintingPop Art, Vintage Poster, Magazine Editorial, Graffiti, BauhausCollage, Cyberpunk, Steampunk, Minimalist, Maximalistconst input = {
prompt: BANNER_PROMPT,
aspect_ratio: '3:1', // Ideogram's widest (NOT '21:9')
magic_prompt_option: 'On', // 'On', 'Off', or 'Auto' (case-sensitive!)
style_type: 'Realistic', // v2 only: 'Realistic', 'General', 'Design'
resolution: '1536x512',
output_format: 'png',
};
magic_prompt_option: 'ON' → Must be 'On' (case-sensitive)style_type: 'CINEMATIC' → Invalid, use 'Realistic'aspect_ratio: '21:9' → Ideogram doesn't support, use '3:1'style_preset on v2 → Only v3 supports presets// Ideogram sometimes returns URL as getter function, not string
let imageUrl;
if (output && typeof output.url === 'function') {
imageUrl = output.url().toString();
} else if (Array.isArray(output)) {
imageUrl = output[0];
} else if (typeof output === 'string') {
imageUrl = output;
} else if (output && output.url) {
imageUrl = typeof output.url === 'object' && output.url.href
? output.url.href
: output.url;
}
const output = await replicate.run("recraft-ai/recraft-v4", {
input: {
prompt: BANNER_PROMPT, // Up to 10,000 characters
aspect_ratio: '16:9', // '1:1', '4:3', '3:2', '16:9', '9:16'
}
});
Recraft strengths: "Design taste" built in, integrated text as structural element, coherent composition.
const output = await replicate.run("google/imagen-4", {
input: {
prompt: BANNER_PROMPT,
aspect_ratio: '16:9', // '1:1', '9:16', '16:9', '3:4', '4:3'
safety_filter_level: 'medium',
output_format: 'webp', // Or 'png'
}
});
Imagen 4 strengths: Fine detail, fast (~4s), good typography, versatile styles.
const output = await replicate.run("google/nano-banana-pro", {
input: {
prompt: BANNER_PROMPT,
aspect_ratio: '16:9',
reference_images: [], // Up to 14 reference images!
output_format: 'webp',
}
});
Nano Banana Pro strengths: Best multilingual text, infographics, complex layouts, 4K output.
const output = await replicate.run("openai/gpt-image-1.5", {
input: {
prompt: BANNER_PROMPT,
quality: 'medium', // 'low' ($0.01), 'medium' ($0.05), 'high' ($0.14)
size: '1536x1024',
}
});
GPT Image 1.5 strengths: Dense text layouts, UI mockups, precise editing, identity preservation.
const output = await replicate.run("black-forest-labs/flux-kontext-max", {
input: {
prompt: "Add the text 'PROJECT NAME' in bold...",
input_image: existingImageUrl, // Edit existing images
aspect_ratio: '21:9',
}
});
Kontext strengths: Edit existing images, add text overlays, improve typography in existing banners.
Structure: Use clear labeled sections for best results with any typography model.
Professional technology banner (3:1 ultra-wide format).
TITLE TEXT (large, centered):
"[EXACT TEXT]"
- Bold modern sans-serif, uppercase
- [Color specification or gradient]
- Crystal clear, perfectly legible
- Sharp crisp lettering
SUBTITLE TEXT (below title):
"[Exact subtitle]"
- Clean font, [color]
- Readable professional typography
[VISUAL ELEMENTS]:
- [Specific objects, positioned where]
- [Prominent features, branding elements]
- Photorealistic 3D rendering
BOTTOM [CORNER] (optional):
- [Logo mark description]
- "[Brand text]" in [color]
BACKGROUND COMPOSITION (3:1 ultra-wide):
- [Gradient colors with hex codes]
- [Atmospheric elements: stars, particles, etc.]
- [Lighting effects: glows, halos]
LIGHTING:
- [Specific lighting techniques]
- [Glow sources and colors]
- Modern cinematic quality
COLOR PALETTE:
- Background: [hex codes]
- Accents: [hex codes]
- Text: [color with effects]
STYLE:
- Photorealistic 3D rendering
- [Aesthetic description]
- Sharp detail, cinematic quality
TEXT QUALITY CRITICAL:
- Crystal clear text rendering
- No distortion whatsoever
- Perfect spelling: "[EXACT TEXT]"
- Professional typographic hierarchy
MOOD: [Emotional tone, brand feeling]
Key Principles:
Generate multiple composition variations for visual comparison:
Benefits:
Cost (3 variations):
| Model | Single | 3 Variants | Quality | Speed |
|---|---|---|---|---|
| Ideogram v3 Turbo | $0.03 | $0.09 | Excellent | ~6s |
| Imagen 4 Fast | $0.02 | $0.06 | Good | <1s |
| Recraft v4 | $0.04 | $0.12 | Excellent | ~10s |
| Imagen 4 | $0.04 | $0.12 | Good | ~4s |
| GPT Image 1.5 (low) | $0.01 | $0.03 | Good | ~20s |
| GPT Image 1.5 (med) | $0.05 | $0.15 | Better | ~20s |
| Ideogram v3 Quality | $0.09 | $0.27 | Best | ~20s |
| Nano Banana Pro | $0.15+ | $0.45+ | Excellent | ~60s |
| Model | Cost | Use Case |
|---|---|---|
| FLUX Schnell | $0.003 | Testing, iteration |
| FLUX 1.1 Pro | $0.04 | Production quality |
| FLUX 2 Max | $0.04+ | Highest fidelity |
import Replicate from 'replicate';
import fs from 'fs-extra';
import https from 'https';
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
const BANNER_PROMPT = `Professional technology banner (3:1 ultra-wide format).
TITLE TEXT (large, centered):
"PROJECT NAME"
- Bold modern sans-serif, uppercase
- Gradient from deep blue to vibrant purple
- Crystal clear, perfectly legible
BACKGROUND COMPOSITION:
- Deep space gradient (#080810 → #0d1520)
- Modern tech geometric patterns
- Radial glow effects
COLOR PALETTE:
- Background: Deep blue (#0078d4), purple (#7c3aed)
- Text: White with blue glow
TEXT QUALITY CRITICAL:
- Crystal clear sharp letterforms
- Perfect spelling: "PROJECT NAME"
MOOD: Inspiring, professional, cutting-edge technology`;
const output = await replicate.run('ideogram-ai/ideogram-v3-turbo', {
input: {
prompt: BANNER_PROMPT,
aspect_ratio: '3:1',
magic_prompt_option: 'Auto',
style_preset: 'None', // Or 'Cyberpunk', 'Art Deco', etc.
output_format: 'png',
}
});
// Handle various output formats
let imageUrl = Array.isArray(output) ? output[0] : output;
if (typeof imageUrl === 'object') {
imageUrl = imageUrl.url?.() || imageUrl.url || imageUrl.href;
}
await downloadImage(imageUrl.toString(), 'assets/banner.png');
console.log('✅ Banner generated: assets/banner.png');
console.log('💰 Cost: $0.03');
const output = await replicate.run('recraft-ai/recraft-v4', {
input: {
prompt: `Ultra-wide banner for "PROJECT NAME" with integrated typography.
Modern tech aesthetic, gradient blues and purples, geometric patterns.
Clean professional design with bold title text.`,
aspect_ratio: '16:9',
}
});
// Recraft returns direct URL
await downloadImage(output[0], 'assets/banner-recraft.png');
console.log('💰 Cost: $0.04');
const output = await replicate.run('black-forest-labs/flux-2-max', {
input: {
prompt: `Ultra-wide cinematic banner for technology project.
Deep space gradient, scattered stars, radial glow.
Modern tech aesthetic, geometric patterns.
NO TEXT - clean visual composition.`,
aspect_ratio: '21:9',
resolution: '2 MP',
output_format: 'webp',
}
});
await downloadImage(output, 'assets/banner-clean.webp');
console.log('💰 Cost: ~$0.04');
// Add text via markdown overlay in README
async function downloadImage(url, filepath) {
return new Promise((resolve, reject) => {
const file = fs.createWriteStream(filepath);
const protocol = url.startsWith('https') ? https : require('http');
protocol.get(url, (response) => {
if (response.statusCode === 302 || response.statusCode === 301) {
// Follow redirect
return downloadImage(response.headers.location, filepath)
.then(resolve).catch(reject);
}
response.pipe(file);
file.on('finish', () => { file.close(); resolve(); });
}).on('error', (err) => {
fs.unlink(filepath, () => {});
reject(err);
});
});
}
const BANNERS = [
{ id: 'main', filename: 'banner-main.png', title: 'PROJECT NAME' },
{ id: 'dev', filename: 'banner-dev.png', title: 'FOR DEVELOPERS' },
{ id: 'learn', filename: 'banner-learn.png', title: 'START LEARNING' },
];
for (const banner of BANNERS) {
const output = await replicate.run('ideogram-ai/ideogram-v3-turbo', {
input: {
prompt: createPrompt(banner.title),
aspect_ratio: '3:1',
magic_prompt_option: 'Auto',
output_format: 'png',
}
});
let url = Array.isArray(output) ? output[0] : output;
if (typeof url === 'object') url = url.url?.() || url.url || url.href;
await downloadImage(url.toString(), `assets/${banner.filename}`);
console.log(`✅ ${banner.filename}`);
// Rate limiting: 2 seconds between requests
await new Promise(r => setTimeout(r, 2000));
}
console.log(`💰 Total: $${(BANNERS.length * 0.03).toFixed(2)}`);
### Package.json Integration
```json
{
"scripts": {
"generate:banner": "node scripts/generate-banner.js",
"generate:banner-text": "node scripts/generate-banner-with-text.js"
}
}
<div align="center">

**[Tagline]**
</div>
<!-- Generate: npm run generate:banner-text -->
<div align="center">

# Project Name
**[Tagline]**
</div>
<!-- Generate: npm run generate:banner -->
| Priority | Choose | When |
|---|---|---|
| Budget | Ideogram v3 Turbo | Most use cases |
| Speed | Imagen 4 Fast | Rapid iteration |
| Quality | Ideogram v3 Quality | Final production |
| Design | Recraft v4 | Art-directed work |
| Complex | Nano Banana Pro | Multilingual, infographics |
| Vector | Recraft v4 SVG | Scalable output |
| Edit | FLUX Kontext Max | Modify existing |
Pattern: Use labeled sections (TITLE TEXT, BACKGROUND, LIGHTING, etc.)
Why it works:
Technique: Specify exact hex codes in prompts
await new Promise(resolve => setTimeout(resolve, 2000));
Requirement: 2-second delay between Replicate API calls to prevent rate limit errors.
After generation, use view_image to assess banner quality:
✅ Ideal use cases:
❌ Not ideal:
Alex Cognitive Architecture (February-April 2026):
Validated Models (April 2026):
Key Learning: Ideogram v3 Turbo is the new gold standard — 63% cheaper than v2 with equivalent or better quality.