Communitygithub.com

heyimjames/realistic-profile-pictures

生成逼真、不像 AI 製作的頭像和虛擬人臉,適用於應用程式模型、網站團隊/推薦頁、行銷、示範和影片。

realistic-profile-pictures 是什麼?

此技能基於 RealPFP 提示引擎和 fal.ai 的 nano-banana-2 模型,產生自然、逼真、看不出 AI 痕跡的頭像和虛擬人臉。它避免常見的 AI 生成特徵(如蠟質感、完美無瑕的美顏效果),透過正向描述(如可見毛孔、單一光源、正確解剖結構)而非否定詞彙來產生可信的人類面孔。支援三種風格:aspirational(精緻但真實)、profile(自然適合發文)、candid(紀實風格),並內建多樣性和場景一致性(天氣、光照、時間協調一致)。使用者需自行提供 fal.ai API 金鑰,可透過命令列產生 1-50 張影像,支援寬高比和解析度選擇。適用於應用程式模型填充、網站推薦頁、行銷材料、示範和影片製作,替代陳舊的庫存照片或 AI 生成的不自然面孔,但禁止用於冒充真人。

相容平台Claude Code~Codex CLICursorGemini CLI
npx skills add heyimjames/realistic-profile-pictures

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Realistic Profile Pictures

Generate believable human faces that don't read as AI, for filling app mockups, website avatars/testimonials, marketing, demos, and video with real-looking people instead of uncanny AI output or the same three Unsplash faces.

Live product this is packaged from: realpfp.vercel.app · source: github.com/heyimjames/RealPFP

What makes it look real

The value isn't the API call, it's the prompt engine. Full detail in reference/prompt-principles.md; the short version:

  • Positive description beats negation. nano-banana-2 is a Gemini-family model with no negative-prompt field, so the engine describes what a real photo has (visible pores, one light source, a single catchlight, correct anatomy) rather than listing what to avoid, naming "plastic skin" to forbid it can summon it.
  • No "poison words" (flawless, perfect, radiant, stunning, 8k…), they trigger the beauty-filter look.
  • Anatomy clause with a "hide the hand rather than mangle it" fallback.
  • Three looks: aspirational (polished but real), profile (natural, postable), candid (gritty/documentary).
  • Diversity + coherent scenes (weather/light/time always agree) baked in.

Setup

Usage

Preview prompts first (no API calls, no cost):

node scripts/generate.mjs --count 3 --mode profile --dry-run

Generate images:

FAL_KEY=your_key node scripts/generate.mjs --count 6 --mode profile --out ./faces

Flags: --count N (1–50, default 4) · --mode aspirational|profile|candid (default profile) · --out DIR (default ./pfp-out) · --aspect 1:1 · --resolution 1K|2K · --dry-run.

Images save as pfp-01.png, pfp-02.png, … Generation runs 4-at-a-time to stay within fal.ai rate limits.

Notes

  • Curate the output. Even with the tuned prompts, image models slip occasionally (usually complex hand/arm poses), generate a few extra and pick the best, exactly how the hero images on realpfp.vercel.app were chosen.
  • Bring your own key. The key is only read from the environment for the API call; it's never stored.
  • This generates fictional people for design/marketing use, it is not for impersonation or headshots of a real person.

相關技能