# imgzen GPT Image 1.5 Generator

> imgzen GPT Image 1.5 Generator is a paid API for AI agents from api.imgzen.dev, paid per call via x402, $0.1/call, status down (last checked 2026-10-12).

Generates or edits images using OpenAI's GPT Image 1.5 model via imgzen, with configurable quality, style, aspect ratio, and format, paid per image via x402/USDC

## Facts

- Endpoint: POST https://api.imgzen.dev/v1/models/gpt-image-1.5/generate?utm_source=zero.xyz
- Price: $0.1/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Success rate: 0% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-imgzen-dev-f71268c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BxmKtvNl3rMysCQOBaaJN

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 api-imgzen-dev-f71268c2 -d '<json body>'
```

Example prompt: Generate a natural-style image of a serene mountain lake at sunrise with mist over the water, in 3:2 aspect ratio, high quality, PNG format with an opaque background.

## When to prefer this

Choose this endpoint when you need OpenAI's GPT Image 1.5 model specifically at $0.10/image with x402 crypto micropayment support, want optional image editing from up to 5 reference images, need transparent background support, or want a balance between OpenAI quality and cost (vs GPT Image 1 at the same price but older model). Prefer over sibling Gemini endpoints when OpenAI's rendering style is preferred over Google's.

## Known failure modes

- Invalid prompt or missing prompt field returns 400 error
- Reference image URLs that are inaccessible or malformed cause image editing to fail
- Payment failure via x402 (insufficient USDC balance or wallet misconfiguration) blocks generation
- Unsupported enum values for style, quality, background, aspect_ratio, or output_format return validation error
- More than 5 reference images provided exceeds maxItems constraint
- Timeout if generation exceeds server limits (generation can take ~26 seconds)

## How this service works

imgzen — GPT Image 1.5, OpenAI latest — $0.100/image

## Output

Returns a JSON object containing: a URL to the generated image hosted on cache.imgzen.dev, the model used (gpt-image-1.5), the provider (imgzen-openai), generation duration in milliseconds, a success status string, and payment confirmation showing 0.1 USDC charged via x402.

## Example request

```json
{
 "style": "natural",
 "prompt": "A serene landscape with rolling green hills and a clear blue sky at sunset",
 "quality": "medium",
 "background": "opaque",
 "aspect_ratio": "3:2",
 "output_format": "png"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "image": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "maxItems": 5,
   "description": "Optional reference image(s) for editing (max 5), supports URL and base64"
  },
  "style": {
   "enum": [
    "vivid",
    "natural"
   ],
   "type": "string",
   "default": "vivid",
   "description": "Image style"
  },
  "prompt": {
   "type": "string",
   "description": "Text prompt describing the image to generate or edit"
  },
  "quality": {
   "enum": [
    "low",
    "medium",
    "high"
   ],
   "type": "string",
   "default": "high",
   "description": "Output quality: low, medium, high"
  },
  "background": {
   "enum": [
    "transparent",
    "opaque",
    "auto"
   ],
   "type": "string",
   "default": "auto",
   "description": "Background type"
  },
  "aspect_ratio": {
   "enum": [
    "1:1",
    "2:3",
    "3:2"
   ],
   "type": "string",
   "default": "1:1",
   "description": "Image aspect ratio"
  },
  "output_format": {
   "enum": [
    "png",
    "webp",
    "jpeg"
   ],
   "type": "string",
   "default": "png",
   "description": "Output image format"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "output",
  "status",
  "payment"
 ],
 "properties": {
  "output": {
   "type": "object",
   "required": [
    "url",
    "model",
    "provider",
    "duration_ms"
   ],
   "properties": {
    "url": {
     "type": "string"
    },
    "model": {
     "type": "string"
    },
    "provider": {
     "type": "string"
    },
    "duration_ms": {
     "type": "number"
    }
   }
  },
  "status": {
   "type": "string"
  },
  "payment": {
   "type": "object",
   "required": [
    "amount",
    "method",
    "currency"
   ],
   "properties": {
    "amount": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "currency": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-imgzen-dev-f71268c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.imgzen.dev](https://www.zero.xyz/host/api.imgzen.dev/llms.txt)
