# Enhance / Upscale

For AI agents: this is the Markdown version of https://docs.fashiolabs.com/tools/photo_enhance.html. The index of all Fashio API docs is at https://docs.fashiolabs.com/llms.txt, and the complete reference in one file is at https://docs.fashiolabs.com/llms-full.txt.

Upscale and sharpen an existing photo — no scene or subject changes, purely a resolution/clarity pass.

`toolId: "photo_enhance"` · 3 credits · deterministic

![Enhance / Upscale result — sharper, higher-resolution photo](https://firebasestorage.googleapis.com/v0/b/fashio-ai-app.firebasestorage.app/o/fal_outputs%2Fenhance.jpg?alt=media&token=e30249c1-aa4f-4c3c-addb-3920451dc58b)

## What it does

Fashio upscales and sharpens the photo you send in. Output preserves the input's aspect ratio and framing exactly, just at higher resolution and clarity — there's no prompt and no selectors, just the image.

## Request body

| Field | Type |  | Description |
| --- | --- | --- | --- |
| `toolId` | string | required | Always `"photo_enhance"`. |
| `images.user_photo` | string | required | URL of the photo to enhance (from `POST /v1/uploads` or your own hosting). |

No pose, no ratio, no prompt fields — this is the simplest request body of any tool in the catalog.

## Example request

**cURL**

```bash
curl -X POST https://api.fashiolabs.com/v1/generations \
  -H "Authorization: Bearer fio_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "toolId": "photo_enhance",
    "images": {
      "user_photo": "https://your-cdn.com/photo.jpg"
    }
  }'
```

**Node.js**

```javascript
const res = await fetch("https://api.fashiolabs.com/v1/generations", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.FASHIO_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    toolId: "photo_enhance",
    images: {
      user_photo: "https://your-cdn.com/photo.jpg",
    },
  }),
});
const { id } = await res.json();
```

**Python**

```python
import os, requests

res = requests.post(
    "https://api.fashiolabs.com/v1/generations",
    headers={"Authorization": f"Bearer {os.environ['FASHIO_API_KEY']}"},
    json={
        "toolId": "photo_enhance",
        "images": {
            "user_photo": "https://your-cdn.com/photo.jpg",
        },
    },
)
job_id = res.json()["id"]
```

## Response

**202 Accepted**

```json
{ "success": true, "id": "8b1e...", "status": "processing" }
```

Poll `GET /v1/generations/:id` (see [Quickstart](https://docs.fashiolabs.com/quickstart.md)) until it completes:

**200 · completed**

```json
{
  "success": true,
  "id": "8b1e...",
  "status": "completed",
  "resultUrls": ["https://.../result.jpg"],
  "errorMessage": null
}
```

## Common errors

| Status | Meaning |
| --- | --- |
| 400 | `photo_enhance: missing required image "user_photo"` — required image field wasn't resolvable. |
| 402 | `Insufficient diamonds. Required 3, have <n>.` |
| 429 | Daily request cap reached for this key — see [Rate Limits](https://docs.fashiolabs.com/rate-limits.md). |

## Related tools

- [Remove Background](https://docs.fashiolabs.com/tools/remove_background.md) — another deterministic, no-prompt pass on an existing photo.
- [Amateur to Professional](https://docs.fashiolabs.com/tools/amateur_to_pro.md) — a heavier retouch pass beyond just resolution.

---

Source: https://docs.fashiolabs.com/tools/photo_enhance.html · OpenAPI spec: https://docs.fashiolabs.com/openapi.yaml · Docs index: https://docs.fashiolabs.com/llms.txt
