# HyperCLI Text-to-Image HiDream

> HyperCLI Text-to-Image HiDream is a paid API for AI agents from api.hypercli.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Generates an image from a text prompt using the HiDream model via HyperCLI, billed at $0.10 USDC per call via x402 payment.

## Facts

- Endpoint: POST https://api.hypercli.com/api/x402/flow/text-to-image-hidream
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Success rate: 0% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hypercli-text-to-image-hidream-380934cc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yH8c_kfmIIw2B12KIehS8

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 hypercli-text-to-image-hidream-380934cc -d '<json body>'
```

Example prompt: Generate an image of a futuristic city at sunset with neon lights reflected in rain puddles, 1024 pixels wide and 768 pixels tall, and exclude any people or cars from the image.

## When to prefer this

Choose this endpoint when you specifically want to use the HiDream model for text-to-image generation via HyperCLI's GPU infrastructure, and you need async job management (status polling, cancellation, webhook callbacks) with per-call USDC billing. Prefer this over the generic text-to-image endpoint if you specifically want the HiDream model.

## Known failure modes

- Payment failure if x402 USDC payment of $0.10 is not completed
- Invalid prompt or missing required prompt field returns validation error
- Unsupported width/height values may cause generation failure
- Webhook notify_url unreachable causes silent notification failure
- Job may time out or fail during rendering, accessible via status_url

## How this service works

text-to-image-hidream — fixed price $0.1

## Output

Returns a JSON object with a render field (job render details), an access_key for retrieving results, a cancel_url to cancel the job, and a status_url to poll for job completion status.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "width": {
   "anyOf": [
    {
     "type": "integer"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "height": {
   "anyOf": [
    {
     "type": "integer"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "prompt": {
   "type": "string"
  },
  "dry_run": {
   "type": "boolean",
   "default": false
  },
  "negative": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  },
  "notify_url": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "default": null
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "render": {},
  "access_key": "example",
  "cancel_url": "example",
  "status_url": "example"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hypercli-text-to-image-hidream-380934cc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.hypercli.com](https://www.zero.xyz/host/api.hypercli.com/llms.txt)
