typetext
{
"inpaint_model": "ideogram",
"input_image": "https://replicate.delivery/pbxt/NYHmuV6SArbn0iLUqlsT9l8fBS2IBzh9515Jom1nIfxQsbKL/tmplhnm_9ui.png",
"model": "black-forest-labs/flux-schnell",
"prompt": "a network of interconnected pipes",
"seam_percentage": 60
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ZpA**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run pipeline-examples/tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
inpaint_model: "ideogram",
input_image: "https://replicate.delivery/pbxt/NYHmuV6SArbn0iLUqlsT9l8fBS2IBzh9515Jom1nIfxQsbKL/tmplhnm_9ui.png",
model: "black-forest-labs/flux-schnell",
prompt: "a network of interconnected pipes",
seam_percentage: 60
};
const output = await replicate.run("pipeline-examples/tile", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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_ZpA**********************************
This is your API token. Keep it to yourself.
import replicate
Run pipeline-examples/tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipeline-examples/tile",
input={
"inpaint_model": "ideogram",
"input_image": "https://replicate.delivery/pbxt/NYHmuV6SArbn0iLUqlsT9l8fBS2IBzh9515Jom1nIfxQsbKL/tmplhnm_9ui.png",
"model": "black-forest-labs/flux-schnell",
"prompt": "a network of interconnected pipes",
"seam_percentage": 60
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ZpA**********************************
This is your API token. Keep it to yourself.
Run pipeline-examples/tile 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": {
"inpaint_model": "ideogram",
"input_image": "https://replicate.delivery/pbxt/NYHmuV6SArbn0iLUqlsT9l8fBS2IBzh9515Jom1nIfxQsbKL/tmplhnm_9ui.png",
"model": "black-forest-labs/flux-schnell",
"prompt": "a network of interconnected pipes",
"seam_percentage": 60
}
}' \
https://api.replicate.com/v1/models/pipeline-examples/tile/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "dch1aj4hm9rm80crq3k9axhmrg",
"model": "pipeline-examples/tile",
"version": "hidden",
"input": {
"inpaint_model": "ideogram",
"input_image": "https://replicate.delivery/pbxt/NYHmuV6SArbn0iLUqlsT9l8fBS2IBzh9515Jom1nIfxQsbKL/tmplhnm_9ui.png",
"model": "black-forest-labs/flux-schnell",
"prompt": "a network of interconnected pipes",
"seam_percentage": 60
},
"logs": "",
"output": "https://replicate.delivery/xezq/0XvHVtdYuio3HdhyMEfozZJkEbU27XcJquyKo16aMedhf2XqA/tileable_image.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-17T16:39:35.074Z",
"started_at": "2025-08-17T16:39:35.500296Z",
"completed_at": "2025-08-17T16:40:01.829265Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/dch1aj4hm9rm80crq3k9axhmrg/cancel",
"children": "https://api.replicate.com/v1/predictions/dch1aj4hm9rm80crq3k9axhmrg/children",
"get": "https://api.replicate.com/v1/predictions/dch1aj4hm9rm80crq3k9axhmrg",
"root": "https://api.replicate.com/v1/predictions/dch1aj4hm9rm80crq3k9axhmrg",
"stream": "https://stream.replicate.com/v1/files/bcwr-quykhrezqx2u2rre7ihflpfxykig4dg7svanmtpigkk6eidjw7ba",
"web": "https://replicate.com/p/dch1aj4hm9rm80crq3k9axhmrg"
},
"metrics": {
"predict_time": 26.328968368,
"total_time": 26.755265
}
}
