Login
Back to Blog
中文Tutorial

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

用 GPT-image-2 通过 Crazyrouter API 生成 AI 面相分析报告和个人色彩季节诊断图。附完整 Python、curl、Node.js 代码。

C
Crazyrouter Team
May 1, 2026 / 333 views
Share:
GPT-image-2 实战:AI 面相分析 & 个人色彩诊断 — 两大爆款玩法一文搞定

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

Implementation Guides

Related Posts

Grok4 免费使用教程 2026:免费额度、API 接入与平替方案Tutorial

Grok4 免费使用教程 2026:免费额度、API 接入与平替方案

Grok4 免费使用完整教程,涵盖 xAI 免费额度详解、API 接入方法、平替方案对比,以及通过 Crazyrouter 低成本使用 Grok4 的实操指南。

Apr 29
GPT-5.2 完整指南:OpenAI 最新旗舰模型 API 使用教程 2026Tutorial

GPT-5.2 完整指南:OpenAI 最新旗舰模型 API 使用教程 2026

全面介绍 GPT-5.2 的能力、API 接入方法、与 Claude Opus 4.6/Gemini 3 Pro 对比、定价分析,以及通过 Crazyrouter 低价使用的完整教程。

Apr 15
WorkBuddy 接入 claude-opus-4-8 与 gpt-5.5:用 Crazyrouter 一键配置自定义模型Tutorial

WorkBuddy 接入 claude-opus-4-8 与 gpt-5.5:用 Crazyrouter 一键配置自定义模型

这篇中文指南从 models.json、PowerShell 一键配置、模型选择、Token 权限、成本控制、稳定性和排错等维度,讲解如何在 WorkBuddy 中接入 claude-opus-4-8、gpt-5.5 等 Crazyrouter 自定义模型。

Jun 15
Gemini 是什么?2026 开发者完整指南:功能、价格和 API 接入Tutorial

Gemini 是什么?2026 开发者完整指南:功能、价格和 API 接入

面向开发者的 gemini 是什么 完整指南:概念、替代方案、代码接入、价格对比、常见问题和 Crazyrouter API 实战。

Jun 14
GPT代理模式完全指南:OpenAI Agent模式使用教程Tutorial

GPT代理模式完全指南:OpenAI Agent模式使用教程

详细介绍GPT代理模式(Agent Mode)的功能、使用方法和API接入教程,帮助开发者快速上手OpenAI最新的自主任务执行能力。

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

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

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

May 22