typefile
{
"add_romantic_elements": false,
"art_style": "watercolor",
"character_image": "https://media.licdn.com/dms/image/v2/D4E03AQFg_GK21-ZchQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1697645713984?e=1760572800&v=beta&t=og9ygfY_kba4tqgMifH8CkctQiyM69ML-G4CqPWGLkI",
"character_position": "preserve_original_pose",
"character_stylization": "full_poster_style",
"grittiness": "distressed",
"landscape_type": "greek_temple",
"mood": "passionate",
"romance_genre": "historical"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_cvA**********************************
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 corywilkerson/cursed-vintage-poster using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
add_romantic_elements: false,
art_style: "watercolor",
character_image: "https://media.licdn.com/dms/image/v2/D4E03AQFg_GK21-ZchQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1697645713984?e=1760572800&v=beta&t=og9ygfY_kba4tqgMifH8CkctQiyM69ML-G4CqPWGLkI",
character_position: "preserve_original_pose",
character_stylization: "full_poster_style",
grittiness: "distressed",
landscape_type: "greek_temple",
mood: "passionate",
romance_genre: "historical"
};
const output = await replicate.run("corywilkerson/cursed-vintage-poster", { 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_cvA**********************************
This is your API token. Keep it to yourself.
import replicate
Run corywilkerson/cursed-vintage-poster using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"corywilkerson/cursed-vintage-poster",
input={
"add_romantic_elements": False,
"art_style": "watercolor",
"character_image": "https://media.licdn.com/dms/image/v2/D4E03AQFg_GK21-ZchQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1697645713984?e=1760572800&v=beta&t=og9ygfY_kba4tqgMifH8CkctQiyM69ML-G4CqPWGLkI",
"character_position": "preserve_original_pose",
"character_stylization": "full_poster_style",
"grittiness": "distressed",
"landscape_type": "greek_temple",
"mood": "passionate",
"romance_genre": "historical"
}
)
# 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_cvA**********************************
This is your API token. Keep it to yourself.
Run corywilkerson/cursed-vintage-poster 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": {
"add_romantic_elements": false,
"art_style": "watercolor",
"character_image": "https://media.licdn.com/dms/image/v2/D4E03AQFg_GK21-ZchQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1697645713984?e=1760572800&v=beta&t=og9ygfY_kba4tqgMifH8CkctQiyM69ML-G4CqPWGLkI",
"character_position": "preserve_original_pose",
"character_stylization": "full_poster_style",
"grittiness": "distressed",
"landscape_type": "greek_temple",
"mood": "passionate",
"romance_genre": "historical"
}
}' \
https://api.replicate.com/v1/models/corywilkerson/cursed-vintage-poster/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "dz4kpt7f2hrma0cs767sqhepk4",
"model": "corywilkerson/cursed-vintage-poster",
"version": "hidden",
"input": {
"add_romantic_elements": false,
"art_style": "watercolor",
"character_image": "https://media.licdn.com/dms/image/v2/D4E03AQFg_GK21-ZchQ/profile-displayphoto-shrink_800_800/profile-displayphoto-shrink_800_800/0/1697645713984?e=1760572800&v=beta&t=og9ygfY_kba4tqgMifH8CkctQiyM69ML-G4CqPWGLkI",
"character_position": "preserve_original_pose",
"character_stylization": "full_poster_style",
"grittiness": "distressed",
"landscape_type": "greek_temple",
"mood": "passionate",
"romance_genre": "historical"
},
"logs": "Creating greek_temple vintage poster with character integration...\n/app/.venv/lib/python3.13/site-packages/coglet/scope.py:36: ExperimentalFeatureWarning: current_scope is an experimental internal function. It may change or be removed without warning.\n warnings.warn(\nRomance novel cover complete: /tmp/cog-runner-tmp-3932528511/1b2e141ac0617953/tmpxk16aecl.jpeg",
"output": "https://replicate.delivery/xezq/qHLe3KewQul0foPNADDnCi4VCNUaj6bpyLNn78U13eos8pQVB/tmpxk16aecl.jpeg",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-09-11T16:15:58.228Z",
"started_at": "2025-09-11T16:15:58.846427Z",
"completed_at": "2025-09-11T16:16:11.166457Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/dz4kpt7f2hrma0cs767sqhepk4/cancel",
"children": "https://api.replicate.com/v1/predictions/dz4kpt7f2hrma0cs767sqhepk4/children",
"get": "https://api.replicate.com/v1/predictions/dz4kpt7f2hrma0cs767sqhepk4",
"root": "https://api.replicate.com/v1/predictions/dz4kpt7f2hrma0cs767sqhepk4",
"stream": "https://stream.replicate.com/v1/files/bcwr-qqdxz62spejww4yfix3wcfojpr33wgnz7fm7nfbmqrsgytxhd6ua",
"web": "https://replicate.com/p/dz4kpt7f2hrma0cs767sqhepk4"
},
"metrics": {
"predict_time": 12.320029599,
"total_time": 12.938457
}
}