Marktplatz
OpenAPI
placeholder-images — Gateway API

Placeholder Images API

Media

von RoarAPI · Basispfad /placeholder-images-api

Generate placeholder images of any size for websites, applications, prototypes, UI design, testing, and development. Customize dimensions, colors, and labels, then receive either PNG or SVG output instantly.

100
Abonnenten
Neu
Bewertung
100.00 %
Verfügbarkeit
1068 ms
Latenz p95
Endpunkte werden geladen…

Dokumentation

Placeholder Images API

Placeholder Images API is a lightweight, high-performance REST API that enables developers and designers to generate customizable placeholder images on demand.

Whether you're building websites, mobile applications, design systems, prototypes, content management systems, documentation, mockups, or testing environments, this API provides a quick and reliable way to create placeholder graphics without storing static assets.

The API supports both PNG and SVG output formats, allowing developers to choose between raster images for general use or scalable vector graphics for responsive interfaces and print-quality assets.

Customize image dimensions, background color, text color, and display labels with simple query parameters. If no custom label is provided, the API automatically displays the image dimensions (for example, 640×480), making it ideal for wireframes, templates, and responsive layout development.

With its stateless architecture and fast response times, Placeholder Images API integrates seamlessly into modern development workflows and production environments.


Features

  • Generate placeholder PNG images
  • Generate scalable SVG placeholders
  • Custom image width and height
  • Custom background colors
  • Custom text colors
  • Custom placeholder labels
  • Automatic dimension labels
  • REST API
  • API Key authentication
  • Lightweight responses
  • High-performance image generation
  • Stateless architecture
  • Production-ready
  • Easy integration

Supported Output Formats

FormatDescription
PNGRaster placeholder image suitable for websites, mobile apps, and testing
SVGScalable vector placeholder ideal for responsive layouts, design systems, and print

API Endpoints

Generate PNG Placeholder

GET

/{width}/{height}

Generate a PNG placeholder image with customizable dimensions and colors.

Parameters
NameTypeRequiredDescription
widthintegerYesImage width in pixels
heightintegerYesImage height in pixels
backgroundstringNoBackground color (6-digit HEX)
colorstringNoText color (6-digit HEX)
textstringNoCustom label displayed in the center. If omitted, image dimensions are displayed automatically.

Generate SVG Placeholder

GET

/svg/{width}/{height}

Generate a scalable SVG placeholder image with customizable dimensions and colors.

Parameters
NameTypeRequiredDescription
widthintegerYesImage width in pixels
heightintegerYesImage height in pixels
backgroundstringNoBackground color (6-digit HEX)
colorstringNoText color (6-digit HEX)
textstringNoCustom label displayed in the center. If omitted, image dimensions are displayed automatically.

Parameters

width

The width of the generated image in pixels.

Example

640

height

The height of the generated image in pixels.

Example

480

background

Background color using a 6-digit hexadecimal value.

Examples

CCCCCC
F5F5F5
007BFF

color

Text color using a 6-digit hexadecimal value.

Examples

333333
FFFFFF
000000

text

Optional text displayed in the center of the placeholder image.

Examples

Coming Soon
Product Image
Hero Banner

If omitted, the image dimensions are displayed automatically (for example, 640×480).


Authentication

All requests require an API Key.

Include the following header:

x-service-api-key: YOUR_API_KEY

Example Requests

Generate a PNG placeholder

GET /640/480

Generate a custom SVG placeholder

GET /svg/1200/630?background=3366CC&color=FFFFFF&text=OpenGraph

Generate a product image placeholder

GET /800/800?background=F5F5F5&color=333333&text=Product+Image

Example Responses

PNG Response

Content-Type: image/png

SVG Response

Content-Type: image/svg+xml

Common Use Cases

Perfect for:

  • Website development
  • Mobile applications
  • UI/UX design
  • Wireframes
  • Mockups
  • Landing pages
  • Design systems
  • CMS platforms
  • E-commerce websites
  • Product catalogs
  • Image placeholders
  • API documentation
  • Blog templates
  • Portfolio websites
  • Responsive layout testing
  • Email templates
  • Dashboard development
  • Automated testing
  • Component libraries
  • Presentation builders

Error Responses

CodeDescription
400Invalid dimensions or parameters
401Invalid API Key
429Rate limit exceeded
500Internal server error

Performance

  • Fast image generation
  • Low latency
  • Lightweight responses
  • Stateless architecture
  • High throughput
  • Horizontally scalable
  • Production-ready
  • Cloud-native

Best Practices

  • Use SVG placeholders for responsive web applications and scalable graphics.
  • Use PNG placeholders for mobile apps, image previews, and legacy systems.
  • Match placeholder dimensions to your production assets to minimize layout shifts.
  • Use descriptive labels such as "Profile Image" or "Product Photo" during development.
  • Choose high-contrast text and background colors for maximum readability.

SDK Compatibility

Compatible with every HTTP client and programming language, including:

  • JavaScript
  • TypeScript
  • Python
  • Go
  • Java
  • C#
  • PHP
  • Ruby
  • Rust
  • Swift
  • Kotlin
  • Dart
  • cURL

Categories

  • Image Generation
  • Developer Tools
  • Design
  • UI/UX
  • Web Development
  • Graphics
  • Testing
  • Utilities

Endpunkte

2

Alle Endpunkte, die placeholder-images — Gateway API bereitstellt – und was jeder davon tut.

  • 1GET/placeholder-images-api/svg/{width}/{height}

    Placeholder image (SVG)

    Generate a scalable SVG placeholder of the given size with a centered label.

  • 2GET/placeholder-images-api/{width}/{height}

    Placeholder image (PNG)

    Generate a solid PNG placeholder of the given size with a centered label.

Preise

TarifPreiseAlle 4 Pläne vergleichen
Basic
Kostenlos
Pro
5,99 $/Mon.
Max
11 $/Mon.
Ultra
15 $/Mon.
Placeholder Images API · RoutexAPI