Colors & Palettes
Target palette selection, color reduction, and built-in palettes.
Colors & Palettes
Control the color output of your generations. Constrain to specific palettes, reduce color count, or use built-in retro palettes for authentic pixel art.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
palette | string/array | No | Target palette name or array of hex colors |
color_count | integer | No | Max number of colors in output (4–256) |
Palette Formats
Named Palette
{ "palette": "nes" }Custom Hex Array
{ "palette": ["#000000", "#ffffff", "#ff0000", "#00ff00", "#0000ff"] }Built-in Palettes
| Palette | Colors | Description |
|---|---|---|
nes | 54 | NES console palette |
gameboy | 4 | Classic Game Boy greens |
snes | 256 | SNES console palette |
pico8 | 16 | PICO-8 fantasy console |
endesga_32 | 32 | Popular indie game palette |
lospec500 | 500 | Curated collection of palettes |
Color Count
Reduce the number of colors in the output for a more retro look:
| Count | Style |
|---|---|
| 4 | Very limited, Game Boy-like |
| 8 | Early retro, strong limitations |
| 16 | Classic pixel art sweet spot |
| 32 | Detailed pixel art |
| 64+ | Near-photorealistic pixel art |
Example
curl -X POST https://api.spritesynth.com/api/generations/image \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "a fantasy forest scene",
"palette": "pico8",
"color_count": 16
}'Tips
- Named palettes enforce strict color limits for authentic retro feel.
- Custom hex arrays give you full control over the color scheme.
- Combine
palettewithcolor_countfor maximum control. - Browse community palettes at Lospec.
Need help?
Join our Discord community for support and tips.
Was this page helpful?