cjwbw
/
prompt-to-prompt
Prompt-to-prompt image editing with cross-attention control
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDbegidccecrctzel6re4khz2px4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- edited_prompt
- A painting of a lion eating a burger
- original_prompt
- A painting of a squirrel eating a burger
- prompt_edit_type
- Replacement
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "edited_prompt": "A painting of a lion eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Replacement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, edited_prompt: "A painting of a lion eating a burger", original_prompt: "A painting of a squirrel eating a burger", prompt_edit_type: "Replacement", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "edited_prompt": "A painting of a lion eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Replacement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "edited_prompt": "A painting of a lion eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Replacement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:32:31.720827Z", "created_at": "2022-10-29T23:27:55.537351Z", "data_removed": false, "error": null, "id": "begidccecrctzel6re4khz2px4", "input": { "seed": 8888, "edited_prompt": "A painting of a lion eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Replacement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 95.011877, "total_time": 276.183476 }, "output": { "original_sd": "https://replicate.delivery/pbxt/TifLlbfgWtlJwEW7PqVR0rNXKfOcUstERBnr5bcXhQpegarfB/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/eytrkNkytk1tBCf5yU8vYX9UnInSX4egAOYs76mTeegGC1WfD/out_p2p.png" }, "started_at": "2022-10-29T23:30:56.708950Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/begidccecrctzel6re4khz2px4", "cancel": "https://api.replicate.com/v1/predictions/begidccecrctzel6re4khz2px4/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDrnuaymcomjaqtit5a2em5xsnbmStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- original_prompt
- A painting of a squirrel eating a burger
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "original_prompt": "A painting of a squirrel eating a burger", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, original_prompt: "A painting of a squirrel eating a burger", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "original_prompt": "A painting of a squirrel eating a burger", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "original_prompt": "A painting of a squirrel eating a burger", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:33:25.073901Z", "created_at": "2022-10-29T23:32:54.741530Z", "data_removed": false, "error": null, "id": "rnuaymcomjaqtit5a2em5xsnbm", "input": { "seed": 8888, "original_prompt": "A painting of a squirrel eating a burger", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\nOnly original prompt provided, generation without prompt-to-prompt...", "metrics": { "predict_time": 30.294246, "total_time": 30.332371 }, "output": { "original_sd": "https://replicate.delivery/pbxt/NRURkIPGRRZUKhKJLyvaoHf51jAueHQmSjpWiUWRtprFp26PA/out.png" }, "started_at": "2022-10-29T23:32:54.779655Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/rnuaymcomjaqtit5a2em5xsnbm", "cancel": "https://api.replicate.com/v1/predictions/rnuaymcomjaqtit5a2em5xsnbm/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] Only original prompt provided, generation without prompt-to-prompt...
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDgi76zvonzndqjlpvqlspxjuk3eStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- edited_prompt
- A neoclassical painting of a squirrel eating a burger
- original_prompt
- A painting of a squirrel eating a burger
- prompt_edit_type
- Refinement
- self_replace_steps
- "0.16"
- cross_replace_steps
- "0.5"
{ "seed": 8888, "edited_prompt": "A neoclassical painting of a squirrel eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, edited_prompt: "A neoclassical painting of a squirrel eating a burger", original_prompt: "A painting of a squirrel eating a burger", prompt_edit_type: "Refinement", self_replace_steps: "0.16", cross_replace_steps: "0.5" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "edited_prompt": "A neoclassical painting of a squirrel eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "edited_prompt": "A neoclassical painting of a squirrel eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:36:59.869888Z", "created_at": "2022-10-29T23:34:08.032932Z", "data_removed": false, "error": null, "id": "gi76zvonzndqjlpvqlspxjuk3e", "input": { "seed": 8888, "edited_prompt": "A neoclassical painting of a squirrel eating a burger", "original_prompt": "A painting of a squirrel eating a burger", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 90.237335, "total_time": 171.836956 }, "output": { "original_sd": "https://replicate.delivery/pbxt/hLLZmmTxVyKSKh4C5yu5DPE2NfI2hPCrDgZeYeBmfgAuxarfB/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/8e6wPemYxks7SE1KjMxOoKGffozXrV7Y07wb0V4ZhqVyxarfB/out_p2p.png" }, "started_at": "2022-10-29T23:35:29.632553Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/gi76zvonzndqjlpvqlspxjuk3e", "cancel": "https://api.replicate.com/v1/predictions/gi76zvonzndqjlpvqlspxjuk3e/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDaffohj5nbvbavakofovcwzyg5eStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- local_edit
- bicycle | bicycle
- edited_prompt
- pink | -1
- original_prompt
- pink bear riding a bicycle
- prompt_edit_type
- Re-weight
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "local_edit": "bicycle | bicycle", "edited_prompt": "pink | -1", "original_prompt": "pink bear riding a bicycle", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, local_edit: "bicycle | bicycle", edited_prompt: "pink | -1", original_prompt: "pink bear riding a bicycle", prompt_edit_type: "Re-weight", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "local_edit": "bicycle | bicycle", "edited_prompt": "pink | -1", "original_prompt": "pink bear riding a bicycle", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "local_edit": "bicycle | bicycle", "edited_prompt": "pink | -1", "original_prompt": "pink bear riding a bicycle", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:37:42.651351Z", "created_at": "2022-10-29T23:35:25.198752Z", "data_removed": false, "error": null, "id": "affohj5nbvbavakofovcwzyg5e", "input": { "seed": 8888, "local_edit": "bicycle | bicycle", "edited_prompt": "pink | -1", "original_prompt": "pink bear riding a bicycle", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n[1]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 95.023236, "total_time": 137.452599 }, "output": { "original_sd": "https://replicate.delivery/pbxt/HxmLLxUMTFqwLBPeYUk89ECUCdpNLcn7fW9fuK6pXgaMat1fA/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/2DG7x9LaecV7GihDZBeWJ8RorZRUKT7Gyzw4WKic3cWHt26PA/out_p2p.png" }, "started_at": "2022-10-29T23:36:07.628115Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/affohj5nbvbavakofovcwzyg5e", "cancel": "https://api.replicate.com/v1/predictions/affohj5nbvbavakofovcwzyg5e/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] [1] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDzev4qsdgnbeenmnvaadx5gujzaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- edited_prompt
- smiling | 5
- original_prompt
- a smiling bunny doll
- prompt_edit_type
- Re-weight
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "edited_prompt": "smiling | 5", "original_prompt": "a smiling bunny doll", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, edited_prompt: "smiling | 5", original_prompt: "a smiling bunny doll", prompt_edit_type: "Re-weight", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "edited_prompt": "smiling | 5", "original_prompt": "a smiling bunny doll", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "edited_prompt": "smiling | 5", "original_prompt": "a smiling bunny doll", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:38:32.079818Z", "created_at": "2022-10-29T23:36:04.284970Z", "data_removed": false, "error": null, "id": "zev4qsdgnbeenmnvaadx5gujza", "input": { "seed": 8888, "edited_prompt": "smiling | 5", "original_prompt": "a smiling bunny doll", "prompt_edit_type": "Re-weight", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n[2]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 90.258443, "total_time": 147.794848 }, "output": { "original_sd": "https://replicate.delivery/pbxt/RjfeDVLXhavMWU7WiG6znfgKfgihcAAIdG7Mnh4undNg3arfB/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/d7mX5EJc0AKDNhpN7ON5OULYHnEhen00EDLXXOaadqe4t26PA/out_p2p.png" }, "started_at": "2022-10-29T23:37:01.821375Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zev4qsdgnbeenmnvaadx5gujza", "cancel": "https://api.replicate.com/v1/predictions/zev4qsdgnbeenmnvaadx5gujza/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] [2] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDusyhjmvxqndhbg5ycah6w7wy3uStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- local_edit
- soup | soup
- edited_prompt
- pea soup with croutons
- original_prompt
- soup
- prompt_edit_type
- Refinement
- self_replace_steps
- "0.16"
- cross_replace_steps
- "0.5"
{ "seed": 8888, "local_edit": "soup | soup", "edited_prompt": "pea soup with croutons", "original_prompt": "soup", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, local_edit: "soup | soup", edited_prompt: "pea soup with croutons", original_prompt: "soup", prompt_edit_type: "Refinement", self_replace_steps: "0.16", cross_replace_steps: "0.5" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "local_edit": "soup | soup", "edited_prompt": "pea soup with croutons", "original_prompt": "soup", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "local_edit": "soup | soup", "edited_prompt": "pea soup with croutons", "original_prompt": "soup", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:40:04.294381Z", "created_at": "2022-10-29T23:38:11.699818Z", "data_removed": false, "error": null, "id": "usyhjmvxqndhbg5ycah6w7wy3u", "input": { "seed": 8888, "local_edit": "soup | soup", "edited_prompt": "pea soup with croutons", "original_prompt": "soup", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 90.353428, "total_time": 112.594563 }, "output": { "original_sd": "https://replicate.delivery/pbxt/u5CzkJxAvaLYMpaeG3W39EGXwNMRIVX3rDsEMemAmqmUv26PA/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/o3DwjN6GmV7VG1aco5sxiS8AnQY3FCTuX9kGzsD18VN1rteHA/out_p2p.png" }, "started_at": "2022-10-29T23:38:33.940953Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/usyhjmvxqndhbg5ycah6w7wy3u", "cancel": "https://api.replicate.com/v1/predictions/usyhjmvxqndhbg5ycah6w7wy3u/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDo3dgwbz7pvgp5mwvyegvopbi2mStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- local_edit
- potatos | potatos
- edited_prompt
- fried potatos
- original_prompt
- potatos
- prompt_edit_type
- Refinement
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "local_edit": "potatos | potatos", "edited_prompt": "fried potatos", "original_prompt": "potatos", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, local_edit: "potatos | potatos", edited_prompt: "fried potatos", original_prompt: "potatos", prompt_edit_type: "Refinement", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "local_edit": "potatos | potatos", "edited_prompt": "fried potatos", "original_prompt": "potatos", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "local_edit": "potatos | potatos", "edited_prompt": "fried potatos", "original_prompt": "potatos", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:41:02.160888Z", "created_at": "2022-10-29T23:39:24.540327Z", "data_removed": false, "error": null, "id": "o3dgwbz7pvgp5mwvyegvopbi2m", "input": { "seed": 8888, "local_edit": "potatos | potatos", "edited_prompt": "fried potatos", "original_prompt": "potatos", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 97.585555, "total_time": 97.620561 }, "output": { "original_sd": "https://replicate.delivery/pbxt/DOH8rywNk7JUIZAk76lpJbZ3lT0YGkfMSd6yLeLiGOiOw26PA/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/8ec9DwGSHo33M6X5Arzenumv1gFzs2RZh1B0Gk3y6ONOw26PA/out_p2p.png" }, "started_at": "2022-10-29T23:39:24.575333Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/o3dgwbz7pvgp5mwvyegvopbi2m", "cancel": "https://api.replicate.com/v1/predictions/o3dgwbz7pvgp5mwvyegvopbi2m/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fIDx2xxxe2jhrhgbb4y5rfi3mxvy4StatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- edited_prompt
- a photo of a house on a mountain at winter
- original_prompt
- a photo of a house on a mountain
- prompt_edit_type
- Refinement
- self_replace_steps
- 0.4
- cross_replace_steps
- 0.8
{ "seed": 8888, "edited_prompt": "a photo of a house on a mountain at winter", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, edited_prompt: "a photo of a house on a mountain at winter", original_prompt: "a photo of a house on a mountain", prompt_edit_type: "Refinement", self_replace_steps: 0.4, cross_replace_steps: 0.8 } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "edited_prompt": "a photo of a house on a mountain at winter", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "edited_prompt": "a photo of a house on a mountain at winter", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:41:44.210107Z", "created_at": "2022-10-29T23:40:13.755410Z", "data_removed": false, "error": null, "id": "x2xxxe2jhrhgbb4y5rfi3mxvy4", "input": { "seed": 8888, "edited_prompt": "a photo of a house on a mountain at winter", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": 0.4, "cross_replace_steps": 0.8 }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 90.420758, "total_time": 90.454697 }, "output": { "original_sd": "https://replicate.delivery/pbxt/eCiDWIkEJizNEivkPltPG5Boqp8wMFBbLhdHUVisdcNcYb9HA/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/WwAk6ZLqQ7bbCNdkvxbyBk9S2Ouuwlw3XeSlguw95RocYb9HA/out_p2p.png" }, "started_at": "2022-10-29T23:40:13.789349Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/x2xxxe2jhrhgbb4y5rfi3mxvy4", "cancel": "https://api.replicate.com/v1/predictions/x2xxxe2jhrhgbb4y5rfi3mxvy4/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Prediction
cjwbw/prompt-to-prompt:77f9e56fID5khksp2wwbet5fboucenlgzuoaStatusSucceededSourceWebHardwareT4Total durationCreatedInput
- seed
- 8888
- edited_prompt
- a photo of a house on a mountain at fall
- original_prompt
- a photo of a house on a mountain
- prompt_edit_type
- Refinement
- self_replace_steps
- "0.16"
- cross_replace_steps
- "0.5"
{ "seed": 8888, "edited_prompt": "a photo of a house on a mountain at fall", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }
npm install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the clientimport Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", { input: { seed: 8888, edited_prompt: "a photo of a house on a mountain at fall", original_prompt: "a photo of a house on a mountain", prompt_edit_type: "Refinement", self_replace_steps: "0.16", cross_replace_steps: "0.5" } } ); console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the clientimport replicate
Run cjwbw/prompt-to-prompt using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "cjwbw/prompt-to-prompt:77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", input={ "seed": 8888, "edited_prompt": "a photo of a house on a mountain at fall", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run cjwbw/prompt-to-prompt 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": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191", "input": { "seed": 8888, "edited_prompt": "a photo of a house on a mountain at fall", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2022-10-29T23:42:40.441719Z", "created_at": "2022-10-29T23:40:46.951643Z", "data_removed": false, "error": null, "id": "5khksp2wwbet5fboucenlgzuoa", "input": { "seed": 8888, "edited_prompt": "a photo of a house on a mountain at fall", "original_prompt": "a photo of a house on a mountain", "prompt_edit_type": "Refinement", "self_replace_steps": "0.16", "cross_replace_steps": "0.5" }, "logs": "Using seed: 8888\n 0%| | 0/51 [00:00<?, ?it/s]\n 0%| | 0/51 [00:00<?, ?it/s]", "metrics": { "predict_time": 97.429477, "total_time": 113.490076 }, "output": { "original_sd": "https://replicate.delivery/pbxt/bqA4wbfvLrykWi7iIANTjAxS5tKwGXDwqWlFyplP1fZwx26PA/out_ori.png", "with_prompt_to_prompt": "https://replicate.delivery/pbxt/CM5wdfkIjmRsHqvy4OD5p5PExtQWfi0NNRNKPrjx2MIxx26PA/out_p2p.png" }, "started_at": "2022-10-29T23:41:03.012242Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5khksp2wwbet5fboucenlgzuoa", "cancel": "https://api.replicate.com/v1/predictions/5khksp2wwbet5fboucenlgzuoa/cancel" }, "version": "77f9e56f3c0eb7e635d0197e192980173a48f414499ed07bbc80d5807bdb6191" }
Generated inUsing seed: 8888 0%| | 0/51 [00:00<?, ?it/s] 0%| | 0/51 [00:00<?, ?it/s]
Want to make some of these yourself?
Run this model