# 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-13).

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

## Facts

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

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-56eba85b -d '<json body>'
```

Example prompt: Generate a placeholder image that's 400x300 pixels with a navy blue background and the centered white text 'Coming Soon'.

## When to prefer this

Use this endpoint when you need a fast, programmatically-generated placeholder image with no source image required — ideal for UI prototypes, CMS templates, wireframes, or any scenario where you just need a colored rectangle with optional label text. Prefer this over image-conversion endpoints when there is no input image at all.

## Known failure modes

- Invalid or unrecognized color value returns an error
- Requested dimensions too large may be rejected or time out
- Missing required dimension parameters returns a validation error
- Malformed text encoding may produce garbled overlay text
- Payment not fulfilled results in 402 Payment Required response

## How this service works

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

## Output

Returns a generated image file (binary or base64) representing a solid-color rectangle of the requested dimensions, optionally with centered text overlaid in the specified style.

## 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-56eba85b/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)
