google-research
/
maxim
Multi-Axis MLP for Image Processing
Run google-research/maxim with an API
Use one of our client libraries to get started quickly.
Set the REPLICATE_API_TOKEN
environment variable
export REPLICATE_API_TOKEN=<paste-your-token-here>
Learn more about authentication
Install Replicate’s Node.js client library
npm install replicate
Run google-research/maxim using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
import Replicate from "replicate";
const replicate = new Replicate();
const input = {
image: "https://replicate.delivery/mgxm/6707a57f-4957-4047-b020-2160aed1d27a/1fromGOPR0950.png",
model: "Image Deblurring (GoPro)"
};
const output = await replicate.run("google-research/maxim:494ca4d578293b4b93945115601b6a38190519da18467556ca223d219c3af9f9", { input });
import { writeFile } from "node:fs/promises";
await writeFile("output.png", output);
//=> output.png written to disk