

Placeholder Images API
RoarAPI tarafından · temel yol /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.
Uç noktalar yükleniyor…Belgeler
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
| Format | Description |
|---|---|
| PNG | Raster placeholder image suitable for websites, mobile apps, and testing |
| SVG | Scalable 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
| Name | Type | Required | Description |
|---|---|---|---|
| width | integer | Yes | Image width in pixels |
| height | integer | Yes | Image height in pixels |
| background | string | No | Background color (6-digit HEX) |
| color | string | No | Text color (6-digit HEX) |
| text | string | No | Custom 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
| Name | Type | Required | Description |
|---|---|---|---|
| width | integer | Yes | Image width in pixels |
| height | integer | Yes | Image height in pixels |
| background | string | No | Background color (6-digit HEX) |
| color | string | No | Text color (6-digit HEX) |
| text | string | No | Custom 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
| Code | Description |
|---|---|
| 400 | Invalid dimensions or parameters |
| 401 | Invalid API Key |
| 429 | Rate limit exceeded |
| 500 | Internal 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
Uç Noktalar
2placeholder-images — Gateway API tarafından sunulan tüm uç noktalar ve her birinin ne yaptığı.
- 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.
Fiyatlandırma
| Plan | Fiyatlandırma | Hız sınırları | Kotalar | Tüm 4 planı karşılaştır |
|---|---|---|---|---|
| Basic | Ücretsiz | 5 istek / saniye | 10 istek / ay | |
| Pro | $5,99/ay | 20 istek / saniye | 10000 istek / ay | |
| Max | $11/ay | 50 istek / saniye | 60000 istek / ay | |
| Ultra | $15/ay | 100 istek / saniye | 100000 istek / ay |