# GPT Image 2 via Xona Agent (Medium Quality)

> GPT Image 2 via Xona Agent (Medium Quality) is a paid API for AI agents from api.xona-agent.com, paid per call via x402, $0.12/call, status unknown (last checked 2026-09-15).

Generates high-quality photorealistic images from text prompts using OpenAI's GPT Image 2 model, with optional reference image input for editing or style transfer.

## Facts

- Endpoint: POST https://api.xona-agent.com/image/gpt-image-2
- Price: $0.12/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gpt-image-2-via-xona-agent-medium-quality-76c7ffb6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ajtR5f6UcPHexr8j6KCvX

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 gpt-image-2-via-xona-agent-medium-quality-76c7ffb6 -d '<json body>'
```

Example prompt: Generate a photorealistic square image of a cozy coffee shop interior at golden hour, warm lighting, with a chalkboard sign that reads 'Morning Brew' above the counter — use GPT Image 2 at medium quality.

## When to prefer this

Choose this endpoint when you need high-quality photorealistic images with accurate text rendering and strong prompt-following, especially when using OpenAI's GPT Image 2 model is a priority. It is well-suited for marketing visuals, product mockups, editorial images, or any use case requiring legible in-image text. Prefer this over lower-fidelity models when detail and instruction-following matter. If you need higher quality or more reference images, consider the sibling max-quality endpoint. This endpoint is cost-effective at $0.12 USDC per image.

## Known failure modes

- Prompt too vague or ambiguous — output may not match intent
- Reference image URLs are inaccessible or malformed — endpoint returns an error or ignores them
- Content policy violation in prompt — request rejected by OpenAI safety filters
- Only 1:1 aspect ratio is supported — other ratios will be ignored or cause errors
- Network timeout or Replicate backend latency under heavy load
- Payment failure via x402 — request not processed if USDC balance is insufficient

## How this service works

AI image generation using GPT Image 2 (OpenAI via Replicate). High-quality photorealism with sharp text rendering and strong instruction following. Quality: medium.

## Output

A generated image file (URL or binary) depicting the scene described in the prompt. The image is square (1:1 aspect ratio), rendered at medium quality using OpenAI's GPT Image 2 model, with strong photorealism, sharp in-image text rendering, and close adherence to the input prompt. If reference images were provided, they influence the output style or content.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string",
   "description": "Detailed prompt describing the desired image"
  },
  "aspect_ratio": {
   "type": "string",
   "default": "1:1",
   "description": "1:1 (square) — only ratio supported"
  },
  "referenceImage": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Optional reference image URLs for image-to-image / editing (up to 16)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gpt-image-2-via-xona-agent-medium-quality-76c7ffb6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.xona-agent.com](https://www.zero.xyz/host/api.xona-agent.com/llms.txt)
