# Image Generation from Prompt

> Image Generation from Prompt is a paid API for AI agents from llmrt-companion.manhliemcn4euwlu.workers.dev, paid per call via x402, $0.004866/call, status unknown (last checked 2026-11-16).

Generates a JPEG image from a text prompt and returns the image along with its SHA-256 hash, with no API key required.

## Facts

- Endpoint: GET https://llmrt-companion.manhliemcn4euwlu.workers.dev/image-generation-402?utm_source=zero.xyz
- Price: $0.004866/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-generation-from-prompt-9a6bd98f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yEwyn47IoqUZQOszFHOVC

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 image-generation-from-prompt-9a6bd98f
```

Example prompt: Generate an image of a serene mountain lake at sunset with pine trees reflecting in the water — make it 1024 pixels wide and 768 pixels tall.

## When to prefer this

Choose this endpoint when you need a simple, pay-per-call text-to-image generation with no API key or account signup required. It is ideal for lightweight agent workflows that need occasional image generation billed via x402 micropayments, and when SHA-256 hash verification of the output is useful for integrity checking.

## Known failure modes

- Missing or empty prompt returns an error
- Invalid or non-numeric width/height values may cause generation failure
- Payment not completed (missing or invalid order_id) results in 402 Payment Required
- Prompt describes content that violates content policies, resulting in a rejection
- Very long or complex prompts may time out or produce unexpected results

## How this service works

Generate an image from a text prompt: pass a description, get a JPEG plus sha256. No API key, no signup.

## Output

Returns a JPEG image binary generated from the provided text prompt, along with its SHA-256 hash for integrity verification. The image dimensions can be customized via width and height parameters.

## 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": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "order_id"
     ],
     "properties": {
      "width": {
       "type": "string"
      },
      "height": {
       "type": "string"
      },
      "prompt": {
       "type": "string"
      },
      "order_id": {
       "type": "string"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-generation-from-prompt-9a6bd98f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from llmrt-companion.manhliemcn4euwlu.workers.dev](https://www.zero.xyz/host/llmrt-companion.manhliemcn4euwlu.workers.dev/llms.txt)
