You're looking at a specific version of this model. Jump to the model overview.
google-research /maxim:cd3ebeef
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable: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:cd3ebeefb3933d8ed4f75cc2457da8723bfcc69db8b9eb8651e855ca1c562e56",
{
input: {
image: "https://replicate.delivery/mgxm/74cdd668-f209-4186-a225-780eb3e35bd9/0011_23.png",
model: "Image Denoising"
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run google-research/maxim using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"google-research/maxim:cd3ebeefb3933d8ed4f75cc2457da8723bfcc69db8b9eb8651e855ca1c562e56",
input={
"image": "https://replicate.delivery/mgxm/74cdd668-f209-4186-a225-780eb3e35bd9/0011_23.png",
"model": "Image Denoising"
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run google-research/maxim using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"version": "cd3ebeefb3933d8ed4f75cc2457da8723bfcc69db8b9eb8651e855ca1c562e56",
"input": {
"image": "https://replicate.delivery/mgxm/74cdd668-f209-4186-a225-780eb3e35bd9/0011_23.png",
"model": "Image Denoising"
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2022-04-20T16:55:47.194340Z",
"created_at": "2022-04-20T16:54:59.576755Z",
"data_removed": false,
"error": null,
"id": "raz473l7ejdlpnidr4zj4zwn2q",
"input": {
"image": "https://replicate.delivery/mgxm/74cdd668-f209-4186-a225-780eb3e35bd9/0011_23.png",
"model": "Image Denoising"
},
"logs": null,
"metrics": {
"predict_time": 47.380564,
"total_time": 47.617585
},
"output": "https://replicate.delivery/mgxm/7b544b37-30d5-4d86-8745-15a4f3265f1a/output.png",
"started_at": "2022-04-20T16:54:59.813776Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/raz473l7ejdlpnidr4zj4zwn2q",
"cancel": "https://api.replicate.com/v1/predictions/raz473l7ejdlpnidr4zj4zwn2q/cancel"
},
"version": "cd3ebeefb3933d8ed4f75cc2457da8723bfcc69db8b9eb8651e855ca1c562e56"
}