Login
Back to Blog
EnglishTutorial

Ghibli Style Photo Transformation with GPT-image-2 — Turn Any Photo Into Anime Art

Transform photos into Studio Ghibli anime style using GPT-image-2 via Crazyrouter API. Multiple anime styles covered with full code examples.

C
Crazyrouter Team
May 1, 2026 / 179 views
Share:
Ghibli Style Photo Transformation with GPT-image-2 — Turn Any Photo Into Anime Art

Ghibli Style Photo Transformation with GPT-image-2 — Turn Any Photo Into Anime Art#

The "Ghibli filter" went mega-viral in early 2025 — people turning their photos into Studio Ghibli-style anime illustrations. GPT-image-2 takes this further with its ability to generate rich, detailed anime scenes from text descriptions alone.

This is Part 4 of our GPT-image-2 series. We'll cover multiple anime styles beyond just Ghibli.

Result Preview#

Ghibli Style Illustration

A cozy café on a rainy afternoon — warm interior light, rain on the window, an orange cat sleeping nearby. The watercolor textures and warm color palette nail that classic Ghibli feel.

Full Code#

Python — Ghibli Style#

python
from openai import OpenAI

client = OpenAI(
    api_key="your-crazyrouter-api-key",
    base_url="https://crazyrouter.com/v1"
)

ghibli_prompt = """
A warm anime illustration of a girl reading a book in a cozy cafe 
on a rainy afternoon. Golden interior light, rain on the window, 
an orange cat sleeping nearby. Soft watercolor textures, hand-painted 
feel, warm color palette, detailed background. Japanese animation 
style reminiscent of classic Ghibli films. No text in the image.
"""

response = client.images.generate(
    model="gpt-image-2",
    prompt=ghibli_prompt,
    size="1024x1024",
    n=1
)

print(f"Ghibli style: {response.data[0].url}")

curl#

bash
curl -X POST https://crazyrouter.com/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer your-crazyrouter-api-key" \
  -d '{
    "model": "gpt-image-2",
    "prompt": "Warm anime illustration of a girl reading in a cozy cafe on a rainy afternoon. Golden light, rain on window, orange cat sleeping nearby. Soft watercolor textures, hand-painted feel, warm colors, detailed background. Classic Ghibli animation style. No text.",
    "size": "1024x1024",
    "n": 1
  }'

Node.js#

javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: "your-crazyrouter-api-key",
  baseURL: "https://crazyrouter.com/v1",
});

const response = await client.images.generate({
  model: "gpt-image-2",
  prompt: `Warm anime illustration of a girl reading in a cozy cafe 
on a rainy afternoon. Golden light, rain on window, orange cat nearby. 
Watercolor textures, hand-painted feel, warm palette. 
Classic Ghibli animation style. No text.`,
  size: "1024x1024",
  n: 1,
});

console.log(response.data[0].url);

Style Variations#

GPT-image-2 can generate multiple anime styles. Here are prompt templates for each:

Makoto Shinkai Style (Your Name, Weathering with You)#

python
shinkai_prompt = """
A breathtaking anime scene in Makoto Shinkai style. 
A girl standing on a rooftop at sunset, looking at a sky filled 
with dramatic cumulus clouds painted in orange, pink, and purple. 
City skyline below with detailed buildings catching golden light. 
Hyper-detailed sky, lens flare, photorealistic lighting with 
anime character style. Vibrant saturated colors.
"""

Spy×Family Style#

python
spy_prompt = """
A family portrait in the style of Spy×Family anime. 
A father in a sharp suit, a mother in an elegant dress, 
and a cute little girl with a big smile between them. 
Clean line art, pastel color palette, soft shading. 
Cheerful and warm atmosphere. Manga illustration quality.
"""

Cyberpunk Anime Style#

python
cyber_prompt = """
A cyberpunk anime scene. A girl with neon-highlighted hair 
standing in a rain-soaked Tokyo alley at night. Holographic 
advertisements and neon signs reflecting in puddles. 
Dark atmosphere with vibrant neon accents (pink, cyan, purple). 
Detailed mechanical elements. Ghost in the Shell meets Akira aesthetic.
"""

Watercolor Manga Style#

python
watercolor_prompt = """
A serene watercolor manga illustration. A boy sitting under 
a cherry blossom tree by a river, petals floating in the breeze. 
Soft, translucent watercolor washes. Minimal line art. 
Peaceful, contemplative mood. Traditional Japanese watercolor 
painting meets manga illustration.
"""

Prompt Tips for Anime Styles#

TipExample Keywords
Specify the sub-style"Ghibli", "Shinkai", "90s anime", "shonen manga"
Describe lighting"golden hour", "neon glow", "soft diffused light"
Mention texture"watercolor", "cel-shaded", "hand-painted", "ink wash"
Set the mood"nostalgic", "melancholic", "cheerful", "dramatic"
Add "No text"Prevents unwanted text artifacts in the image

Batch Style Transfer#

Generate the same scene in multiple styles:

python
scene = "A girl walking through a sunflower field at golden hour"

styles = {
    "ghibli": "soft watercolor, warm palette, Ghibli animation style",
    "shinkai": "hyper-detailed sky, lens flare, Makoto Shinkai style",
    "cyberpunk": "neon accents, rain, holographic elements, cyberpunk anime",
    "vintage": "90s anime aesthetic, cel-shaded, VHS grain texture",
}

for style_name, style_desc in styles.items():
    response = client.images.generate(
        model="gpt-image-2",
        prompt=f"{scene}. {style_desc}. No text in image.",
        size="1024x1024",
        n=1
    )
    print(f"{style_name}: {response.data[0].url}")

Cost#

ItemPrice (via Crazyrouter)
1 image (1024×1024)~$0.04–0.08
4-style batch~$0.20–0.32

🚀 Crazyrouter — One API key, 600+ models. GPT-image-2, GPT-5.5, Claude Opus 4.7, DeepSeek V4, and more.

👉 crazyrouter.com

Implementation Guides

Related Posts

Codex CLI Installation Guide 2026: macOS, Linux, WSL, Proxies, and CITutorial

Codex CLI Installation Guide 2026: macOS, Linux, WSL, Proxies, and CI

A developer-focused codex cli installation guide article with comparisons, code examples, pricing tradeoffs, FAQ, and a Crazyrouter workflow for production teams.

Jun 2
Can Claude Code Build a World Cup 2026 Match Predictor? A Real Crazyrouter API TestTutorial

Can Claude Code Build a World Cup 2026 Match Predictor? A Real Crazyrouter API Test

We built a reproducible World Cup 2026 match predictor demo with Claude Code-style workflow, Elo/Poisson probabilities, charts, and real Crazyrouter API calls through https://cn.crazyrouter.com/v1.

Jun 12
Build a World Cup Odds Movement Monitor with Claude Code and claude-fable-5Tutorial

Build a World Cup Odds Movement Monitor with Claude Code and claude-fable-5

A second Claude Code project in the World Cup analytics series: build an odds movement monitor, compute implied probability shifts, and use claude-fable-5 through Crazyrouter to generate validated JSON analysis without betting advice.

Jun 13
AI Video Generation APIs Guide 2026 - Sora 2, Veo3, Kling, Luma, and Runway ComparedTutorial

AI Video Generation APIs Guide 2026 - Sora 2, Veo3, Kling, Luma, and Runway Compared

Complete guide to AI video generation APIs including OpenAI Sora 2, Google Veo3, Kling 2.5, Luma Dream Machine, and Runway Gen-4. Code examples and pricing included.

Jan 22
Cheaper AI API in 2026: How to Lower LLM Costs Without Losing QualityTutorial

Cheaper AI API in 2026: How to Lower LLM Costs Without Losing Quality

At 1M GPT-4 tokens per month, official API pricing is $30, while Crazyrouter lists $21 for the same volume (pricing data updated 2026-03-06). That 30% gap looks clear on paper, yet real production...

Mar 18
AI Agent Memory Patterns: Building Stateful AI Applications with Long-Term Memory in 2026Tutorial

AI Agent Memory Patterns: Building Stateful AI Applications with Long-Term Memory in 2026

"Learn how to implement memory patterns for AI agents. Covers conversation buffers, sliding windows, summary memory, vector-based retrieval, and hybrid approaches using GPT-5, Claude, and open-source tools."

Mar 13