# Coockies.ai AI Image Generation

> Coockies.ai AI Image Generation is a paid API for AI agents from coockies-ai.vercel.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Generates AI-created images via a pay-per-call API endpoint using x402 payments on Base chain

## Facts

- Endpoint: POST https://coockies-ai.vercel.app/api/ai-image
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coockies-ai-ai-image-generation-f21152e6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zx7Yl-VRyqD1z82sxcp5K

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 coockies-ai-ai-image-generation-f21152e6 -d '<json body>'
```

Example prompt: Generate an AI image of a serene mountain lake at sunset with pine trees reflecting in the calm water.

## When to prefer this

Choose this endpoint when you need to generate AI images on a pay-per-call basis without subscription overhead, and you are already using x402 micropayments on the Base blockchain. Ideal for agents that need occasional image generation integrated into a broader Coockies.ai API workflow.

## Known failure modes

- Invalid or missing prompt results in an error response
- Insufficient USDC payment via x402 causes a 402 Payment Required rejection
- Prompt violates content policy and is rejected
- Service timeout if generation takes too long
- Malformed request body returns a 400 Bad Request

## How this service works

194 production-ready API endpoints. AI, Search, Social, Finance, Crypto. Pay-per-call with x402 on Base chain.

## Output

Returns a result object containing the generated image data, likely as a URL or base64-encoded image blob, wrapped in a standard API response envelope.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

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