# JigsawStack Image Generation

> JigsawStack Image Generation is a paid API for AI agents from jigsawstack.withzero.ai, paid per call via MPP, $0.05/call, status unknown (last checked 2026-10-10).

Generates an image from a text prompt using JigsawStack's AI image generation API, billed per call in micro-USDC.

## Facts

- Endpoint: POST https://jigsawstack.withzero.ai/v1/image_generation?utm_source=zero.xyz
- Price: $0.05/call
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-10
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Provider: jigsawstack.withzero.ai
- Website: https://jigsawstack.withzero.ai
- Canonical page: https://www.zero.xyz/c/jigsawstack-withzero-ai-image-generation-406b1c67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XV6mdg1ESH015EtX4fu5c

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 jigsawstack-withzero-ai-image-generation-406b1c67 -d '<json body>'
```

Example prompt: Generate an image of a cozy coffee shop interior with warm lighting, wooden furniture, and rain falling outside the window.

## When to prefer this

Choose this endpoint when you need to generate images from text prompts in a pay-per-call model billed in USDC via MPP on Tempo, especially if you are already using other JigsawStack capabilities (OCR, translation, scraping) through the same withzero.ai gateway and want a unified billing approach.

## Known failure modes

- Empty or missing prompt returns a 400 validation error
- Prompt violates content policy and is rejected
- Service timeout if generation takes too long
- Insufficient USDC balance results in payment failure and 402 response
- Overly long or complex prompt may be truncated or rejected

## How this service works

Generate an image from a text prompt.

## Output

Returns a JSON object containing the generated image, likely as a URL or base64-encoded image data, produced by JigsawStack's AI image generation model based on the input text prompt.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "text",
  "target_language"
 ],
 "properties": {
  "text": {
   "type": "string",
   "description": "The text to translate (up to 10,000 characters)."
  },
  "source_language": {
   "type": "string",
   "description": "Optional source language code. Auto-detected if omitted."
  },
  "target_language": {
   "type": "string",
   "description": "The language code to translate into (e.g. 'fr' for French)."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

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