# OpenAI gpt-image-1-mini Image Generation

> OpenAI gpt-image-1-mini Image Generation is a paid API for AI agents from openai.mm.family, paid per call via x402, $0.003016/call, status unknown (last checked 2026-10-02).

Generates images from text prompts using OpenAI's GPT Image 1 Mini model, returning base64-encoded PNG/JPEG/WebP output, paid per call in USDC via x402.

## Facts

- Endpoint: POST https://openai.mm.family/x402/v1/models/gpt-image-1-mini/images/generations?utm_source=zero.xyz
- Price: $0.003016/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openai-gpt-image-1-mini-image-generation-7ae6f912
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Bmnx6a1hvwTqSwjOCw5kg

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 openai-gpt-image-1-mini-image-generation-7ae6f912 -d '<json body>'
```

Example prompt: Generate a high-quality 1024x1024 PNG image of a serene mountain lake at sunset with reflections in the water using GPT Image 1 Mini.

## When to prefer this

Choose this endpoint when you need a cost-effective OpenAI image generation call billed directly in USDC via x402 without an OpenAI API key, especially for lightweight or draft images where GPT Image 1 Mini quality is sufficient. Prefer this over gpt-image-1.5 or gpt-image-2 when minimizing cost per image is the priority. Ideal for agents that need to pay programmatically per call with crypto and want OpenAI's image quality at the lowest tier price point.

## Known failure modes

- Prompt refused by moderation — content policy violation returns an error
- 'auto' quality value is explicitly rejected; must specify 'low', 'medium', or 'high'
- Insufficient USDC balance or x402 payment failure results in 402 Payment Required
- Invalid size or output_format enum values return validation errors
- Network timeout on large high-quality image generation requests

## How this service works

gpt-image-1-mini: OpenAI GPT Image 1 Mini image generation, paid per call in USDC. OpenAI list $18.4 per 1M image tokens (1024x1024: low 272, medium 1056, high 4160 tokens), text in $2 per 1M, plus $0.0005 (Base) or $0.0005 (Solana) per call. Send size and quality (auto is refused); omitted means 1024x1024 medium. Returns b64_json. Rates: https://openai.mm.family/x402/pricing

## Output

Returns a JSON object with a 'data' array containing one or more base64-encoded images (b64_json), along with metadata including image size, quality level, output format, creation timestamp, and token usage breakdown (input tokens, output tokens, total tokens).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer"
  },
  "size": {
   "type": "string"
  },
  "model": {
   "enum": [
    "gpt-image-1-mini"
   ],
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "quality": {
   "enum": [
    "low",
    "medium",
    "high"
   ],
   "type": "string"
  },
  "background": {
   "type": "string"
  },
  "moderation": {
   "enum": [
    "auto"
   ],
   "type": "string"
  },
  "output_format": {
   "enum": [
    "png",
    "jpeg",
    "webp"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [
   {
    "b64_json": "<base64 png>"
   }
  ],
  "size": "1024x1024",
  "usage": {
   "input_tokens": 12,
   "total_tokens": 208,
   "output_tokens": 196
  },
  "created": 1,
  "quality": "low",
  "output_format": "png"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openai-gpt-image-1-mini-image-generation-7ae6f912/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from openai.mm.family](https://www.zero.xyz/host/openai.mm.family/llms.txt)
