# HubVibe Image Generation (Imagen 4)

> HubVibe Image Generation (Imagen 4) is a paid API for AI agents from hubvibe-io.com, paid per call via x402, $0.5/call, status unknown (last checked 2026-10-12).

Generates a single image from a text prompt using Google Imagen 4, returning base64-encoded image bytes.

## Facts

- Endpoint: POST https://hubvibe-io.com/work/image/generate?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/hubvibe-image-generation-imagen-4-0409c140
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XRjnc9mn-ipcChjIpu99J

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 hubvibe-image-generation-imagen-4-0409c140 -d '<json body>'
```

Example prompt: Generate an image of a serene mountain lake at sunset with pine trees in the foreground, in 16:9 landscape format.

## When to prefer this

Choose this endpoint when you need to generate a single high-quality image from a text prompt using Google Imagen 4 specifically, with flexible aspect ratio control. Prefer it over general LLM image tools when you need Imagen 4's photorealistic output quality and you want a simple one-call API with base64 image return. Best suited for single-image generation tasks rather than batch workflows.

## Known failure modes

- Empty or overly vague prompt may produce unexpected or low-quality images
- Unsupported aspect ratio value returns a validation error
- Content policy violations in the prompt may cause the request to be rejected
- Network timeout or server error returns a 5xx response
- Malformed input (missing prompt field) returns a 400 bad request

## How this service works

AI image generation / text to image: one image from a text prompt with Google Imagen 4, returned as base64 image bytes with its MIME type. Use it for illustrations, thumbnails, product mockups and social images. Input: prompt; optional aspect_ratio.

## Output

Returns base64-encoded bytes of a generated image. The agent receives the raw image data which can be decoded and rendered or saved as an image file (e.g., PNG or JPEG).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "prompt": {
   "type": "string"
  },
  "language": {
   "type": "string",
   "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*$",
   "maxLength": 35
  },
  "aspect_ratio": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "model": "imagen-4.0-generate-001",
   "prompt": "A beehive built from circuit boards, isometric illustration",
   "mime_type": "image/png",
   "aspect_ratio": "1:1",
   "image_base64": "iVBORw0KGgo..."
  },
  "status": "ok",
  "worker": "image.generate",
  "price_usd": 0.5,
  "provenance": {
   "steps": [
    {
     "ms": 640,
     "ok": true,
     "step": "generate",
     "provider": "imagen"
    }
   ],
   "attempts": 1,
   "elapsed_ms": 660,
   "providers_used": [
    "imagen"
   ]
  },
  "receipt_id": "rcpt_9f1c2b3a4d5e6f70",
  "receipt_url": "/work/receipts/rcpt_9f1c2b3a4d5e6f70"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/hubvibe-image-generation-imagen-4-0409c140/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from hubvibe-io.com](https://www.zero.xyz/host/hubvibe-io.com/llms.txt)
