# PrimeAPI AI Image Generation

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

Generates images from a text query or prompt using an AI image generation model, billed per call in USDC on Base.

## Facts

- Endpoint: POST https://prime-api-seven.vercel.app/api/ai/image/generate
- Price: $0.192696/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/primeapi-ai-image-generation-892cc26f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sducdgrR0xRM39YNKyUY3

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 primeapi-ai-image-generation-892cc26f -d '<json body>'
```

Example prompt: Generate an image of a futuristic city skyline at sunset with flying cars and neon lights.

## When to prefer this

Use this endpoint when you need to generate an image from a text prompt via a pay-per-call API that requires no API key setup, only USDC payment on Base. Suitable for agents that need on-demand image generation without managing API subscriptions.

## Known failure modes

- Empty or missing query parameter returns an error
- Ambiguous or overly complex prompt may yield unexpected results
- Payment failure in USDC on Base blocks the request
- Rate limiting or server overload returns 429 or 503
- Prompt violates content policy and is rejected

## 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 API response object containing the generated image data, likely as a URL or base64-encoded image, produced by an AI image generation model based on the input text prompt.

## 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/primeapi-ai-image-generation-892cc26f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from prime-api-seven.vercel.app](https://www.zero.xyz/host/prime-api-seven.vercel.app/llms.txt)
