# Chrono Edit Lora Gallery

> Upscales and cleans up the image.


## Overview

- **Endpoint**: `https://fal.run/fal-ai/chrono-edit-lora-gallery/upscaler`
- **Model ID**: `fal-ai/chrono-edit-lora-gallery/upscaler`
- **Category**: image-to-image
- **Kind**: inference
**Tags**: upscale, details



## Pricing

Your request will cost **$0.02** per image for 480p or **$0.03** per image for 720p.

For more details, see [fal.ai pricing](https://fal.ai/pricing).

## API Information

This model can be used via our HTTP API or more conveniently via our client libraries.
See the input and output schema below, as well as the usage examples.


### Input Schema

The API accepts the following input parameters:


- **`image_url`** (`string`, _required_):
  The image to upscale.

- **`upscale_factor`** (`float`, _optional_):
  Target scale factor for the output resolution. Default value: `2`
  - Default: `2`
  - Range: `1` to `4`

- **`guidance_scale`** (`float`, _optional_):
  The guidance scale for the inference. Default value: `1`
  - Default: `1`
  - Range: `0` to `10`

- **`enable_safety_checker`** (`boolean`, _optional_):
  Whether to enable the safety checker. Default value: `true`
  - Default: `true`

- **`num_inference_steps`** (`integer`, _optional_):
  Number of inference steps for the upscaling pass. Default value: `30`
  - Default: `30`
  - Range: `2` to `50`

- **`lora_scale`** (`float`, _optional_):
  The scale factor for the LoRA adapter. Default value: `1`
  - Default: `1`
  - Range: `0` to `2`

- **`seed`** (`integer`, _optional_):
  The seed for the inference.

- **`output_format`** (`OutputFormatEnum`, _optional_):
  The format of the output image. Default value: `"jpeg"`
  - Default: `"jpeg"`
  - Options: `"jpeg"`, `"png"`, `"webp"`

- **`sync_mode`** (`boolean`, _optional_):
  Whether to return the image in sync mode.
  - Default: `false`

- **`loras`** (`list<ChronoLoraWeight>`, _optional_):
  Optional additional LoRAs to merge (max 3).
  - Default: `[]`
  - Array of ChronoLoraWeight



**Required Parameters Example**:

```json
{
  "image_url": ""
}
```

**Full Example**:

```json
{
  "image_url": "",
  "upscale_factor": 2,
  "guidance_scale": 1,
  "enable_safety_checker": true,
  "num_inference_steps": 30,
  "lora_scale": 1,
  "output_format": "jpeg",
  "loras": []
}
```


### Output Schema

The API returns the following output format:

- **`images`** (`list<ImageFile>`, _required_):
  The edited image.
  - Array of ImageFile
  - Examples: [{"height":768,"width":1152,"url":"https://v3b.fal.media/files/b/koala/2_gRhwfsnmNKYtZ_dveyV.jpg","content_type":"image/jpeg","file_name":"2_gRhwfsnmNKYtZ_dveyV.jpg"}]

- **`prompt`** (`string`, _required_):
  The prompt used for the inference.
  - Examples: "The user wants to add a surfer to the wave in the illustration while preserving the original ukiyo-e woodblock art style. The surfer should be depicted mid-action, crouched low on a modern-style surfboard, carving through the crest of the wave with one arm extended for balance and the other gripping the board. Their wavy hair and athletic physique should match the dynamic motion. The background must remain unchanged, including the iconic Mount Fuji and the traditional Japanese text, to maintain the artwork's historical aesthetic and composition."

- **`seed`** (`integer`, _required_):
  The seed for the inference.



**Example Response**:

```json
{
  "images": [
    {
      "height": 768,
      "width": 1152,
      "url": "https://v3b.fal.media/files/b/koala/2_gRhwfsnmNKYtZ_dveyV.jpg",
      "content_type": "image/jpeg",
      "file_name": "2_gRhwfsnmNKYtZ_dveyV.jpg"
    }
  ],
  "prompt": "The user wants to add a surfer to the wave in the illustration while preserving the original ukiyo-e woodblock art style. The surfer should be depicted mid-action, crouched low on a modern-style surfboard, carving through the crest of the wave with one arm extended for balance and the other gripping the board. Their wavy hair and athletic physique should match the dynamic motion. The background must remain unchanged, including the iconic Mount Fuji and the traditional Japanese text, to maintain the artwork's historical aesthetic and composition."
}
```


## Usage Examples

### cURL

```bash
curl --request POST \
  --url https://fal.run/fal-ai/chrono-edit-lora-gallery/upscaler \
  --header "Authorization: Key $FAL_KEY" \
  --header "Content-Type: application/json" \
  --data '{
     "image_url": ""
   }'
```

### Python

Ensure you have the Python client installed:

```bash
pip install fal-client
```

Then use the API client to make requests:

```python
import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/chrono-edit-lora-gallery/upscaler",
    arguments={
        "image_url": ""
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)
```

### JavaScript

Ensure you have the JavaScript client installed:

```bash
npm install --save @fal-ai/client
```

Then use the API client to make requests:

```javascript
import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/chrono-edit-lora-gallery/upscaler", {
  input: {
    image_url: ""
  },
  logs: true,
  onQueueUpdate: (update) => {
    if (update.status === "IN_PROGRESS") {
      update.logs.map((log) => log.message).forEach(console.log);
    }
  },
});
console.log(result.data);
console.log(result.requestId);
```


## Additional Resources

### Documentation

- [Model Playground](https://fal.ai/models/fal-ai/chrono-edit-lora-gallery/upscaler)
- [API Documentation](https://fal.ai/models/fal-ai/chrono-edit-lora-gallery/upscaler/api)
- [OpenAPI Schema](https://fal.ai/api/openapi/queue/openapi.json?endpoint_id=fal-ai/chrono-edit-lora-gallery/upscaler)

### fal.ai Platform

- [Platform Documentation](https://docs.fal.ai)
- [Python Client](https://docs.fal.ai/clients/python)
- [JavaScript Client](https://docs.fal.ai/clients/javascript)
