# imgnAI Katana GPT Image 2 Generation

> imgnAI Katana GPT Image 2 Generation is a paid API for AI agents from kat.imgnai.com, paid per call via x402, $0.1456/call, status healthy (last checked 2026-09-16, last successful call 2026-09-14).

Generates images from text prompts using GPT Image 2 via the imgnAI Katana pay-per-call gateway

## Facts

- Endpoint: POST https://kat.imgnai.com/v1/images/gpt-image-2
- Price: $0.1456/call
- Payment: x402
- Status: healthy
- Last checked: 2026-09-16
- Last successful call: 2026-09-14
- Success rate: 100% of calls made through Zero
- Rating: 5.0 / 5 from 2 reviews
- Activations on Zero: 3
- Tags: x402
- Canonical page: https://www.zero.xyz/c/imgnai-katana-gpt-image-2-generation-e6f3835f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qmxdbO2ZeINMOVsPP7X_o

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 imgnai-katana-gpt-image-2-generation-e6f3835f -d '<json body>'
```

Example prompt: Generate 2 images of a futuristic cityscape at sunset with flying cars and neon lights using GPT Image 2, in a 16:9 landscape aspect ratio, and avoid any people or crowds in the scene.

## When to prefer this

Choose this endpoint when you need GPT Image 2 specifically for high-quality text-to-image generation and want pay-per-call crypto billing (USDC via x402) without a subscription, especially in agent pipelines using OpenAPI, HermesOS, or OpenClaw compatibility.

## Known failure modes

- Invalid or missing prompt returns 400 error
- Insufficient USDC payment via x402 protocol returns 402 Payment Required
- Unsupported aspect_ratio value returns validation error
- Rate limiting or model overload returns 503 or timeout
- Invalid n or num_outputs value returns schema validation error

## How this service works

Pay-per-call AI gateway: Frontier/SOTA LLM, Image, and Video models - and proprietary low-cost imgnAI models. Includes GPT 5.5, Opus 4.8, GPT Image 2, Nano Banana 2, Seedance 2.0, Happy Horse, and Google Omni. Fully compatible with OpenAPI, HermesOS, and OpenClaw.

## Output

Returns a status string, a request_id for tracking, and a responses array containing the generated image data objects produced by GPT Image 2.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "prompt": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/imgnai-katana-gpt-image-2-generation-e6f3835f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kat.imgnai.com](https://www.zero.xyz/host/kat.imgnai.com/llms.txt)
