Prediction
code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024eIDx7bfikdbzgk3zy4h2oyhcx34m4StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- In the style of TOK, a photo of a cat in the river high quality, well-detailed
- refine
- no_refiner
- scheduler
- KarrasDPM
- lora_scale
- 0.6
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat in the river high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", { input: { width: 1024, height: 1024, prompt: "In the style of TOK, a photo of a cat in the river high quality, well-detailed", refine: "no_refiner", scheduler: "KarrasDPM", lora_scale: 0.6, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", prompt_strength: 0.8, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", input={ "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat in the river high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } ) # 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.
Run code-and-cakes/sdxl-yuki 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": "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat in the river high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="In the style of TOK, a photo of a cat in the river high quality, well-detailed"' \ -i 'refine="no_refiner"' \ -i 'scheduler="KarrasDPM"' \ -i 'lora_scale=0.6' \ -i 'num_outputs=1' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=true' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=50'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat in the river high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-09-13T17:36:29.907671Z", "created_at": "2023-09-13T17:36:13.272135Z", "data_removed": false, "error": null, "id": "x7bfikdbzgk3zy4h2oyhcx34m4", "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat in the river high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 15.591793, "total_time": 16.635536 }, "output": [ "https://pbxt.replicate.delivery/SdcIRdIGegQXS6bIV2WUafXYYJKwpeJepOxHg6ekZmjpjSfYE/out-0.png" ], "started_at": "2023-09-13T17:36:14.315878Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/x7bfikdbzgk3zy4h2oyhcx34m4", "cancel": "https://api.replicate.com/v1/predictions/x7bfikdbzgk3zy4h2oyhcx34m4/cancel" }, "version": "27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e" }
Prediction
code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024eIDfkbvmdlbbbwku6cysra3erhhgeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 1024
- prompt
- In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed
- refine
- no_refiner
- scheduler
- KarrasDPM
- lora_scale
- 0.6
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", { input: { width: 1024, height: 1024, prompt: "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", refine: "no_refiner", scheduler: "KarrasDPM", lora_scale: 0.6, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", prompt_strength: 0.8, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", input={ "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } ) # 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.
Run code-and-cakes/sdxl-yuki 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": "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e \ -i 'width=1024' \ -i 'height=1024' \ -i 'prompt="In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed"' \ -i 'refine="no_refiner"' \ -i 'scheduler="KarrasDPM"' \ -i 'lora_scale=0.6' \ -i 'num_outputs=1' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=true' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=50'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-09-13T17:38:50.620282Z", "created_at": "2023-09-13T17:38:35.398712Z", "data_removed": false, "error": null, "id": "fkbvmdlbbbwku6cysra3erhhge", "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, a photo of a cat as a Jedi from Star Wars, high quality, well-detailed", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 14.606154, "total_time": 15.22157 }, "output": [ "https://pbxt.replicate.delivery/WnN6q7PgTT44FhgRGt7RWyeQcsSgDfZ9TcJCASVjgzRqW6jRA/out-0.png" ], "started_at": "2023-09-13T17:38:36.014128Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fkbvmdlbbbwku6cysra3erhhge", "cancel": "https://api.replicate.com/v1/predictions/fkbvmdlbbbwku6cysra3erhhge/cancel" }, "version": "27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e" }
Prediction
code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024eIDuzrdjtlbncdi5ax55m5sfweurmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- null
- width
- 1024
- height
- 1024
- prompt
- In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style
- refine
- no_refiner
- scheduler
- KarrasDPM
- lora_scale
- 0.6
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "seed": null, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", { input: { width: 1024, height: 1024, prompt: "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", refine: "no_refiner", scheduler: "KarrasDPM", lora_scale: 0.6, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", prompt_strength: 0.8, num_inference_steps: 50 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", input={ "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } ) # 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.
Run code-and-cakes/sdxl-yuki 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": "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e \ -i 'width=1024' \ -i 'height=1024' \ -i $'prompt="In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style"' \ -i 'refine="no_refiner"' \ -i 'scheduler="KarrasDPM"' \ -i 'lora_scale=0.6' \ -i 'num_outputs=1' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=true' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=50'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-09-22T12:39:31.529034Z", "created_at": "2023-09-22T12:39:14.636502Z", "data_removed": false, "error": null, "id": "uzrdjtlbncdi5ax55m5sfweurm", "input": { "seed": null, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "no_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, cartoon, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": null, "metrics": { "predict_time": 16.470427, "total_time": 16.892532 }, "output": [ "https://pbxt.replicate.delivery/WpGIR0kfwT0FO6P2qStGdz99teSlkI3kzx9qFPkTloLD0zmRA/out-0.png" ], "started_at": "2023-09-22T12:39:15.058607Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/uzrdjtlbncdi5ax55m5sfweurm", "cancel": "https://api.replicate.com/v1/predictions/uzrdjtlbncdi5ax55m5sfweurm/cancel" }, "version": "27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e" }
Prediction
code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024eIDcucjfp3br2fe3yz6oep2csappiStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 11111111110
- width
- 1024
- height
- 1024
- prompt
- In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style
- refine
- base_image_refiner
- scheduler
- KarrasDPM
- lora_scale
- 0.6
- num_outputs
- 1
- refine_steps
- 1000
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))
- prompt_strength
- 0.8
- num_inference_steps
- 100
{ "seed": 11111111110, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "base_image_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": 1000, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 100 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", { input: { seed: 11111111110, width: 1024, height: 1024, prompt: "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", refine: "base_image_refiner", scheduler: "KarrasDPM", lora_scale: 0.6, num_outputs: 1, refine_steps: 1000, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", prompt_strength: 0.8, num_inference_steps: 100 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run code-and-cakes/sdxl-yuki using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", input={ "seed": 11111111110, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "base_image_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": 1000, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 100 } ) # 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.
Run code-and-cakes/sdxl-yuki 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": "code-and-cakes/sdxl-yuki:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e", "input": { "seed": 11111111110, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style", "refine": "base_image_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": 1000, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 100 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
You can run this model locally using Cog. First, install Cog:brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e \ -i 'seed=11111111110' \ -i 'width=1024' \ -i 'height=1024' \ -i $'prompt="In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style"' \ -i 'refine="base_image_refiner"' \ -i 'scheduler="KarrasDPM"' \ -i 'lora_scale=0.6' \ -i 'num_outputs=1' \ -i 'refine_steps=1000' \ -i 'guidance_scale=7.5' \ -i 'apply_watermark=true' \ -i 'high_noise_frac=0.8' \ -i 'negative_prompt="Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))"' \ -i 'prompt_strength=0.8' \ -i 'num_inference_steps=100'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/code-and-cakes/sdxl-yuki@sha256:27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 11111111110, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800\'s war ship near a polynesian island, with a stunning sunset, 1800\'s european painting style", "refine": "base_image_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": 1000, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 100 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Output
{ "completed_at": "2023-09-22T12:50:00.570483Z", "created_at": "2023-09-22T12:48:21.060426Z", "data_removed": false, "error": null, "id": "cucjfp3br2fe3yz6oep2csappi", "input": { "seed": 11111111110, "width": 1024, "height": 1024, "prompt": "In the style of TOK, my cat dressed in full french admiral uniform on the deck of a 1800's war ship near a polynesian island, with a stunning sunset, 1800's european painting style", "refine": "base_image_refiner", "scheduler": "KarrasDPM", "lora_scale": 0.6, "num_outputs": 1, "refine_steps": 1000, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "Deformed eyes, wrinkled, wrinkles, old, ((disfigured)), ((bad art)), ((deformed)), ((extra limbs)), ((duplicated)), ((morbid)), ((mutilated)), out of frame, extra fingers, mutated hands, poorly drawn eyes, ((poorly drawn hands)), ((poorly drawn face)), ((extra legs))), (fused fingers), (too many fingers), ((long neck)), tiling, poorly drawn, mutated, cross-eye, canvas frame, frame, 3d, weird colors, blurry, ((old)), ((ugly)), ((child))", "prompt_strength": 0.8, "num_inference_steps": 100 }, "logs": null, "metrics": { "predict_time": 98.644602, "total_time": 99.510057 }, "output": [ "https://pbxt.replicate.delivery/Zr5uGrqWNOoyPl5tLRqgeGCoky9r5Nz6kf01ldIo1xY49zmRA/out-0.png" ], "started_at": "2023-09-22T12:48:21.925881Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/cucjfp3br2fe3yz6oep2csappi", "cancel": "https://api.replicate.com/v1/predictions/cucjfp3br2fe3yz6oep2csappi/cancel" }, "version": "27e0f8cedba1e5fdc423f0e8a4d207b10c8b987bf81b578f1998e528e06c024e" }
Want to make some of these yourself?
Run this model