GET
/v1/schemas/fal/image/fal-ai/image-editing/photo-restoration
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source tracee66de3497668c53f1a961efcd3b13e90124bc40479df7bd4ee58890ea9aca523{
"fetchedAt": 1783329487,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
8 properties · 1 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| image_url* | string | URL of the old or damaged photo to restore. | |
| safety_tolerance | enum | The safety tolerance level for the generated image. 1 being the most strict and 6 being the most permissive. | 1 | 2 | 3 | 4 | 5 | 6 · default: "2" |
| guidance_scale | number | The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you. | 0 ≤ n ≤ 20 · default: 3.5 |
| seed | integer | The same seed and the same prompt given to the same version of the model will output the same image every time. | nullable |
| output_format | enum | The format of the generated image. | jpeg | png · default: "jpeg" |
| sync_mode | boolean | If `True`, the media will be returned as a data URI and the output data won't be available in the request history. | default: false |
| num_inference_steps | integer | Number of inference steps for sampling. | 1 ≤ n ≤ 50 · default: 30 |
| aspect_ratio | enum | The aspect ratio of the generated image. | 21:9 | 16:9 | 4:3 | 3:2 | 1:1 | 2:3 · +3 more · nullable |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/image-editing/photo-restoration","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}