typefile
{
"image": "https://replicate.delivery/pbxt/NU9lz8hEqNM83farvjCrxy9U3uUCMVrN3CKlCKil5bnjEmpF/tmphwxif66q.png"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_3UY**********************************
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 zeke/image-to-text-to-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
image: "https://replicate.delivery/pbxt/NU9lz8hEqNM83farvjCrxy9U3uUCMVrN3CKlCKil5bnjEmpF/tmphwxif66q.png"
};
const output = await replicate.run("zeke/image-to-text-to-image", { 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_3UY**********************************
This is your API token. Keep it to yourself.
import replicate
Run zeke/image-to-text-to-image using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zeke/image-to-text-to-image",
input={
"image": "https://replicate.delivery/pbxt/NU9lz8hEqNM83farvjCrxy9U3uUCMVrN3CKlCKil5bnjEmpF/tmphwxif66q.png"
}
)
# 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_3UY**********************************
This is your API token. Keep it to yourself.
Run zeke/image-to-text-to-image 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/NU9lz8hEqNM83farvjCrxy9U3uUCMVrN3CKlCKil5bnjEmpF/tmphwxif66q.png"
}
}' \
https://api.replicate.com/v1/models/zeke/image-to-text-to-image/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "00kfwkyte5rm80crfkyrykjeyc",
"model": "zeke/image-to-text-to-image",
"version": "hidden",
"input": {
"image": "https://replicate.delivery/pbxt/NU9lz8hEqNM83farvjCrxy9U3uUCMVrN3CKlCKil5bnjEmpF/tmphwxif66q.png"
},
"logs": "Analyzing image with Claude 4 Sonnet...\nGenerated prompt: **Detailed Image Analysis:**\n\nThis image shows a stylized 3D logo featuring a large letter \"M\" with \"cp\" positioned on its right side. The composition uses a retro, cartoon-like aesthetic reminiscent of 1980s-90s graphic design.\n\n**Main Subjects and Positions:**\n- A prominent pale pink/lavender 3D block letter \"M\" dominates the center\n- Orange-pink lowercase letters \"cp\" are positioned on the right side of the M\n- The letters appear to be floating or sitting on a blue surface\n\n**Colors and Lighting:**\n- The M is rendered in pale pink/lavender with purple shadowing for depth\n- The \"cp\" text is in a warm orange-pink gradient\n- Background features a two-tone split: bright yellow upper half, vibrant blue lower half\n- Even, diffused lighting creates clean shadows and dimensional effects\n\n**Background and Setting:**\n- Simple geometric background divided horizontally\n- Upper section: bright golden yellow\n- Lower section: sky blue\n- The blue section appears to represent a ground plane or surface\n\n**Artistic Style:**\n- Bold, cartoon-style 3D rendering\n- Clean vector art aesthetic\n- Retro design sensibility typical of 80s-90s branding\n- High contrast color palette\n- Smooth gradients and solid color blocks\n\n**Composition:**\n- Centered composition with the M as the focal point\n- Strong horizontal division in the background\n- The letters cast subtle shadows on the blue surface below\n\n**Recreation Prompt:**\n\"Create a retro 3D logo design featuring a large pale pink letter 'M' with orange-pink lowercase 'cp' text, set against a split background of bright yellow (top) and sky blue (bottom), rendered in clean cartoon vector style with dimensional shadows, 1980s aesthetic\"\nGenerating image with Flux Krea...",
"output": "https://replicate.delivery/xezq/b7U4Tf1sLz23NqsgIvHBZiFUftsaJN2jDdZDt19q1T1iGGIVA/out-0.webp",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-08-06T01:27:48.081Z",
"started_at": "2025-08-06T01:27:48.784639Z",
"completed_at": "2025-08-06T01:28:02.942377Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/00kfwkyte5rm80crfkyrykjeyc/cancel",
"children": "https://api.replicate.com/v1/predictions/00kfwkyte5rm80crfkyrykjeyc/children",
"get": "https://api.replicate.com/v1/predictions/00kfwkyte5rm80crfkyrykjeyc",
"root": "https://api.replicate.com/v1/predictions/00kfwkyte5rm80crfkyrykjeyc",
"stream": "https://stream.replicate.com/v1/files/bcwr-p7mlzzs4t6kvfd4dqhakmb34xoxigtkm5jm7amlkpyrrhm7xl5ba",
"web": "https://replicate.com/p/00kfwkyte5rm80crfkyrykjeyc"
},
"metrics": {
"predict_time": 14.157738,
"total_time": 14.861377
}
}
