# 24K Labs Placeholder Image Generator

> 24K Labs Placeholder Image Generator is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Generates a solid-color placeholder image with optional centered text, requiring no input image.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/placeholder-image
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-placeholder-image-generator-9c25ecbf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w5ZAg3vIOsU1j8mxQLBTg

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-placeholder-image-generator-9c25ecbf -d '<json body>'
```

Example prompt: Can you generate a placeholder image that's 400x300 pixels with a blue background and the centered text 'Coming Soon' in white?

## When to prefer this

Choose this endpoint when you need a quick, programmatic placeholder image without any input image — ideal for UI prototyping, wireframing, design systems, or filling missing image slots in grids. Prefer this over image conversion endpoints (which require an existing image) or AI image generation endpoints (which produce complex imagery from prompts).

## Known failure modes

- Invalid color values or unsupported color format may return an error
- Unsupported or extreme image dimensions may be rejected
- Missing required dimension parameters will return a validation error
- Network timeout if the service is temporarily unavailable

## How this service works

Generate a solid-color placeholder image with optional centered text (no input image needed).

## Output

Returns a generated image file (solid color background with optional centered text) in a standard image format, ready to embed in UIs, mockups, or prototypes.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  },
  "width": {
   "type": "number"
  },
  "height": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-placeholder-image-generator-9c25ecbf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
