# Sift Web Tools – AI Image Generation

> Sift Web Tools – AI Image Generation is a paid API for AI agents from sift.srv1996466.hstgr.cloud, paid per call via x402, $0.08/call, status unknown (last checked 2026-10-23).

Generates an image from a text prompt (with optional aspect ratio) and returns a PNG, billed per successful call via x402 USDC on Base.

## Facts

- Endpoint: GET https://sift.srv1996466.hstgr.cloud/v1/image?utm_source=zero.xyz
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sift-web-tools-ai-image-generation-f4303acc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3vSuVVcwWC-nZuOw2kOtt

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 sift-web-tools-ai-image-generation-f4303acc
```

Example prompt: Generate an image of a serene mountain lake at golden hour with pine trees reflecting in the still water — use a 16:9 aspect ratio.

## When to prefer this

Choose this endpoint when an AI agent needs to generate a brand-new image from a text description without any image input, and payment is handled via x402 USDC on Base (pay-per-call, no subscription). Ideal for agents that want a pay-as-you-go model at $0.08 per image with no upfront commitment. Prefer this over self-hosted or subscription-based image APIs when operating in a crypto-native, per-call billing context.

## Known failure modes

- Prompt too short (under 3 chars) or too long (over 2000 chars) returns a 400 error
- Invalid aspect ratio format returns a 400 error
- Payment failure or insufficient USDC balance returns a 402 before generation begins
- Server-side generation failure returns a 500 with no image and no charge
- Network timeout may leave generation state unknown

## How this service works

Generate an image from a text prompt (PNG). Text-to-image with Google's Gemini image model. Aspect ratios 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9. Prompts refused by the model's safety filter are not charged.

## Output

Returns a PNG image file generated from the given text prompt. The image is only returned (and payment charged) on a successful HTTP 200 response. No metadata or JSON wrapper — the raw image bytes are the response body.

## 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": [
      "prompt"
     ],
     "properties": {
      "aspect": {
       "type": "string",
       "description": "Aspect ratio (default 1:1)"
      },
      "prompt": {
       "type": "string",
       "description": "What to draw (3-2000 chars)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sift-web-tools-ai-image-generation-f4303acc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sift.srv1996466.hstgr.cloud](https://www.zero.xyz/host/sift.srv1996466.hstgr.cloud/llms.txt)
