# BlockRun AI Image Generation (GPT-Image)

> BlockRun AI Image Generation (GPT-Image) is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.041/call, status unknown (last checked 2026-09-14).

Generates images from a text prompt using OpenAI GPT-Image models, accessible via a pay-per-call x402 gateway.

## Facts

- Endpoint: POST https://blockrun.ai/v1/images/generations
- Price: $0.041/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-ai-image-generation-gpt-image-5bb08d8c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lYJ7xG-1lh12-m7RZ6RdY

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 blockrun-ai-image-generation-gpt-image-5bb08d8c -d '<json body>'
```

Example prompt: Generate 1 image of a futuristic cityscape at night with neon lights, 1024x1024, using the openai/gpt-image-1 model.

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call image generation via OpenAI's GPT-Image models without managing an OpenAI account directly — ideal for AI agents that need on-demand image creation with crypto micropayments (x402 protocol) and no subscription overhead.

## Known failure modes

- Invalid or unsupported model ID returns an error
- Prompt violates content policy and is rejected
- Unsupported image size string causes validation error
- Network or gateway timeout for complex prompts
- Payment failure (insufficient balance or x402 auth issue) blocks the request
- n exceeds maximum allowed number of images per call

## How this service works

Image generation.

## Output

Returns generated image data (typically as URLs or base64-encoded image content) for each image requested, based on the submitted prompt, model, size, and quantity parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Number of images to generate"
  },
  "size": {
   "type": "string",
   "description": "Image dimensions (e.g., 1024x1024)"
  },
  "model": {
   "type": "string",
   "description": "Image model ID (e.g., openai/gpt-image-1, openai/gpt-image-2)"
  },
  "prompt": {
   "type": "string",
   "description": "Text description of the image to generate"
  }
 }
}
```

## More

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