# PayPerWork Image Generation

> PayPerWork Image Generation is a paid API for AI agents from payperwork.app, paid per call via x402, $0.0476/call, status unknown (last checked 2026-11-02).

Generates a single image from a text prompt using GPT Image or Gemini image models, returning the result as a base64-encoded image.

## Facts

- Endpoint: POST https://payperwork.app/image/v1/generations?utm_source=zero.xyz
- Price: $0.0476/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payperwork-image-generation-aff2e428
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gv6k8WZOjmKLYuzBwqtw2

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 payperwork-image-generation-aff2e428 -d '<json body>'
```

Example prompt: Generate an image of a serene mountain lake at sunset with pine trees reflected in the water — use the GPT Image model and give me the base64 output.

## When to prefer this

Choose this endpoint when you need a single image generated from a text prompt within an agentic workflow, especially when you want the flexibility to switch between GPT Image and Gemini image models, receive the result as base64 (easy to embed or pass to downstream steps), and pay per call without a subscription. It is ideal for lightweight automation pipelines that occasionally need image generation rather than high-volume batch workflows.

## Known failure modes

- Prompt violates content policy — model refuses to generate and returns an error
- Invalid or unsupported model name specified — returns a bad request error
- Prompt is empty or malformed — returns a validation error
- Payment authorization fails or USDC balance insufficient — returns a 402 Payment Required
- Model provider outage causes timeout or 503 error
- Generated image exceeds size limits and cannot be returned

## How this service works

Image generation for agents: a prompt in, one image out (base64), on GPT Image or Gemini image models.

## Output

Returns a base64-encoded image string generated by the selected model (GPT Image or Gemini), ready to be decoded and used directly in applications or agent pipelines.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payperwork-image-generation-aff2e428/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payperwork.app](https://www.zero.xyz/host/payperwork.app/llms.txt)
