# OpenAI GPT-5 Image Generation

> OpenAI GPT-5 Image Generation is a paid API for AI agents from image.withzero.xyz, paid per call via MPP, $0.21/call, status unknown (last checked 2026-09-13).

Generates 1–4 images from a text prompt using OpenAI GPT-5 Image, returning hosted image URLs with best-in-class instruction following and legible in-image text.

## Facts

- Endpoint: POST https://image.withzero.xyz/api/v1/images/gpt-5-image
- Price: $0.21/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 3
- Provider: image.withzero.xyz
- Website: https://image.withzero.xyz
- Canonical page: https://www.zero.xyz/c/image-withzero-xyz-openai-gpt-5-image-generation-ea5db7fb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sjYaNOvMuAg9q0zh4xXXg

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 image-withzero-xyz-openai-gpt-5-image-generation-ea5db7fb -d '<json body>'
```

Example prompt: Can you generate 2 images of a cozy coffee shop interior with warm lighting, with the shop name 'Morning Bloom' written in elegant script on the wall chalkboard — I need the text to be clearly readable?

## When to prefer this

Choose this endpoint when you need the highest quality instruction-following in image generation — especially when the output must include legible, readable text within the image (e.g. signs, labels, banners). It is the best choice over Gemini or Grok-based alternatives when precise prompt adherence and in-image typography matter most.

## Known failure modes

- Prompt too long (over 4000 characters) — validation error returned
- Count outside 1–4 range — schema validation failure
- Prompt violates content policy — rejection with error message
- Image hosting service unavailable — internal server error
- Model temporarily unavailable — upstream provider error

## How this service works

Generate images from a text prompt with OpenAI GPT-5 Image — strongest instruction following and legible in-image text. Returns hosted image URLs.

## Output

Returns an array of 1–4 hosted image objects, each with a URL, MIME type, and file size in bytes, along with the model name used and the USDC amount charged for the request.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "example": {
  "count": 1,
  "prompt": "A watercolor painting of a lighthouse at sunrise"
 },
 "required": [
  "prompt",
  "count"
 ],
 "properties": {
  "count": {
   "type": "integer",
   "default": 1,
   "maximum": 4,
   "minimum": 1,
   "description": "How many images to generate (1–4)."
  },
  "prompt": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Text description of the image to generate."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "images",
  "model",
  "price_usdc"
 ],
 "properties": {
  "model": {
   "type": "string",
   "description": "The model that produced the images."
  },
  "images": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "url",
     "mimeType",
     "sizeBytes"
    ],
    "properties": {
     "url": {
      "type": "string"
     },
     "mimeType": {
      "type": "string"
     },
     "sizeBytes": {
      "type": "number"
     }
    },
    "additionalProperties": false
   },
   "description": "The generated images, as hosted URLs."
  },
  "price_usdc": {
   "type": "string",
   "description": "The amount charged for this request, in USDC."
  }
 },
 "additionalProperties": false
}
```

## More

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