# OpenAI ChatGPT Image Latest (via mm.family x402)

> OpenAI ChatGPT Image Latest (via mm.family x402) is a paid API for AI agents from openai.mm.family, paid per call via x402, $0.006295/call, status unknown (last checked 2026-10-02).

Generates images from text prompts using OpenAI's chatgpt-image-latest model, billed per call in USDC via the x402 payment protocol, returning base64-encoded PNG/JPEG/WebP output.

## Facts

- Endpoint: POST https://openai.mm.family/x402/v1/models/chatgpt-image-latest/images/generations?utm_source=zero.xyz
- Price: $0.006295/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openai-chatgpt-image-latest-via-mm-family-x402-71cc3c5f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g1y2s6s50QTtsoXepwovZ

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-chatgpt-image-latest-via-mm-family-x402-71cc3c5f -d '<json body>'
```

Example prompt: Generate a high-quality 1024x1024 PNG image of a sunlit Japanese tea garden with cherry blossoms and a koi pond, using chatgpt-image-latest, and give me the base64 result.

## When to prefer this

Choose this endpoint when you need OpenAI's latest chatgpt-image-latest model specifically, want per-call USDC micropayment billing via x402 (no subscription required), and need base64-encoded image output directly in the response. Prefer it over alternatives when you want fine-grained quality control (low/medium/high) and format selection (PNG/JPEG/WebP) with transparent token-based pricing.

## Known failure modes

- Prompt refused by moderation (content policy violation) — returns error response
- 'auto' quality value rejected — must specify 'low', 'medium', or 'high' explicitly
- Missing or invalid USDC payment via x402 — returns 402 Payment Required
- Invalid output_format value — must be 'png', 'jpeg', or 'webp'
- Model field must be set to 'chatgpt-image-latest' exactly — other values rejected
- Overly long or malformed prompt may cause generation failure or truncation

## How this service works

chatgpt-image-latest: OpenAI ChatGPT Image Latest image generation, paid per call in USDC. OpenAI list $32 per 1M image tokens (1024x1024: low 272, medium 1056, high 4160 tokens), text in $5 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 containing a data array with one or more base64-encoded images (b64_json), alongside metadata including the 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": [
    "chatgpt-image-latest"
   ],
   "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-chatgpt-image-latest-via-mm-family-x402-71cc3c5f/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)
