Login
Back to Blog
GPT-image-2 实战:AI 面相分析 & 个人色彩诊断 — 两大爆款玩法一文搞定

GPT-image-2 实战:AI 面相分析 & 个人色彩诊断 — 两大爆款玩法一文搞定

C
Crazyrouter Team
May 1, 2026
137 views中文Tutorial
Share:

GPT-image-2 实战:AI 面相分析 & 个人色彩诊断#

社交媒体上又两个爆火的 AI 图像玩法:AI 面相分析个人色彩季节诊断。两者都利用了 GPT-image-2 生成带有清晰文字标注的信息图的能力。

本文是 GPT-image-2 系列第二篇,一次搞定两个玩法。

效果展示#

AI 面相分析#

AI 面相分析

模型分析面部特征 — 额头形状、眉形、眼型、鼻梁、唇形 — 并为每个特征生成性格解读。

个人色彩诊断#

个人色彩季节诊断

判断你属于哪个色彩季节(春/夏/秋/冬),推荐服装、妆容和配饰的最佳配色。

面相分析 — 完整代码#

Python#

python
from openai import OpenAI

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

face_reading_prompt = """
Create a professional AI face reading analysis infographic.
Style: elegant, modern, dark background with golden accent lines.

Analyze and annotate these facial features:
- Forehead shape → Career & wisdom interpretation
- Eyebrow arch → Personality & temperament
- Eye shape & spacing → Emotional intelligence
- Nose bridge & tip → Wealth & determination
- Lip shape → Communication & relationships
- Jawline → Willpower & resilience

Layout:
- Center: a stylized face outline with golden annotation lines
- Sides: interpretation cards for each feature
- Bottom: overall personality summary with strengths

Professional consultation report style. Clean typography.
"""

response = client.images.generate(
    model="gpt-image-2",
    prompt=face_reading_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 AI face reading infographic. Dark background, golden accents. Annotate forehead, eyebrows, eyes, nose, lips, jawline with personality interpretations. Center face outline with annotation lines. Side interpretation cards. Bottom personality summary. Clean modern design.",
    "size": "1024x1024",
    "n": 1
  }'

个人色彩诊断 — 完整代码#

Python#

python
color_analysis_prompt = """
Create a personal color season analysis infographic.
Style: clean, elegant, white background with soft color accents.

Show the four color seasons:
- Spring Warm: coral, peach, warm gold, cream
- Summer Cool: lavender, soft blue, rose pink, silver
- Autumn Warm: burnt orange, olive, mustard, chocolate
- Winter Cool: pure white, black, royal blue, true red

Layout:
- Top: title "Personal Color Season Analysis"
- Center: four quadrants, each showing a season with:
  - Season name and characteristics
  - 6-8 color swatches
  - Best clothing/makeup colors
  - Colors to avoid
- Bottom: "Your Season: Autumn Warm" with personalized recommendations

Professional style guide aesthetic. Fashion magazine quality.
"""

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

print(f"色彩诊断: {response.data[0].url}")

Node.js#

javascript
import OpenAI from "openai";

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

// 面相分析
const faceResult = await client.images.generate({
  model: "gpt-image-2",
  prompt: `Professional AI face reading infographic. Dark background, golden accents.
Annotate: forehead, eyebrows, eyes, nose, lips, jawline.
Each with personality interpretation. Clean modern consultation report style.`,
  size: "1024x1024",
  n: 1,
});

// 色彩诊断
const colorResult = await client.images.generate({
  model: "gpt-image-2",
  prompt: `Personal color season analysis infographic. Four seasons: Spring, Summer, Autumn, Winter.
Each with color swatches and clothing recommendations.
Fashion magazine quality, clean elegant design.`,
  size: "1024x1024",
  n: 1,
});

console.log("面相:", faceResult.data[0].url);
console.log("色彩:", colorResult.data[0].url);

变现思路#

方式说明
社交媒体滤镜用户上传自拍,分享结果 → 自然传播
付费报告免费基础版,详细报告收费 ¥5-20
微信小程序 / Bot自动化收费,按次计费
美妆博主工具色彩诊断作为内容素材

成本#

每次生成约 $0.04-0.08(通过 Crazyrouter)。如果收费 ¥10/次,利润率 90%+。


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

👉 crazyrouter.com

Topics

Tutorial

Related Posts

GPT-image-2 实战:吉卜力风格转换 — 把任何照片变成宫崎骏动画Tutorial

GPT-image-2 实战:吉卜力风格转换 — 把任何照片变成宫崎骏动画

用 GPT-image-2 通过 Crazyrouter API 将照片转换为吉卜力、新海诚等多种动漫风格。附完整代码和多风格 Prompt 模板。

May 1
Doubao Seed Code:字节跳动 AI 代码生成模型 - 完整 API 指南Tutorial

Doubao Seed Code:字节跳动 AI 代码生成模型 - 完整 API 指南

学习如何使用 Doubao Seed Code,这是一款由字节跳动推出的强大 AI 代码生成模型。完整的 API 教程,包含 Python、Node.js 示例以及价格对比。

Jan 26
"通义千问 API 完整指南 2026:接入教程与最佳实践"Tutorial

"通义千问 API 完整指南 2026:接入教程与最佳实践"

通义千问(Qwen)API 完整接入指南——注册、认证、代码示例(Python/Node.js/cURL),以及与官方API相比使用 Crazyrouter 的价格优势。

Apr 8
Text-Embedding-3-Small API 教程 - OpenAI 向量嵌入模型指南Tutorial

Text-Embedding-3-Small API 教程 - OpenAI 向量嵌入模型指南

使用 OpenAI text-embedding-3-small API 构建语义搜索、RAG 系统和相似度匹配的完整指南。包含 Python、Node.js 示例以及价格对比与成本优化建议。

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

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

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

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

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

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

May 1