Login
Back to Blog
GPT-image-2 на практике: стиль Гибли — превратите любое фото в аниме-арт

GPT-image-2 на практике: стиль Гибли — превратите любое фото в аниме-арт

C
Crazyrouter Team
May 1, 2026
0 viewsРусскийTutorial
Share:

GPT-image-2 на практике: стиль Гибли — превратите любое фото в аниме-арт#

«Фильтр Гибли» стал мега-вирусным в начале 2025 года — люди превращали свои фото в иллюстрации в стиле Studio Ghibli. GPT-image-2 идёт дальше, генерируя детальные аниме-сцены из текстовых описаний.

Это часть 4 серии GPT-image-2. Покроем несколько аниме-стилей помимо Гибли.

Результат#

Иллюстрация в стиле Гибли

Уютное кафе дождливым днём — тёплый свет изнутри, дождь на окне, рыжий кот дремлет рядом. Акварельные текстуры и тёплая палитра идеально передают классический стиль Гибли.

Полный код#

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"Стиль Гибли: {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);

Вариации стилей#

Стиль Макото Синкая (Твоё имя, Дитя погоды)#

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). 
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 — один API-ключ, 600+ моделей. GPT-image-2, GPT-5.5, Claude Opus 4.7, DeepSeek V4 и другие.

👉 crazyrouter.com

Related Articles