typefile
{
"image": "https://replicate.delivery/pbxt/NL804xhxMJdgW3C2ZR14gg8U01MhTMYVtpVCr8PT9NkvMwqZ/image.png",
"instruction": "make it MORE",
"run_vanilla_kontext": false,
"system_prompt": "exaggerated"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_BWZ**********************************
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 fofr/kontext-and-claude using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image: "https://replicate.delivery/pbxt/NL804xhxMJdgW3C2ZR14gg8U01MhTMYVtpVCr8PT9NkvMwqZ/image.png",
instruction: "make it MORE",
run_vanilla_kontext: false,
system_prompt: "exaggerated"
};
const output = await replicate.run("fofr/kontext-and-claude", { input });
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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_BWZ**********************************
This is your API token. Keep it to yourself.
import replicate
Run fofr/kontext-and-claude using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/kontext-and-claude",
input={
"image": "https://replicate.delivery/pbxt/NL804xhxMJdgW3C2ZR14gg8U01MhTMYVtpVCr8PT9NkvMwqZ/image.png",
"instruction": "make it MORE",
"run_vanilla_kontext": False,
"system_prompt": "exaggerated"
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].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_BWZ**********************************
This is your API token. Keep it to yourself.
Run fofr/kontext-and-claude 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": {
"image": "https://replicate.delivery/pbxt/NL804xhxMJdgW3C2ZR14gg8U01MhTMYVtpVCr8PT9NkvMwqZ/image.png",
"instruction": "make it MORE",
"run_vanilla_kontext": false,
"system_prompt": "exaggerated"
}
}' \
https://api.replicate.com/v1/models/fofr/kontext-and-claude/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "13s991jvcsrmc0cqz80bxhhybr",
"model": "fofr/kontext-and-claude",
"version": "hidden",
"input": {
"image": "https://replicate.delivery/pbxt/NL804xhxMJdgW3C2ZR14gg8U01MhTMYVtpVCr8PT9NkvMwqZ/image.png",
"instruction": "make it MORE",
"run_vanilla_kontext": false,
"system_prompt": "exaggerated"
},
"logs": "Keep the woman and urban street setting unchanged. Transform her beige cardigan into an enormously oversized, dramatically billowing statement coat that extends far beyond her frame with exaggerated proportions and voluminous sleeves. Add layers of chunky jewelry, bold accessories, and amplify her hair volume to create maximum dramatic impact and presence.",
"output": [
"https://replicate.delivery/xezq/12KdIpRMyDJ6NRQTX7jfehMeGlJebfPXAv1BTwEtfdrTDZ7PF/tmp51oemw6s.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-11T15:00:16.87Z",
"started_at": "2025-07-11T15:00:17.508706Z",
"completed_at": "2025-07-11T15:00:29.933795Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/13s991jvcsrmc0cqz80bxhhybr/cancel",
"children": "https://api.replicate.com/v1/predictions/13s991jvcsrmc0cqz80bxhhybr/children",
"get": "https://api.replicate.com/v1/predictions/13s991jvcsrmc0cqz80bxhhybr",
"root": "https://api.replicate.com/v1/predictions/13s991jvcsrmc0cqz80bxhhybr",
"stream": "https://stream.replicate.com/v1/files/bcwr-ag7l3xj34cfnxifk7av73bdba3fackzw72voqi5tf46g4n7vs2zq",
"web": "https://replicate.com/p/13s991jvcsrmc0cqz80bxhhybr"
},
"metrics": {
"predict_time": 12.4250892,
"total_time": 13.063795
}
}
