# OkayPic AI Image Generator

> OkayPic AI Image Generator is a paid API for AI agents from api.okaypic.com, paid per call via x402, $0.03/call, status unknown (last checked 2026-11-03).

Generates AI images from a prompt using top models (e.g. GPT Image) via a pay-as-you-go API, returning a task ID for async retrieval

## Facts

- Endpoint: POST https://api.okaypic.com/api/image/generate?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/okaypic-ai-image-generator-12ec038c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_P8j508AHaQcv2FSYQR0w7

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 okaypic-ai-image-generator-12ec038c -d '<json body>'
```

Example prompt: Generate an image of a cozy coffee shop on a rainy evening with warm lighting and wooden interiors — I want a photorealistic style.

## When to prefer this

Choose this endpoint when you need pay-as-you-go AI image generation without a subscription, want access to multiple top-tier models (GPT Image, MiniMax, etc.) from a single API, and need low per-image costs starting at $0.02. Ideal for agents that generate images infrequently or need cost-controlled creative media without committing to a monthly plan.

## Known failure modes

- Missing or malformed prompt body results in a 400 error
- Payment failure via x402 protocol blocks generation
- Task times out if the model backend is overloaded
- Invalid or unsupported model selection may return an error
- First-call API key not stored by caller, requiring re-authentication

## How this service works

Every top AI video and image model in one place, pay as you go. Video from $0.007/s, images from $0.02. Turn a script into a short drama with Flow.

## Output

Returns a JSON object containing a taskId to poll for the completed image, a status field ('pending'), and an apiKey on the first successful payment call. The actual generated image is retrieved asynchronously using the taskId.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "const": "http"
    },
    "method": {
     "const": "POST"
    },
    "bodyType": {
     "const": "json"
    }
   }
  },
  "output": {
   "type": "object"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "apiKey": "okpk_… (first payment only)",
  "status": "pending",
  "taskId": "…"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/okaypic-ai-image-generator-12ec038c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.okaypic.com](https://www.zero.xyz/host/api.okaypic.com/llms.txt)
