# OmniAPI AI Image Generation

> OmniAPI AI Image Generation is a paid API for AI agents from omni-api-cyan.vercel.app, paid per call via x402, $0.112432/call, status unknown (last checked 2026-10-12).

Generates images from a text query/prompt using an AI model, billed per call in USDC via x402

## Facts

- Endpoint: POST https://omni-api-cyan.vercel.app/api/ai/image/generate?utm_source=zero.xyz
- Price: $0.112432/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/omniapi-ai-image-generation-53b70cf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_E2phUltulRFJPJb_WyXxj

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 omniapi-ai-image-generation-53b70cf7 -d '<json body>'
```

Example prompt: Generate an image of a futuristic cyberpunk city skyline at night with neon lights and rain-soaked streets.

## When to prefer this

Choose this endpoint when you need pay-per-call AI image generation without a subscription, billed in USDC via the x402 protocol. It is well-suited for agents operating in crypto-native or Web3 environments where micropayments in stablecoins are preferred over traditional API keys and monthly plans.

## Known failure modes

- Missing required 'query' field returns a validation error
- Insufficient USDC balance or failed x402 payment results in a 402 Payment Required response
- Vague or policy-violating prompts may produce unexpected or refused outputs
- Network timeout if the image generation model takes too long
- Invalid additional params object may cause a 400 Bad Request

## How this service works

444 endpoints across 9+ chains. Crypto, AI, Social, Finance, Weather, Tools. Pay per call in USDC via x402 with 4 facilitators: Dexter, Meridian, FluxA, GoPlausible.

## Output

Returns an API response object containing the generated image data (likely as a URL, base64-encoded image, or binary blob) produced from the input text prompt. The exact image format and resolution depend on the underlying AI model used by OmniAPI.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "input": {
   "type": "string",
   "description": "Input data for the endpoint"
  },
  "query": {
   "type": "string",
   "description": "Search query or input text"
  },
  "params": {
   "type": "object",
   "description": "Additional parameters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "description": "API response data"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/omniapi-ai-image-generation-53b70cf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from omni-api-cyan.vercel.app](https://www.zero.xyz/host/omni-api-cyan.vercel.app/llms.txt)
