# OwlKey Image Generation API

> OwlKey Image Generation API is a paid API for AI agents from www.owlkeyapi.com, paid per call via x402, $0.039/call, status unknown (last checked 2026-09-14).

Generates images from text prompts via a pay-per-call API, returning image data or URLs with OpenAI-compatible metadata.

## Facts

- Endpoint: POST https://www.owlkeyapi.com/x402/services/image
- Price: $0.039/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/owlkey-image-generation-api-7f4c08c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jqWfwOVTYtu2KsrQ5BHFr

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 owlkey-image-generation-api-7f4c08c5 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a golden retriever running on a sunny beach at sunset, 1024x1024 pixels, high quality, in PNG format.

## When to prefer this

Choose this endpoint when an AI agent needs to generate images from text prompts in a pay-per-call, no-subscription model using the x402 micropayment protocol. It is well-suited for agents that need OpenAI-compatible image generation output without managing an OpenAI API key. Prefer it for agentic pipelines that require flexible per-request billing and support for options like background mode and output format selection.

## Known failure modes

- Prompt too long (exceeds 4000 characters) — validation error returned
- Invalid size string format — may return an error or use a default size
- Model not available or misspelled — fallback to default model or error
- Payment failure via x402 protocol — request rejected without image generation
- n value outside 1–10 range — validation error
- Prompt contains policy-violating content — request rejected with content policy error

## How this service works

Prompt-to-image generation API for agents. Returns generated image data or URLs with OpenAI-compatible metadata.

## Output

Returns generated image data or URLs in an OpenAI-compatible response format, including metadata such as the model used, number of images generated, and per-image data (base64 or URL depending on output format).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "number",
   "maximum": 10,
   "minimum": 1,
   "description": "Number of images."
  },
  "size": {
   "type": "string",
   "description": "Image size, such as 1024x1024."
  },
  "model": {
   "type": "string",
   "description": "Optional image model."
  },
  "prompt": {
   "type": "string",
   "maxLength": 4000,
   "minLength": 1,
   "description": "Image generation prompt."
  },
  "quality": {
   "type": "string",
   "description": "Optional image quality."
  },
  "background": {
   "type": "string",
   "description": "Optional background mode."
  },
  "output_format": {
   "type": "string",
   "description": "Optional output format."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/owlkey-image-generation-api-7f4c08c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.owlkeyapi.com](https://www.zero.xyz/host/www.owlkeyapi.com/llms.txt)
