# Portal Generation - AI Image Generation (FLUX, SDXL, Recraft, SeeDream)

> Portal Generation - AI Image Generation (FLUX, SDXL, Recraft, SeeDream) is a paid API for AI agents from gen.portalfoundation.ai, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-15).

Generates AI images from text prompts using multiple model options including FLUX, SDXL, Recraft, and SeeDream, returning a URL to the generated image

## Facts

- Endpoint: POST https://gen.portalfoundation.ai/api/generate-image
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Success rate: 0% of calls made through Zero
- Activations on Zero: 2
- Tags: x402
- Canonical page: https://www.zero.xyz/c/portal-generation-ai-image-generation-flux-sdxl-recraft-seedream-0d0f071d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kETJMoDPZGTgiNn8uOKiG

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 portal-generation-ai-image-generation-flux-sdxl-recraft-seedream-0d0f071d -d '<json body>'
```

Example prompt: Generate an image of a futuristic cityscape at dusk with neon lights reflecting on wet streets, using the FLUX model with 30 inference steps.

## When to prefer this

Choose this endpoint when you need text-to-image generation with access to multiple model options (FLUX, SDXL, Recraft, SeeDream) via a pay-per-use x402 micropayment model. Prefer over alternatives when model variety matters, when you want to pay per call without a subscription, or when building agents that use x402 payment rails.

## Known failure modes

- Missing required 'prompt' field returns a 400 validation error
- Invalid model ID may result in a 400 or fallback to default model
- Payment not fulfilled (x402 flow not completed) results in a 402 Payment Required response
- Server-side generation failure returns a 500 error
- Prompt content policy violation may result in a 400 or 403 error
- Invalid seed or steps values may cause generation failure

## How this service works

AI Image Generation - FLUX, SDXL, Recraft, SeeDream models

## Output

Returns a JSON object containing the model used for generation and a URL pointing to the generated image hosted by Portal Foundation.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "prompt"
 ],
 "properties": {
  "seed": {
   "type": "number",
   "description": "Random seed (-1 for random)"
  },
  "model": {
   "enum": [
    "flux-schnell",
    "flux-dev",
    "flux-pro-1.1",
    "flux-pro-ultra",
    "sdxl",
    "recraft",
    "seedream-4"
   ],
   "type": "string",
   "description": "Model ID"
  },
  "steps": {
   "type": "number",
   "description": "Number of inference steps"
  },
  "prompt": {
   "type": "string",
   "description": "Text description of the image to generate"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "model": {
  "type": "string",
  "description": "Model used"
 },
 "imageUrl": {
  "type": "string",
  "description": "URL of the generated image"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/portal-generation-ai-image-generation-flux-sdxl-recraft-seedream-0d0f071d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from gen.portalfoundation.ai](https://www.zero.xyz/host/gen.portalfoundation.ai/llms.txt)
