# Wafermap Prompt Refiner

> Wafermap Prompt Refiner is a paid API for AI agents from wafermap.xyz, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-31).

Transforms a rough idea into a precise, ready-to-use prompt optimized for either an image or text AI model.

## Facts

- Endpoint: POST https://wafermap.xyz/v1/prompt-refine?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wafermap-prompt-refiner-fa9c06c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_diTH_XLcr_f28WgOJPpHG

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 wafermap-prompt-refiner-fa9c06c6 -d '<json body>'
```

Example prompt: Take my rough idea — 'a futuristic city at night with neon lights and flying cars' — and refine it into a precise prompt I can use for an image model.

## When to prefer this

Choose this endpoint when you have a vague or underdeveloped idea and need a polished, specific prompt before feeding it to an image generator (e.g. Midjourney, Stable Diffusion, DALL-E) or a text model (e.g. GPT, Claude). Especially useful in agentic pipelines where prompt quality directly affects downstream output quality, or when a user's raw input is too rough to produce good generative results without refinement.

## Known failure modes

- Empty or too-short idea string (violates minLength:1)
- Idea exceeds 1500 characters (maxLength exceeded)
- Invalid target value — must be 'image' or 'text'
- Missing required fields (idea or target)
- Ambiguous or nonsensical idea may produce a generic refined prompt

## How this service works

Prompt Refiner — Turn a rough idea into a precise prompt for an image or text model.

## Output

A refined, detailed, and model-appropriate prompt string derived from the rough input idea, optimized for the specified target modality (image or text AI model).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "idea": {
   "type": "string",
   "maxLength": 1500,
   "minLength": 1,
   "description": "Your rough idea."
  },
  "target": {
   "enum": [
    "image",
    "text"
   ],
   "type": "string",
   "description": "What the prompt is for."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wafermap-prompt-refiner-fa9c06c6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wafermap.xyz](https://www.zero.xyz/host/wafermap.xyz/llms.txt)
