Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
Choose a model.
Input image.
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run google-research/maxim using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "google-research/maxim:494ca4d578293b4b93945115601b6a38190519da18467556ca223d219c3af9f9", { input: { image: "https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png", model: "Image Deblurring (GoPro)" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
import replicate
output = replicate.run( "google-research/maxim:494ca4d578293b4b93945115601b6a38190519da18467556ca223d219c3af9f9", input={ "image": "https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png", "model": "Image Deblurring (GoPro)" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
curl -s -X POST \ -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ -H "Content-Type: application/json" \ -H "Prefer: wait" \ -d $'{ "version": "494ca4d578293b4b93945115601b6a38190519da18467556ca223d219c3af9f9", "input": { "image": "https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png", "model": "Image Deblurring (GoPro)" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{ "completed_at": "2022-04-23T08:37:29.298497Z", "created_at": "2022-04-23T08:37:07.361202Z", "data_removed": false, "error": null, "id": "de3zlvchsvdntdd4y2pk7eeu5y", "input": { "image": "https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png", "model": "Image Deblurring (GoPro)" }, "logs": null, "metrics": { "predict_time": 21.753686, "total_time": 21.937295 }, "output": "https://replicate.delivery/mgxm/716ffa94-41f7-46b4-a2f0-287f0e907f9c/output.png", "started_at": "2022-04-23T08:37:07.544811Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/de3zlvchsvdntdd4y2pk7eeu5y", "cancel": "https://api.replicate.com/v1/predictions/de3zlvchsvdntdd4y2pk7eeu5y/cancel" }, "version": "a91063d0a4a6e6545980ce677b4a5bfbee686229307baed4e9b91f66dd0d749d" }
This example was created by a different version, google-research/maxim:a91063d0.
Choose a file from your machine
Hint: you can also drag files onto the input