# Independent Image API Gateway (GPT-Image-2)

> Independent Image API Gateway (GPT-Image-2) is a paid API for AI agents from agent402.mufu.workers.dev, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-29).

Generates images from text prompts via a pay-per-image gateway, returning base64-encoded PNGs at a fixed $0.08 USDC price on Base.

## Facts

- Endpoint: POST https://agent402.mufu.workers.dev/v1/gpt-image-2/images/generations?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/independent-image-api-gateway-gpt-image-2-a6fd9407
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Oc8Ynix9z3aIg_c9PubV6

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 independent-image-api-gateway-gpt-image-2-a6fd9407 -d '<json body>'
```

Example prompt: Generate an image of a cozy mountain cabin surrounded by snow-covered pine trees at sunset — return it as a base64 PNG I can use directly.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-use text-to-image API with a fixed predictable cost ($0.08 USDC) settled on Base, without requiring an OpenAI API key or subscription. It is ideal for agents that need to generate images on demand without managing API credentials, or for workflows where crypto-native micropayments are preferred over traditional billing. Best when you want GPT-Image-2 quality output with minimal setup and transparent per-call pricing.

## Known failure modes

- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required error
- Invalid or missing prompt text returns a 400 Bad Request
- Network or worker timeout may return a 5xx error with no image
- Prompt content policy violation may result in a 400 or 403 rejection
- Malformed request body (e.g. missing required fields) returns a 400 error

## How this service works

Independent pay-per-image text-to-image gateway. Fixed price per image, USDC on Base.

## Output

A JSON object containing a 'data' array with one entry per generated image. Each entry includes a 'b64_json' field with the base64-encoded PNG image and a 'revised_prompt' string showing how the model interpreted or refined the original prompt. The response also includes a 'created' Unix timestamp indicating when the image was generated.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "b64_json": "iVBORw0KGgoAAAANSUhEUg...（base64 PNG，此处省略）",
    "revised_prompt": "A minimalist line drawing of a lighthouse at dawn"
   }
  ],
  "created": 1735689600
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/independent-image-api-gateway-gpt-image-2-a6fd9407/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.mufu.workers.dev](https://www.zero.xyz/host/agent402.mufu.workers.dev/llms.txt)
