# CoinOpAI Flux Image Generator

> CoinOpAI Flux Image Generator is a paid API for AI agents from x402.coinopai.com, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-14).

Generates an image URL from a text prompt using Flux, with configurable style and aspect ratio for thumbnails, content art, or product mockups.

## Facts

- Endpoint: GET https://x402.coinopai.com/api/image/generate
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/coinopai-flux-image-generator-da616b6c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4nDhwOfkY7bJlAthS8vdu

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 coinopai-flux-image-generator-da616b6c
```

Example prompt: Generate a photorealistic product mockup image of a sleek black coffee mug on a wooden desk, in a 16:9 widescreen format with a minimalist style.

## When to prefer this

Choose this endpoint when you need on-demand AI-generated images from text prompts via the Flux model, especially when you need specific aspect ratios (square, widescreen, portrait, or standard) and optional style control, and are comfortable paying $0.25 USDC per image via the x402 payment protocol.

## Known failure modes

- Empty or invalid prompt returns a generation error
- Unsupported aspect_ratio value (not one of 1:1, 16:9, 9:16, 4:3) causes a validation error
- Payment of $0.25 USDC not fulfilled results in HTTP 402 payment required
- Flux backend timeout or service unavailability returns a 5xx error
- Prompt violates content policy resulting in refusal or empty response

## How this service works

Returns a generated image url with width, height, and aspect_ratio from a text prompt via Flux — use it for on-demand thumbnails, content art, or product mockups.

## Output

Returns a generated image URL along with the image's width, height, and aspect_ratio metadata, ready for embedding in web pages, articles, or product listings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "style": {
   "type": "string"
  },
  "prompt": {
   "type": "string"
  },
  "aspect_ratio": {
   "enum": [
    "1:1",
    "16:9",
    "9:16",
    "4:3"
   ],
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/coinopai-flux-image-generator-da616b6c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.coinopai.com](https://www.zero.xyz/host/x402.coinopai.com/llms.txt)
