typefile
{
"extend_bottom": 0,
"extend_left": 500,
"extend_right": 500,
"extend_top": 0,
"guidance": 30,
"image": "https://replicate.delivery/pbxt/NXIHhdKWZar8MkMRrO4qvlYrufg9mv5Qf1gM139kyxvxMUET/11.jpg",
"preset": "none",
"prompt": "Continue the image",
"steps": 50
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_SBq**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run zsxkib/outpainter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
extend_bottom: 0,
extend_left: 500,
extend_right: 500,
extend_top: 0,
guidance: 30,
image: "https://replicate.delivery/pbxt/NXIHhdKWZar8MkMRrO4qvlYrufg9mv5Qf1gM139kyxvxMUET/11.jpg",
preset: "none",
prompt: "Continue the image",
steps: 50
};
const output = await replicate.run("zsxkib/outpainter", { input });
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=r8_SBq**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/outpainter using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/outpainter",
input={
"extend_bottom": 0,
"extend_left": 500,
"extend_right": 500,
"extend_top": 0,
"guidance": 30,
"image": "https://replicate.delivery/pbxt/NXIHhdKWZar8MkMRrO4qvlYrufg9mv5Qf1gM139kyxvxMUET/11.jpg",
"preset": "none",
"prompt": "Continue the image",
"steps": 50
}
)
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=r8_SBq**********************************
This is your API token. Keep it to yourself.
Run zsxkib/outpainter 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 $'{
"input": {
"extend_bottom": 0,
"extend_left": 500,
"extend_right": 500,
"extend_top": 0,
"guidance": 30,
"image": "https://replicate.delivery/pbxt/NXIHhdKWZar8MkMRrO4qvlYrufg9mv5Qf1gM139kyxvxMUET/11.jpg",
"preset": "none",
"prompt": "Continue the image",
"steps": 50
}
}' \
https://api.replicate.com/v1/models/zsxkib/outpainter/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Object output with 1 properties
{
"id": "c5aqyr9dfnrma0crna1bzeevq0",
"model": "zsxkib/outpainter",
"version": "hidden",
"input": {
"extend_bottom": 0,
"extend_left": 500,
"extend_right": 500,
"extend_top": 0,
"guidance": 30,
"image": "https://replicate.delivery/pbxt/NXIHhdKWZar8MkMRrO4qvlYrufg9mv5Qf1gM139kyxvxMUET/11.jpg",
"preset": "none",
"prompt": "Continue the image",
"steps": 50
},
"logs": "",
"output": {
"image": "https://replicate.delivery/xezq/AmVvqYnL0MIrENLZakS7DvijAItFXzRv0QxHqY0ld9xrIwSF/tmpq0mtcjkz.jpg"
},
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-14T21:35:14.813Z",
"started_at": "2025-08-14T21:35:15.244724Z",
"completed_at": "2025-08-14T21:35:43.628671Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/c5aqyr9dfnrma0crna1bzeevq0/cancel",
"children": "https://api.replicate.com/v1/predictions/c5aqyr9dfnrma0crna1bzeevq0/children",
"get": "https://api.replicate.com/v1/predictions/c5aqyr9dfnrma0crna1bzeevq0",
"root": "https://api.replicate.com/v1/predictions/c5aqyr9dfnrma0crna1bzeevq0",
"web": "https://replicate.com/p/c5aqyr9dfnrma0crna1bzeevq0"
},
"metrics": {
"predict_time": 28.3839475,
"total_time": 28.815671
}
}
