← Back to Home

API Documentation

Everything you need to generate placeholder images.

URL Structure

Base URL:

https://image.pixellab.com.tr

Full Pattern:

https://image.pixellab.com.tr/{width}x{height}/{bgcolor}/{textcolor}.{format}?text=&retina=&grayscale=
URL Parameters
ParameterTypeRequiredDescriptionDefault
{width}integerWidth (pixels) (1-4096)800
{height}integerHeight (pixels) (1-4096)600
{bgcolor}hexBackground color (hex)EEEEEE
{textcolor}hexText color (hex)AAAAAA
.{format}stringOutput formatpng
Query Parameters
ParameterTypeDescriptionExample
textstringCustom text (max 100 chars)?text=Hello+World
retinaintegerRetina multiplier (2 or 3)?retina=2
grayscalebooleanGrayscale mode?grayscale=1

Live Examples

https://image.pixellab.com.tr/400x300
Basic 400×300
https://image.pixellab.com.tr/400x300.jpg
JPG Format
https://image.pixellab.com.tr/400x300/00B8D4
Custom Background
https://image.pixellab.com.tr/400x300/2D3436/00B8D4
Custom Colors
https://image.pixellab.com.tr/400x300?text=Hello
Custom Text
https://image.pixellab.com.tr/400x300?grayscale=1
Grayscale
Limits
  • Max Size: 4096×4096 pixels
  • Min Size: 1×1 pixels
  • Supported Formats: PNG, JPG, WebP, GIF
  • Cache: 1 year (public, immutable)