Create images with custom dimensions, colors, gradients, and more!
This API allows you to generate images dynamically by specifying dimensions and additional parameters. It is perfect for testing layouts, placeholders, or any use case where you need quick and customizable images.
Use the following endpoint to generate images:
GET /api/?dimensions=:dimensionsReplace:dimensionswith the desired width and height in the format:
/api/?dimensions=1000- Square image (1000x1000)/api/?dimensions=1000x800- Rectangular image (1000x800)You can customize the image using the following parameters:
color: Background color (e.g.,color=blue).gradient: Background gradient in the formatcolor1,color2...colorN&direction=horizontal,vertical,radial(e.g.,gradient=red,blue&direction=vertical).opacity: Background opacity (e.g.,opacity=0.5).textcolor: Color of the text (e.g.,textcolor=white).The maximum allowed dimensions are 1920x1080. If you exceed these limits, the API will return an error.