typetext
{
"border_start": 0.2,
"border_width": 0.2,
"inpaint_model": "ideogram",
"model": "ideogram-ai/ideogram-v2",
"num_frames": 50,
"output_format": "webp",
"prompt": "A busy street in NYC"
}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/fractal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
border_start: 0.2,
border_width: 0.2,
inpaint_model: "ideogram",
model: "ideogram-ai/ideogram-v2",
num_frames: 50,
output_format: "webp",
prompt: "A busy street in NYC"
};
const output = await replicate.run("pipeline-examples/fractal", { 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/fractal using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pipeline-examples/fractal",
input={
"border_start": 0.2,
"border_width": 0.2,
"inpaint_model": "ideogram",
"model": "ideogram-ai/ideogram-v2",
"num_frames": 50,
"output_format": "webp",
"prompt": "A busy street in NYC"
}
)
# 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/fractal 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": {
"border_start": 0.2,
"border_width": 0.2,
"inpaint_model": "ideogram",
"model": "ideogram-ai/ideogram-v2",
"num_frames": 50,
"output_format": "webp",
"prompt": "A busy street in NYC"
}
}' \
https://api.replicate.com/v1/models/pipeline-examples/fractal/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "aanane0ra5rma0crnw9tjex6kg",
"model": "pipeline-examples/fractal",
"version": "hidden",
"input": {
"border_start": 0.2,
"border_width": 0.2,
"inpaint_model": "ideogram",
"model": "ideogram-ai/ideogram-v2",
"num_frames": 50,
"output_format": "webp",
"prompt": "A busy street in NYC"
},
"logs": "Creating frame 1/50\nCreating frame 2/50\nCreating frame 3/50\nCreating frame 4/50\nCreating frame 5/50\nCreating frame 6/50\nCreating frame 7/50\nCreating frame 8/50\nCreating frame 9/50\nCreating frame 10/50\nCreating frame 11/50\nCreating frame 12/50\nCreating frame 13/50\nCreating frame 14/50\nCreating frame 15/50\nCreating frame 16/50\nCreating frame 17/50\nCreating frame 18/50\nCreating frame 19/50\nCreating frame 20/50\nCreating frame 21/50\nCreating frame 22/50\nCreating frame 23/50\nCreating frame 24/50\nCreating frame 25/50\nCreating frame 26/50\nCreating frame 27/50\nCreating frame 28/50\nCreating frame 29/50\nCreating frame 30/50\nCreating frame 31/50\nCreating frame 32/50\nCreating frame 33/50\nCreating frame 34/50\nCreating frame 35/50\nCreating frame 36/50\nCreating frame 37/50\nCreating frame 38/50\nCreating frame 39/50\nCreating frame 40/50\nCreating frame 41/50\nCreating frame 42/50\nCreating frame 43/50\nCreating frame 44/50\nCreating frame 45/50\nCreating frame 46/50\nCreating frame 47/50\nCreating frame 48/50\nCreating frame 49/50\nCreating frame 50/50",
"output": "https://replicate.delivery/xezq/0MowLiDWkGISHp8dA26umwSPtrYgfzq1e0ZoAfDYzNOQgmWqA/output.webp",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-15T18:52:00.977Z",
"started_at": "2025-08-15T18:52:01.346826Z",
"completed_at": "2025-08-15T18:52:56.570364Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/aanane0ra5rma0crnw9tjex6kg/cancel",
"children": "https://api.replicate.com/v1/predictions/aanane0ra5rma0crnw9tjex6kg/children",
"get": "https://api.replicate.com/v1/predictions/aanane0ra5rma0crnw9tjex6kg",
"root": "https://api.replicate.com/v1/predictions/aanane0ra5rma0crnw9tjex6kg",
"stream": "https://stream.replicate.com/v1/files/bcwr-fuccej4dihwsmjzimhzej6g7q44pehgtel6immte6k3snv67tnuq",
"web": "https://replicate.com/p/aanane0ra5rma0crnw9tjex6kg"
},
"metrics": {
"predict_time": 55.223537448,
"total_time": 55.593364
}
}