# ApexAPI AI Image Generation

> ApexAPI AI Image Generation is a paid API for AI agents from apex-api-gamma.vercel.app, paid per call via x402, $0.192696/call, status unknown (last checked 2026-10-09).

Generates images from a text prompt using AI, accessible via pay-per-call USDC payment on Base with no API key required.

## Facts

- Endpoint: POST https://apex-api-gamma.vercel.app/api/ai/image/generate?utm_source=zero.xyz
- Price: $0.192696/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apexapi-ai-image-generation-2289c5b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9_5t8eWhBMk2tjGq1HHqM

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 apexapi-ai-image-generation-2289c5b7 -d '<json body>'
```

Example prompt: Generate an AI image of a golden retriever puppy playing in autumn leaves in a photorealistic style.

## When to prefer this

Choose this endpoint when you need to generate images from text prompts without managing API keys, and when paying per call in USDC on Base is acceptable. Suitable for agents operating in crypto-native or x402-compatible environments where API key management is not desired.

## Known failure modes

- Invalid or empty query string returns an error response
- Payment failure or insufficient USDC balance prevents call execution
- Prompt violates content policy and is rejected
- Underlying AI model is unavailable or times out
- Response schema is generic and may not always include a direct image URL

## How this service works

Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.

## Output

Returns an AI-generated image based on the input text prompt, likely as image data or a URL to the generated image, delivered as a JSON response object.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query or input parameter"
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apexapi-ai-image-generation-2289c5b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from apex-api-gamma.vercel.app](https://www.zero.xyz/host/apex-api-gamma.vercel.app/llms.txt)
