Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Photo to pixel avatar

Redraw one consented photo of a person, pet, plush or object as a square pixel-art avatar with chunky pixels, a limited palette and a clean bust silhouette.

示例

Photo to pixel avatar

Photo to pixel avatar

在线运行

在 SandBase sandbox 中运行,并在 Lab 中查看结果。

在 Lab 中打开 ↗

你将获得什么

Bring one consented photo of a single subject. The Skill returns one 1:1 pixel avatar PNG and a bilingual run report.

工作原理

  1. 01

    Pick a pixel palette

    Photo to Pixel Avatar reads photo, consent and palette. auto keeps a natural limited palette, gameboy uses four shades of green, nes a saturated retro palette and pastel a soft low-contrast one. The subject is a single person, pet, plush or object. A simple background in the photo keeps the head-and-shoulders silhouette crisp.

  2. 02

    Redraw in chunky pixels

    With Node.js 18 or later and SANDBASE_API_KEY, run node scripts/generate.mjs run --brief assets/sample-brief.en.json --out /tmp/pixel-run --lang en. The stripped photo goes to openai/gpt-image-2.5-flare/edit, which redraws the subject with chunky stepped edges and a limited palette on a flat or lightly shaded background, as one square PNG.

  3. 03

    Test avatar.png at icon size

    The deliverable is avatar.png at 1:1 with no text, plus JSON and English and Chinese HTML reports. Inspect composition, pixel structure and palette at full resolution and at a small icon size. A logo, watermark, signature or extra mascot counts as a defect.

常见问题

Which palette suits my Photo to Pixel Avatar?

Photo to Pixel Avatar uses auto by default, a natural limited palette. gameboy gives four-shade green, nes a saturated retro palette and pastel a soft low-contrast look. All four keep the same chunky pixel structure.

Can Photo to Pixel Avatar use a pet photo?

Yes. Photo to Pixel Avatar accepts a person, pet, plush or object, one subject per photo. A clear photo facing the camera, at least 512 px on the short side, works best. People in the photo must have consented.

Does Photo to Pixel Avatar charge per avatar?

Yes. Photo to Pixel Avatar calls openai/gpt-image-2.5-flare/edit for each approved brief, billed to your SandBase account. The plan command runs offline, and the run command's --budget flag caps the preflight check so it will not submit above that figure. Resume never repeats the purchase. Rates are at https://www.sandbase.ai/pricing.

Does Photo to Pixel Avatar resize or crop the image?

No. Photo to Pixel Avatar does no silent resize, crop or fixed text overlay on the model's PNG. The report states the actual dimensions, which may differ from exact 1:1 by up to 2%.

Can Photo to Pixel Avatar make a game character I like?

No. Photo to Pixel Avatar is not for fan art of copyrighted characters or brand reproduction. It redraws only the subject of your consented photo, and any mascot other than that subject is a defect.