PixelLab API Comparison Test

Same source sprite processed with different endpoints, sizes, and settings. All images rendered at pixelated scaling.

192px

1. Tank Upscale Comparison

Source: imgTanks-r0-c0.png (48x48) — Friendly Commando tank facing south

Original
48x48
No processing
$0.00
v1 Pixflux 64px
48 → 64 | str=700
Current approach
$0.007/sprite
958 = $6.39
v2 Resize 128px
48 → 128 | smart upscale
Purpose-built for pixel art
$0.012/sprite
958 = $11.11
v2 Resize 200px
48 → 200 (max)
Highest resolution
$0.020/sprite
958 = $19.06
v1 Pixflux 200px
48 → 200 | str=700
v1 at same size as v2
$0.007/sprite
958 = $6.70

2. Building Upscale

Source: imgBuildings-r2-c1.png (144x144)

Original
144x144
$0.00
v2 Resize 200px
144 → 200
$0.022/sprite

3. Terrain Upscale

Source: imgRocks-r0-c3.png (48x48)

Original
48x48
$0.00
v2 Resize 128px
48 → 128
$0.013/sprite

4. 8-Direction Rotations (64px)

v2/generate-8-rotations-v2 — one API call generates all 8 directions. Cost: $0.048/call ($0.006/direction). Compare to 8 individual resize calls at $0.012 each = $0.096

North
NE
East
SE
South
SW
West
NW

5. 8-Direction Rotations (128px)

Same endpoint, larger output. Cost: ~$0.048/call

North
NE
East
SE
South
SW
West
NW

6. Cost Summary

ApproachEndpointOutput$/sprite958 spritesQuality
v1 Pixflux 64v1/pixflux64x64$0.007$6.39Low — barely larger
v1 Pixflux 200v1/pixflux200x200$0.007$6.70Medium — cheap but less smart
v2 Resize 128v2/resize128x128$0.012$11.11Good — smart pixel art upscale
v2 Resize 200v2/resize200x200$0.020$19.06Best — but overkill?
v2 8-Rotations 128v2/8-rotations8x 128x128$0.006variesGreat for tanks/turrets
Budget: $24.72 remaining of $25.00
Test cost: $0.28 for 10 tests (6 successful images + 16 rotation images)
Recommended: v2/resize at 128px for most sprites ($11.11 total), v2/8-rotations for tanks ($0.048/variant for all 8 dirs)