返回博客
简体中文Tutorial

GPT-image-2 实战:AI 预测未来宝宝 — 看看你们的孩子长什么样

用 GPT-image-2 通过 Crazyrouter API 生成逼真的未来宝宝预测照片。描述父母特征,AI 自动融合生成宝宝人像。附完整代码。

C
Crazyrouter Team
2026年5月1日 / 1103 次浏览
分享:
GPT-image-2 实战:AI 预测未来宝宝 — 看看你们的孩子长什么样

GPT-image-2 实战:AI 预测未来宝宝 — 看看你们的孩子长什么样#

"我们的宝宝会长什么样?" — 每对情侣都问过这个问题。现在 GPT-image-2 可以根据描述的父母特征,融合生成一张逼真的宝宝人像照片。

这个玩法在 TikTok 和 Instagram 上爆火,情侣们纷纷分享 AI 预测的宝宝照片。效果可爱、适合分享、而且出奇地逼真。

本文是系列第五篇。

效果展示#

AI 预测未来宝宝

一个融合了东亚和欧洲特征的混血宝宝 — 自然光线、专业人像摄影风格,看起来就像真实照片。

完整代码#

Python#

python
from openai import OpenAI

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

# 描述父母特征
parent_a = {
    "ethnicity": "East Asian",
    "features": "dark brown eyes, straight black hair, round face, small nose"
}

parent_b = {
    "ethnicity": "Northern European",
    "features": "blue eyes, wavy light brown hair, oval face, high nose bridge"
}

baby_prompt = f"""
A professional portrait photo of an adorable 1-year-old baby.
The baby is a natural blend of two parents:
- Parent A: {parent_a['ethnicity']} — {parent_a['features']}
- Parent B: {parent_b['ethnicity']} — {parent_b['features']}

The baby should have a natural, realistic blend of both parents' features.
Possible traits: light brown eyes, slightly wavy dark brown hair, 
medium nose bridge, mixed facial structure.

Setting: natural soft window light, clean white/cream background.
Style: professional baby portrait photography, 85mm lens, 
shallow depth of field, warm tones.
The baby is smiling gently, wearing a simple white onesie.

Photorealistic. No text, no watermark.
"""

response = client.images.generate(
    model="gpt-image-2",
    prompt=baby_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": "Professional portrait photo of an adorable 1-year-old baby. Natural blend of East Asian and Northern European features: light brown eyes, slightly wavy dark brown hair, medium nose bridge. Soft window light, cream background. Baby portrait photography, 85mm lens, shallow depth of field, warm tones. Baby smiling in white onesie. Photorealistic. 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: `Professional portrait of an adorable 1-year-old baby.
Natural blend of East Asian and Northern European features.
Light brown eyes, slightly wavy dark brown hair, medium nose bridge.
Soft window light, cream background, baby portrait photography.
85mm lens, shallow depth of field, warm tones.
Baby smiling in white onesie. Photorealistic. No text.`,
  size: "1024x1024",
  n: 1,
});

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

特征组合模板#

东亚 × 东亚#

code
父方:圆脸,单眼皮,直黑发,小鼻子
母方:鹅蛋脸,双眼皮,深棕发,高颧骨
宝宝特征:杏仁眼,柔软黑发,五官均衡

东亚 × 非洲#

code
父方:深棕色眼睛,直黑发,圆脸
母方:深棕色眼睛,卷曲黑发,轮廓分明,丰满嘴唇
宝宝特征:温暖棕色肤色,波浪黑发,大眼睛

欧洲 × 拉丁美洲#

code
父方:蓝眼睛,金发,白皙皮肤,窄脸
母方:棕色眼睛,深色波浪发,橄榄色皮肤,丰满嘴唇
宝宝特征:榛色眼睛,浅棕波浪发,温暖肤色

南亚 × 欧洲#

code
父方:深棕色眼睛,黑发,棕色皮肤,浓眉
母方:绿色眼睛,红棕发,白皙皮肤,雀斑
宝宝特征:浅棕色眼睛,深棕波浪发,中等肤色

生成不同年龄#

看看宝宝在不同年龄的样子:

python
ages = [
    ("新生儿", "a sleeping newborn baby wrapped in a white blanket"),
    ("1岁", "a smiling 1-year-old baby sitting up"),
    ("3岁", "a cheerful 3-year-old toddler playing"),
    ("5岁", "a happy 5-year-old child laughing"),
]

features = "blend of East Asian and European features, light brown eyes, wavy dark hair"

for age, description in ages:
    response = client.images.generate(
        model="gpt-image-2",
        prompt=f"Professional portrait of {description}. {features}. "
               f"Natural soft lighting, clean background. Photorealistic. No text.",
        size="1024x1024",
        n=1
    )
    print(f"{age}: {response.data[0].url}")

Prompt 技巧#

  • 具体描述特征 — "浅棕色眼睛" 比 "混合眼睛" 效果好
  • 描述融合结果 — 不要只列父母特征,要描述预期的融合效果
  • 摄影关键词很重要 — 85mm lens, shallow depth of field, natural light 大幅提升真实感
  • 加 "Photorealistic. No text." — 防止卡通化输出和文字干扰

免责声明#

AI 宝宝预测纯属娱乐。遗传学远比可见特征的融合复杂得多,结果不代表实际遗传结果。请负责任地使用,尊重隐私。

成本#

项目价格(Crazyrouter)
1 张宝宝人像约 $0.04-0.08
4 个年龄系列约 $0.20-0.32

🚀 Crazyrouter — 一个 API Key,600+ 模型。GPT-image-2、GPT-5.5、Claude Opus 4.7、DeepSeek V4 等。

👉 crazyrouter.com

Implementation Guides

主题

Tutorial

相关文章

GPT-image-2 实战:AI 手办生成器 — 把任何人变成盒装公仔Tutorial

GPT-image-2 实战:AI 手办生成器 — 把任何人变成盒装公仔

用 GPT-image-2 通过 Crazyrouter API 生成超逼真的盒装手办图片,附 10 个职业模板和完整代码。

5月1日
Crazyrouter 使用指南教程:从注册、创建密钥到对话与生图Tutorial

Crazyrouter 使用指南教程:从注册、创建密钥到对话与生图

用真实页面截图走完 Crazyrouter 的注册、模型筛选、API 密钥创建、充值、游乐场对话、生图工作台和 Claude Code/Codex 接入。说明余额与密钥额度的区别,以及第一次使用时常见的排查方法。

10月9日
企业如何统一使用 AI?用 LiteLLM 管理多部门、模型权限与费用Tutorial

企业如何统一使用 AI?用 LiteLLM 管理多部门、模型权限与费用

企业使用 AI 后,如何解决多个部门共用一把 Key、模型权限难控制、预算容易失控和费用无法归属的问题?本文以 LiteLLM 为企业内部网关,通过 Crazyrouter 统一接入模型 API,介绍团队与应用账户、独立虚拟密钥、模型白名单、部门预算、限流、用量统计和账单核对的实施方法,并附实际配置导出、API 调用记录与上线验收清单。

10月27日
Claude Code 安装与使用指南 - AI 编程助手配置教程Tutorial

Claude Code 安装与使用指南 - AI 编程助手配置教程

完整指南,教你如何安装和配置 Claude Code 这一 AI 编程助手。学习如何安装 Node.js、配置 API Token,并在终端中开始与你的 AI 一起编程。

1月24日
2026年最佳AI音乐生成器:Suno vs Udio vs Stable Audio 对比Tutorial

2026年最佳AI音乐生成器:Suno vs Udio vs Stable Audio 对比

选择合适的AI音乐生成器可能令人眼花缭乱。本指南对比了2026年可用的顶级AI音乐工具,包括 Suno AI、Udio 和 Stable Audio,并提供真实价格和API访问信息。

1月23日
一個 API Key 呼叫 GPT、Claude、Gemini:5 分鐘設定教學Tutorial

一個 API Key 呼叫 GPT、Claude、Gemini:5 分鐘設定教學

給台灣開發者的實作教學:用 Crazyrouter 的 OpenAI 相容端點,透過一個 API Key 呼叫 GPT、Claude 與 Gemini。

5月22日