Skip to main content

API Playground

Preview

Preview will appear here

Generated URL

Documentation

Basic Usage

The simplest way to use the API is with dimensions:

https://placehold.co/600x400

Custom Colors

Specify background and text colors using hex codes:

https://placehold.co/600x400/FF0000/FFFFFF

Image Formats

Supported formats include:

  • SVG (default)
  • PNG (.png)
  • JPG (.jpg)

Custom Text

Add custom text using the text parameter:

https://placehold.co/600x400?text=Hello+World

URL Structure

Complete URL format:

https://placehold.co/[width]x[height].[format]/[bg-color]/[text-color]?text=[text]

Quick Examples

  • Basic: /600x400
  • With format: /600x400.png
  • Custom colors: /600x400/ff0000/ffffff
  • With text: /600x400?text=Custom+Text

API Rate Limits

1000
Requests per hour
5MB
Max file size
2000px
Max dimension