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.
lucataco /controlnet-tile:f688ff77
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run lucataco/controlnet-tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"lucataco/controlnet-tile:f688ff774c27a4843c819c9264c0f949925970bb278669ed9140364c8389869c",
{
input: {
image: "https://replicate.delivery/pbxt/JwoDHQ0gIgBPeiXQPiAI0s7NVFkRxDLwXie51LIhDBYWIvBe/ship.jpg",
scale: 2,
strength: 0.15,
num_inference_steps: 32
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run lucataco/controlnet-tile using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"lucataco/controlnet-tile:f688ff774c27a4843c819c9264c0f949925970bb278669ed9140364c8389869c",
input={
"image": "https://replicate.delivery/pbxt/JwoDHQ0gIgBPeiXQPiAI0s7NVFkRxDLwXie51LIhDBYWIvBe/ship.jpg",
"scale": 2,
"strength": 0.15,
"num_inference_steps": 32
}
)
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 lucataco/controlnet-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 $'{
"version": "lucataco/controlnet-tile:f688ff774c27a4843c819c9264c0f949925970bb278669ed9140364c8389869c",
"input": {
"image": "https://replicate.delivery/pbxt/JwoDHQ0gIgBPeiXQPiAI0s7NVFkRxDLwXie51LIhDBYWIvBe/ship.jpg",
"scale": 2,
"strength": 0.15,
"num_inference_steps": 32
}
}' \
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
Loading...
{
"completed_at": "2023-11-27T02:29:58.826983Z",
"created_at": "2023-11-27T02:29:44.034766Z",
"data_removed": false,
"error": null,
"id": "n2xbqalb6jq467mm4v4qzmxoou",
"input": {
"image": "https://replicate.delivery/pbxt/JwoDHQ0gIgBPeiXQPiAI0s7NVFkRxDLwXie51LIhDBYWIvBe/ship.jpg",
"scale": 2,
"strength": 0.15,
"num_inference_steps": 32
},
"logs": "Using seed: 2042068625\nResizing to 2048\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:03<00:10, 3.62s/it]\n 50%|█████ | 2/4 [00:05<00:05, 2.56s/it]\n 75%|███████▌ | 3/4 [00:07<00:02, 2.22s/it]\n100%|██████████| 4/4 [00:09<00:00, 2.06s/it]\n100%|██████████| 4/4 [00:09<00:00, 2.27s/it]",
"metrics": {
"predict_time": 14.734585,
"total_time": 14.792217
},
"output": "https://replicate.delivery/pbxt/Aw8ucvkmTD6lJNYgDu6wYCX28lNglGNR66Y0XfFtKQzSiNeRA/output.png",
"started_at": "2023-11-27T02:29:44.092398Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/n2xbqalb6jq467mm4v4qzmxoou",
"cancel": "https://api.replicate.com/v1/predictions/n2xbqalb6jq467mm4v4qzmxoou/cancel"
},
"version": "f688ff774c27a4843c819c9264c0f949925970bb278669ed9140364c8389869c"
}
Using seed: 2042068625
Resizing to 2048
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:03<00:10, 3.62s/it]
50%|█████ | 2/4 [00:05<00:05, 2.56s/it]
75%|███████▌ | 3/4 [00:07<00:02, 2.22s/it]
100%|██████████| 4/4 [00:09<00:00, 2.06s/it]
100%|██████████| 4/4 [00:09<00:00, 2.27s/it]