# Driftflight Image Generation

> Driftflight Image Generation is a paid API for AI agents from agents.driftflight.com, paid per call via x402 or MPP, $0.01–$0.06/call (observed), status healthy (last checked 2026-10-12, last successful call 2026-10-09).

Generates an image from a text prompt using selectable model tiers and artistic presets

## Facts

- Endpoint: POST https://agents.driftflight.com/v1/images/generate?utm_source=zero.xyz
- Price: $0.01–$0.06/call (observed)
- Payment: x402, MPP
- Status: healthy
- Last checked: 2026-10-12
- Last successful call: 2026-10-09
- Success rate: 99% of calls made through Zero
- Rating: 4.8 / 5 from 4 reviews
- Activations on Zero: 791
- Tags: x402
- Canonical page: https://www.zero.xyz/c/driftflight-image-generation-be56be85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rhxDmwlE1Ar-7FUjOjYdb

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 driftflight-image-generation-be56be85 -d '<json body>'
```

Example prompt: Generate an image of a cozy Japanese coffee shop in the rain using the studio model with a film-noir preset.

## When to prefer this

Choose this endpoint when you need text-to-image generation with distinct artistic style presets (especially film-noir, botanical, watercolor, isometric, editorial, or product-studio looks) and tiered model quality options. It is well-suited for agents that need stylistically consistent image generation with predictable visual aesthetics rather than fully open-ended diffusion output.

## Known failure modes

- Invalid or missing prompt returns a 400 error
- Unsupported model enum value returns a validation error
- Unsupported preset enum value returns a validation error
- Payment failure or insufficient USDC balance returns a 402 error
- Service unavailability returns a 503 error

## How this service works

Generate an image from a text prompt

## Output

A generated image produced from the provided text prompt, rendered according to the chosen model tier (sketch, studio, or gallery) and artistic preset (editorial, product-studio, film-noir, botanical, watercolor, or isometric).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "model": {
   "enum": [
    "sketch",
    "studio",
    "gallery"
   ],
   "type": "string",
   "default": "studio"
  },
  "preset": {
   "enum": [
    "editorial",
    "product-studio",
    "film-noir",
    "botanical",
    "watercolor",
    "isometric"
   ],
   "type": "string"
  },
  "prompt": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "imageUrl",
  "model",
  "licence"
 ],
 "properties": {
  "model": {
   "enum": [
    "sketch",
    "studio",
    "gallery"
   ],
   "type": "string"
  },
  "preset": {
   "type": [
    "string",
    "null"
   ]
  },
  "credits": {
   "type": "string"
  },
  "licence": {
   "type": "string"
  },
  "imageUrl": {
   "type": "string",
   "format": "uri",
   "description": "Public URL of the generated image. GET this URL to retrieve the image bytes."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/driftflight-image-generation-be56be85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.driftflight.com](https://www.zero.xyz/host/agents.driftflight.com/llms.txt)
