# Portal Generation - AI Image Enhancement (Upscaling & Face Restoration)

> Portal Generation - AI Image Enhancement (Upscaling & Face Restoration) is a paid API for AI agents from gen.portalfoundation.ai, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Enhances images via AI-powered upscaling and face restoration, returning a URL to the improved image

## Facts

- Endpoint: POST https://gen.portalfoundation.ai/api/enhance-image
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Success rate: 0% of calls made through Zero
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/portal-generation-ai-image-enhancement-upscaling-face-restoration-6f9b3eff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YR7lSHOAYozWTvxX0piSH

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-enhancement-upscaling-face-restoration-6f9b3eff -d '<json body>'
```

Example prompt: Can you enhance this photo for me — upscale it and restore the faces? Here's the image URL: https://example.com/my-photo.jpg. Use the face restoration enhancement type.

## When to prefer this

Choose this endpoint when you need AI-powered image enhancement — specifically upscaling resolution or restoring face detail — on an existing image. Prefer this over image generation endpoints when the input is an existing photo that needs quality improvement rather than creation from scratch. Ideal for photo restoration workflows, sharpening portraits, or preparing images for high-resolution display.

## Known failure modes

- Invalid or inaccessible image URL returns an error
- Unsupported serviceId value results in a bad request
- Base64 image data malformed or too large causes processing failure
- Payment not completed via x402 protocol results in 402 Payment Required
- Image format not supported (e.g. non-standard MIME type) causes rejection

## How this service works

AI Image Enhancement - Upscaling and face restoration

## Output

A JSON object containing a single field `imageUrl` — a URL pointing to the AI-enhanced version of the submitted image, with improved resolution and/or restored faces.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "imageUrl": {
   "type": "string",
   "description": "URL of image to enhance"
  },
  "serviceId": {
   "enum": [
    "clarity-2x",
    "creative-4x",
    "face-restore"
   ],
   "type": "string",
   "description": "Enhancement type"
  },
  "imageBase64": {
   "type": "string",
   "description": "Base64 encoded image"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "imageUrl": {
  "type": "string",
  "description": "URL of the enhanced image"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/portal-generation-ai-image-enhancement-upscaling-face-restoration-6f9b3eff/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)
