# ToolSnap MCP — Image Generate (Flux)

> ToolSnap MCP — Image Generate (Flux) is a paid API for AI agents from mcp.toolsnap.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-17).

Generates images from a text prompt using Flux models (schnell or dev), with configurable size and count, via a pay-per-call MCP endpoint.

## Facts

- Endpoint: POST https://mcp.toolsnap.app/x402/tools/image_generate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/toolsnap-mcp-image-generate-flux-a2b39e28
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bp8-SqB9WYVhXWiuVfHEH

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 toolsnap-mcp-image-generate-flux-a2b39e28 -d '<json body>'
```

Example prompt: Generate a photorealistic image of a misty mountain forest at sunrise using the flux-schnell model in landscape_4_3 format — just one image.

## When to prefer this

Choose this endpoint when you need fast, affordable AI image generation via a single MCP connection without setting up separate accounts. Flux-schnell is ideal for rapid iteration and bulk generation at low cost ($0.003/MP); flux-dev is better when output quality matters. Prefer this over other image APIs if you are already using the ToolSnap MCP suite and want to avoid managing additional credentials.

## Known failure modes

- Invalid or missing prompt — returns an error indicating the prompt field is required
- num_images out of range (below 1 or above 4) — schema validation error
- Unsupported model value — must be exactly 'flux-schnell' or 'flux-dev'
- Payment failure or insufficient USDC balance — x402 payment not accepted, request rejected
- Temporary upstream model unavailability — Flux service error propagated back
- Content policy violation on the prompt — request refused by the underlying model

## How this service works

47 server-side tools for AI agents through a single MCP connection. 36 free, no new accounts. Median 98.1% token savings on web content. Paid tools from $0.02.

## Output

Returns one or more generated image URLs corresponding to the prompt and settings provided. The number of images matches the num_images parameter (1–4). Image quality and generation speed vary by model: flux-schnell is fast and economical, flux-dev produces higher-fidelity results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "flux-schnell",
    "flux-dev"
   ],
   "type": "string",
   "default": "flux-schnell",
   "description": "\"flux-schnell\" (default, fast/cheap, $0.003/MP) or \"flux-dev\" (higher quality, $0.025/MP)."
  },
  "prompt": {
   "type": "string",
   "description": "Text description of the image to generate."
  },
  "image_size": {
   "enum": [
    "square_hd",
    "square",
    "portrait_4_3",
    "portrait_16_9",
    "landscape_4_3",
    "landscape_16_9"
   ],
   "type": "string",
   "default": "landscape_4_3",
   "description": "Output size preset. Default landscape_4_3 (~1 megapixel)."
  },
  "num_images": {
   "type": "number",
   "default": 1,
   "maximum": 4,
   "minimum": 1,
   "description": "Number of images to generate in this call (1-4). Price scales linearly."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/toolsnap-mcp-image-generate-flux-a2b39e28/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mcp.toolsnap.app](https://www.zero.xyz/host/mcp.toolsnap.app/llms.txt)
