defaulthttps://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg
typefile
{
"brightness": 1,
"gap_size": 0.3,
"image": "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg",
"line_width": 1,
"order": 7
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ORJ**********************************
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 ayushunleashed/hilbert-curve-effect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"ayushunleashed/hilbert-curve-effect:8149fb5cea6e45e5c047cba75f15d38f0e73d12507abde4a1e3f2e0dd4cf31c5",
{
input: {
brightness: 1,
gap_size: 0.3,
image: "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg",
line_width: 1,
order: 7
}
}
);
// 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_ORJ**********************************
This is your API token. Keep it to yourself.
import replicate
Run ayushunleashed/hilbert-curve-effect using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"ayushunleashed/hilbert-curve-effect:8149fb5cea6e45e5c047cba75f15d38f0e73d12507abde4a1e3f2e0dd4cf31c5",
input={
"brightness": 1,
"gap_size": 0.3,
"image": "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg",
"line_width": 1,
"order": 7
}
)
# 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_ORJ**********************************
This is your API token. Keep it to yourself.
Run ayushunleashed/hilbert-curve-effect 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": "ayushunleashed/hilbert-curve-effect:8149fb5cea6e45e5c047cba75f15d38f0e73d12507abde4a1e3f2e0dd4cf31c5",
"input": {
"brightness": 1,
"gap_size": 0.3,
"image": "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg",
"line_width": 1,
"order": 7
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "qkfzgdwm7hrma0cq32garhj1nw",
"model": "ayushunleashed/hilbert-curve-effect",
"version": "8149fb5cea6e45e5c047cba75f15d38f0e73d12507abde4a1e3f2e0dd4cf31c5",
"input": {
"brightness": 1,
"gap_size": 0.3,
"image": "https://replicate.delivery/xezq/FfVLnz7eTArJLUg61m9xoY9JKgNsaQ0tShiZEdcWoHqAVSxUA/tmpyjkgkg4e.jpg",
"line_width": 1,
"order": 7
},
"logs": "",
"output": "https://replicate.delivery/xezq/gEIzSxW3LhaQGFat7f0pMmuuFXZibKzhmiwTbfdEya7rbSxUA/output.png",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-05-28T20:41:06.364Z",
"started_at": "2025-05-28T20:41:14.927005Z",
"completed_at": "2025-05-28T20:41:15.218187Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/qkfzgdwm7hrma0cq32garhj1nw/cancel",
"get": "https://api.replicate.com/v1/predictions/qkfzgdwm7hrma0cq32garhj1nw",
"stream": "https://stream.replicate.com/v1/files/bcwr-5l4wyyl2t6pm5kvsz2zst3n7mkkafcab3lo2ge6c2xzoxefxdvka",
"web": "https://replicate.com/p/qkfzgdwm7hrma0cq32garhj1nw"
},
"metrics": {
"predict_time": 0.291181758,
"total_time": 8.854187
}
}
