tomclive/photo-restore-comparison

Restores photos using current SOTA image editing models and outputs a collage

Public
368 runs

Run tomclive/photo-restore-comparison with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
image
string
Photo to be restored
openai_api_key
string
Your OpenAI API key (required for GPT Image 1)
collage_width
integer
1200

Min: 800

Max: 2000

Width of the output collage in pixels
include_original
boolean
True
Include original image in collage

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "object",
  "title": "Output",
  "required": [
    "comparison_collage",
    "nano_banana_result",
    "flux_restore_result",
    "openai_gpt_image_result",
    "qwen_edit_result",
    "seededit_result"
  ],
  "properties": {
    "seededit_result": {
      "type": "string",
      "title": "Seededit Result",
      "format": "uri"
    },
    "qwen_edit_result": {
      "type": "string",
      "title": "Qwen Edit Result",
      "format": "uri"
    },
    "comparison_collage": {
      "type": "string",
      "title": "Comparison Collage",
      "format": "uri"
    },
    "nano_banana_result": {
      "type": "string",
      "title": "Nano Banana Result",
      "format": "uri"
    },
    "flux_restore_result": {
      "type": "string",
      "title": "Flux Restore Result",
      "format": "uri"
    },
    "openai_gpt_image_result": {
      "type": "string",
      "title": "Openai Gpt Image Result",
      "format": "uri"
    }
  }
}
Example API response
View prediction
{'comparison_collage': 'https://replicate.delivery/xezq/LBRDPffQt8jIfp3fhg5fWEyrJ2Se03eLVkTXwbRw1aJe7vJPVA/restoration_comparison.png',
 'flux_restore_result': 'https://replicate.delivery/xezq/nlAfHQCJxo0EC6l1QnRUWpVNB95E34y97o3dslGywMx93knKA/tmpq4_zxj3_.png',
 'nano_banana_result': 'https://replicate.delivery/xezq/gdtoGNfH9cxdICtW4qXhXHy8e3eqe3266ExAc2ddwpRtfN5pC/tmp7k2iw5mu.png',
 'openai_gpt_image_result': None,
 'qwen_edit_result': 'https://replicate.delivery/xezq/pGqpxav0ijY6CVegO29hlvH7iPJAEHet884t79cWIVk7vJPVA/out-0.png',
 'seededit_result': 'https://replicate.delivery/xezq/wM6fPE4oT6RoaKrcFb9LUOwSrLcSmcNfdR3YJDhXNpT7vJPVA/tmp9e7zzj0d.jpg'}