Use this skill to give an agent, persona, group, or Telegram surface a real human-looking face fast.
The job is simple:
Default to:
https://generated.photos/faces/beautified/{gender}/young-adult
Notes:
beautified and young-adult are the best default for this use case.../young-adult/{gender}, but the canonical form resolves to .../{gender}/young-adultFrom the page HTML, the route families that were verified as stable are:
front-facing, left-facing, right-facingasian-race, black-race, latino-race, white-racebrown-eyes, grey-eyes, blue-eyes, green-eyesbrown-hair, black-hair, blond-hairshort, medium, longjoy, neutralDo not invent deeper URL combinations from memory. If the user wants narrower filtering, open the base page and follow the exact links that page emits.
The page already contains:
/face/... detail linksdata-image-idhttps://images.generated.photos/... preview URLsUse a direct fetch first. Return 3 to 6 options max.
python3 - <<'PY'
import json
import re
from urllib.request import Request, urlopen
url = "https://generated.photos/faces/beautified/female/young-adult"
raw = urlopen(Request(url, headers={"User-Agent": "Mozilla/5.0"})).read().decode()
cards = re.findall(
r'href="(/face/[^"]+)".*?data-image-id="([^"]+)".*?src="(https://images.generated.photos[^"]+)"',
raw,
re.S,
)
transparent = {
image_id: thumb.replace("\\u002F", "/")
for image_id, thumb in re.findall(
r'id:"([^"]+)".*?transparent:\{thumb_url:"([^"]+)"',
raw,
)
}
for n, (detail, image_id, thumb) in enumerate(cards[:6], 1):
print(json.dumps({
"n": n,
"detail": "https://generated.photos" + detail,
"thumb": thumb,
"transparent": transparent.get(image_id),
}))
PY
Do not model background as a clean route parameter.
What was verified:
transparent.thumb_urlRule:
transparent.thumb_urlog:image or twitter:imageDefault output should be:
Do not auto-pick unless the user asks.
Once the user chooses one:
When you answer, keep it compact:
I found 4 options for your agent face.
1. Option A
Detail: ...
Preview: ...
Transparent: ...
2. Option B
Detail: ...
Preview: ...
Transparent: ...
Tell me which one you want and I’ll prepare it as the avatar.
| Endpoint | Data Sent | Purpose |
|---|---|---|
| ---------- | ----------- | --------- |
| https://generated.photos | Filter path segments and face detail page requests | Find faces and open detail pages |
| https://images.generated.photos | Image GET requests only | Preview and transparent preview retrieval |
No other data is sent externally.
共 1 个版本