Login
Back to Blog
日本語Tutorial

GPT-image-2 でジブリ風写真変換 — どんな写真もアニメアートに

Crazyrouter API 経由の GPT-image-2 で写真をスタジオジブリ風アニメスタイルに変換。複数のアニメスタイルを完全コード付きで解説。

C
Crazyrouter Team
May 2, 2026 / 103 views
Share:
GPT-image-2 でジブリ風写真変換 — どんな写真もアニメアートに

GPT-image-2 でジブリ風写真変換 — どんな写真もアニメアートに#

2025年初頭には「ジブリフィルター」が大流行しました。自分の写真をスタジオジブリ風のアニメイラストに変える、あの流れです。GPT-image-2 はそこからさらに一歩進んで、テキストの説明だけで、豊かで細密なアニメシーンまで生成できます。

これは GPT-image-2 シリーズの第4回です。今回はジブリ風だけでなく、複数のアニメスタイルを扱います。

生成結果プレビュー#

ジブリ風イラスト

雨の午後の居心地のいいカフェ。あたたかな室内灯、窓を打つ雨、近くで眠る茶トラ猫。水彩っぽい質感とあたたかな色調で、クラシックなジブリ感がしっかり出ています。

完全コード#

Python — ジブリ風#

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);

スタイルバリエーション#

GPT-image-2 は複数のアニメスタイルを生成できます。以下はそれぞれのプロンプトテンプレートです。

新海誠スタイル(君の名は。、天気の子)#

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 スタイル#

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.
"""

サイバーパンクアニメ風#

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.
"""

水彩漫画風#

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.
"""

アニメスタイル向けプロンプトのコツ#

コツ例となるキーワード
サブスタイルを明示する"Ghibli", "Shinkai", "90s anime", "shonen manga"
光の描写を入れる"golden hour", "neon glow", "soft diffused light"
質感を指定する"watercolor", "cel-shaded", "hand-painted", "ink wash"
ムードを設定する"nostalgic", "melancholic", "cheerful", "dramatic"
"No text" を入れる画像内に不要な文字が出るのを防ぐ

バッチでスタイル変換#

同じシーンを複数スタイルで生成する例です。

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}")

コスト#

項目価格(Crazyrouter 経由)
画像1枚(1024×1024)約 $0.04–0.08
4スタイル一括生成約 $0.20–0.32

🚀 Crazyrouter — 1つの API キーで 600 以上のモデル。GPT-image-2、GPT-5.5、Claude Opus 4.7、DeepSeek V4 などに対応。

👉 crazyrouter.com

Implementation Guides

Topics

Tutorial

Related Posts

GPT-image-2 で AI ミーム生成 & ぬりえブック制作 — 楽しくて本当に稼げるプロジェクトTutorial

GPT-image-2 で AI ミーム生成 & ぬりえブック制作 — 楽しくて本当に稼げるプロジェクト

Crazyrouter API 経由の GPT-image-2 で AI ミームジェネレーターとぬりえページ制作ツールを構築。楽しく収益化しやすい2つのプロジェクトを完全コード付きで解説。

May 2
GPT-image-2 で AI 顔相診断 & パーソナルカラー分析 — 2つのバズ活用法を1本で解説Tutorial

GPT-image-2 で AI 顔相診断 & パーソナルカラー分析 — 2つのバズ活用法を1本で解説

Crazyrouter API 経由の GPT-image-2 で AI 顔相診断ツールとパーソナルカラー診断ツールを作る方法。Python、curl、Node.js の完全コード付き。

May 2
GPT-image-2 で AI 未来の赤ちゃん予測 — 将来の子どもの顔を見てみようTutorial

GPT-image-2 で AI 未来の赤ちゃん予測 — 将来の子どもの顔を見てみよう

Crazyrouter API 経由の GPT-image-2 で、将来の赤ちゃんの顔をリアルに予測生成。Python・curl・Node.js の完全コード付き。

May 2
GPT-5 と GPT-5.2 に API 経由でアクセスする方法 - 完全開発者ガイドTutorial

GPT-5 と GPT-5.2 に API 経由でアクセスする方法 - 完全開発者ガイド

Crazyrouter の統合 API を通じて、OpenAI の最新モデルである GPT-5、GPT-5.2、そして o3-pro にアクセスする方法を解説します。Python、Node.js、curl のステップバイステップ例付き。

Jan 23
Claude Code インストールおよび使用ガイド - AI プログラミングアシスタントのセットアップTutorial

Claude Code インストールおよび使用ガイド - AI プログラミングアシスタントのセットアップ

Claude Code(AI プログラミングアシスタント)のインストールと設定を行うための完全ガイド。Node.js のセットアップ方法、API トークンの設定方法、ターミナルで AI と一緒にコーディングを始める手順を解説します。

Jan 24
GPT-image-2 で AI 手相占い — 1枚の写真からプロ仕様の手相分析を生成Tutorial

GPT-image-2 で AI 手相占い — 1枚の写真からプロ仕様の手相分析を生成

Crazyrouter API 経由で GPT-image-2 を使い、美しい手相占いインフォグラフィックを生成する方法。Python、curl、Node.js の完全コード付き。

May 2