Login
Back to Blog
Chuyển Đổi Ảnh Sang Phong Cách Ghibli Với GPT-image-2 — Biến Mọi Bức Ảnh Thành Tranh Anime

Chuyển Đổi Ảnh Sang Phong Cách Ghibli Với GPT-image-2 — Biến Mọi Bức Ảnh Thành Tranh Anime

C
Crazyrouter Team
May 2, 2026
8 viewsTiếng ViệtTutorial
Share:

Chuyển Đổi Ảnh Sang Phong Cách Ghibli Với GPT-image-2 — Biến Mọi Bức Ảnh Thành Tranh Anime#

"Bộ lọc Ghibli" đã viral cực mạnh vào đầu năm 2025 — mọi người đua nhau biến ảnh của mình thành tranh minh họa anime phong cách Studio Ghibli. GPT-image-2 đưa xu hướng này lên tầm cao mới với khả năng tạo ra các cảnh anime chi tiết, phong phú chỉ từ mô tả văn bản.

Đây là Phần 4 trong chuỗi bài viết về GPT-image-2. Chúng ta sẽ khám phá nhiều phong cách anime khác nhau, không chỉ riêng Ghibli.

Xem Trước Kết Quả#

Tranh minh họa phong cách Ghibli

Một quán cà phê ấm cúng trong buổi chiều mưa — ánh sáng ấm áp bên trong, mưa rơi trên cửa kính, một chú mèo cam đang ngủ gần đó. Chất liệu màu nước và bảng màu ấm tạo nên cảm giác Ghibli kinh điển.

Mã Nguồn Đầy Đủ#

Python — Phong Cách Ghibli#

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 café 
on a rainy afternoon. Golden light streaming through the window, 
rain droplets on the glass, an orange cat sleeping on the seat nearby.

Soft watercolor textures, hand-painted feel, warm color palette.
Classic Studio Ghibli animation style. 
Detailed background with lived-in atmosphere.
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);

Các Biến Thể Phong Cách#

GPT-image-2 có thể tạo nhiều phong cách anime khác nhau. Dưới đây là mẫu prompt cho từng phong cách:

Phong Cách Makoto Shinkai (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.
"""

Phong Cách 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.
"""

Phong Cách Cyberpunk Anime#

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

Phong Cách Manga Màu Nước#

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

Mẹo Viết Prompt Cho Phong Cách Anime#

MẹoTừ khóa ví dụ
Chỉ rõ phong cách phụ"Ghibli", "Shinkai", "90s anime", "shonen manga"
Mô tả ánh sáng"golden hour", "neon glow", "soft diffused light"
Đề cập chất liệu"watercolor", "cel-shaded", "hand-painted", "ink wash"
Thiết lập tâm trạng"nostalgic", "melancholic", "cheerful", "dramatic"
Thêm "No text"Tránh hiện chữ không mong muốn trong ảnh

Chuyển Đổi Phong Cách Hàng Loạt#

Tạo cùng một cảnh với nhiều phong cách khác nhau:

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

Chi Phí#

Hạng mụcChi phí (qua Crazyrouter)
1 ảnh (1024×1024)~$0.04–0.08
4 phong cách hàng loạt~$0.20–0.32

🚀 Crazyrouter — Một API key, hơn 600 mô hình. GPT-image-2, GPT-5.5, Claude Opus 4.7, DeepSeek V4 và nhiều hơn nữa.

👉 crazyrouter.com

Related Articles