# x402-gateway Premium Text-to-Image Generator

> x402-gateway Premium Text-to-Image Generator is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.09/call, status unknown (last checked 2026-10-16).

Generates a premium-quality image from a text prompt with better prompt adherence and typography, returning a permanent hosted HTTPS URL, paid per call in USDC on Base via x402.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/image_generate_quality?utm_source=zero.xyz
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-premium-text-to-image-generator-6d12d1fa
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cAq799_g5YM8u8boOf_wd

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 x402-gateway-premium-text-to-image-generator-6d12d1fa -d '<json body>'
```

Example prompt: Generate a premium-quality image of a cyberpunk market at night with volumetric fog and neon reflections — make it 1024x1024 pixels with crisp typography on any signage.

## When to prefer this

Choose this endpoint when you need higher prompt fidelity, accurate typography in the image, or superior visual quality compared to standard text-to-image APIs. Ideal when the image will be used in marketing, publishing, or professional contexts where quality matters. The per-call USDC payment model suits sporadic high-quality generation without subscriptions. Prefer this over cheaper alternatives when the prompt is complex or contains text that must render accurately.

## Known failure modes

- Prompt exceeds 1200 character limit — request rejected
- Width or height outside 256–1536px range — validation error
- Payment via x402/USDC on Base fails or is insufficient ($0.09) — 402 Payment Required
- Generation timeout after 10–30 seconds if model is overloaded
- Malformed JSON input — 400 Bad Request
- Prompt content policy violation — generation refused

## How this service works

Text to Image (premium): Generate a premium-quality image from a text prompt (10-30s, better prompt adherence and typography). Returns a permanent https URL to the hosted image on api.freeq.one/media/*. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/image_generate_quality.

## Output

A JSON response containing a permanent HTTPS URL pointing to the generated image hosted at api.freeq.one/media/*. The image is available immediately after the 10–30 second generation window and persists indefinitely at that URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "type": "integer",
   "example": 1024,
   "description": "Image width in px (256-1536, default 1024)"
  },
  "height": {
   "type": "integer",
   "example": 1024,
   "description": "Image height in px (256-1536, default 1024)"
  },
  "prompt": {
   "type": "string",
   "example": "a cyberpunk market at night, volumetric fog, 4k",
   "description": "Text description of the image to generate (max 1200 chars)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-premium-text-to-image-generator-6d12d1fa/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
