# BlockRun Image-to-Image AI Gateway

> BlockRun Image-to-Image AI Gateway is a paid API for AI agents from blockrun.ai, paid per call via x402, $0.021/call, status unknown (last checked 2026-09-13).

Transforms an input image guided by a text prompt using AI image models, billed per-call in USDC with no API keys required.

## Facts

- Endpoint: POST https://blockrun.ai/api/v1/images/image2image
- Price: $0.021/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockrun-image-to-image-ai-gateway-0d9427ac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1oemSONZJIui216ZAM8KU

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-image-to-image-ai-gateway-0d9427ac -d '<json body>'
```

Example prompt: Using BlockRun's image-to-image endpoint, take my product photo and transform it into a watercolor painting style — generate 1 image at 1024x1024 using the openai/gpt-image-1 model.

## When to prefer this

Choose this endpoint when you need pay-per-call image transformation without managing API keys, especially in agent workflows that use crypto micropayments (USDC on Base or Solana) and need to call OpenAI image models like gpt-image-1 on demand.

## Known failure modes

- Invalid model ID returns 400 or model-not-found error
- Unsupported image size string returns validation error
- Payment failure or insufficient USDC balance returns 402
- Prompt violates content policy returns content moderation error
- n exceeds model maximum returns parameter error

## How this service works

Pay for the outcome. One endpoint for every model, tool and data source an agent needs — each call priced before it runs, at the best value per dollar. 103 models and 100 data and tool APIs.

## Output

Returns one or more AI-generated images that reflect the transformation described in the prompt, produced by the selected image model at the specified dimensions.

## 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-image-to-image-ai-gateway-0d9427ac/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)
