astramlco / easycontrol-ghibli
Make images in Studio Ghibli art style
Prediction
astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2fID5p78be9thnrme0cp92hse3env8StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- seed
- 42
- width
- 1024
- height
- 640
- prompt
- Ghibli Studio style, Charming hand-drawn anime-style illustration
- zero_steps
- 1
- control_type
- Ghibli
- output_format
- png
- use_zero_init
- output_quality
- 90
{ "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MrG49FYK6CNEUu543tYO11kboFgD2HiqWyzs8nh9frBRP4Tq/replicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }
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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", { input: { seed: 42, width: 1024, height: 640, prompt: "Ghibli Studio style, Charming hand-drawn anime-style illustration", zero_steps: 1, spatial_img: "https://replicate.delivery/pbxt/MrG49FYK6CNEUu543tYO11kboFgD2HiqWyzs8nh9frBRP4Tq/replicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp", control_type: "Ghibli", output_format: "png", use_zero_init: true, output_quality: 90 } } ); // 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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", input={ "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MrG49FYK6CNEUu543tYO11kboFgD2HiqWyzs8nh9frBRP4Tq/replicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp", "control_type": "Ghibli", "output_format": "png", "use_zero_init": True, "output_quality": 90 } ) # 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 astramlco/easycontrol-ghibli 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": "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", "input": { "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MrG49FYK6CNEUu543tYO11kboFgD2HiqWyzs8nh9frBRP4Tq/replicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-04-18T11:25:13.078819Z", "created_at": "2025-04-18T11:22:59.085000Z", "data_removed": false, "error": null, "id": "5p78be9thnrme0cp92hse3env8", "input": { "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MrG49FYK6CNEUu543tYO11kboFgD2HiqWyzs8nh9frBRP4Tq/replicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }, "logs": "Using seed: 42\nLoaded spatial image from: /tmp/tmpyby92jzzreplicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp\nGenerating image with use_zero_init=True...\n<PIL.Image.Image image mode=RGB size=1360x768 at 0x70C81147B460>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:13, 1.82it/s]\n 8%|▊ | 2/25 [00:00<00:10, 2.25it/s]\n 12%|█▏ | 3/25 [00:01<00:10, 2.13it/s]\n 16%|█▌ | 4/25 [00:01<00:10, 2.08it/s]\n 20%|██ | 5/25 [00:02<00:09, 2.05it/s]\n 24%|██▍ | 6/25 [00:02<00:09, 2.04it/s]\n 28%|██▊ | 7/25 [00:03<00:08, 2.03it/s]\n 32%|███▏ | 8/25 [00:03<00:08, 2.02it/s]\n 36%|███▌ | 9/25 [00:04<00:07, 2.01it/s]\n 40%|████ | 10/25 [00:04<00:07, 2.01it/s]\n 44%|████▍ | 11/25 [00:05<00:06, 2.01it/s]\n 48%|████▊ | 12/25 [00:05<00:06, 2.00it/s]\n 52%|█████▏ | 13/25 [00:06<00:05, 2.00it/s]\n 56%|█████▌ | 14/25 [00:06<00:05, 2.00it/s]\n 60%|██████ | 15/25 [00:07<00:04, 2.00it/s]\n 64%|██████▍ | 16/25 [00:07<00:04, 2.00it/s]\n 68%|██████▊ | 17/25 [00:08<00:03, 2.00it/s]\n 72%|███████▏ | 18/25 [00:08<00:03, 2.00it/s]\n 76%|███████▌ | 19/25 [00:09<00:03, 2.00it/s]\n 80%|████████ | 20/25 [00:09<00:02, 2.00it/s]\n 84%|████████▍ | 21/25 [00:10<00:02, 2.00it/s]\n 88%|████████▊ | 22/25 [00:10<00:01, 2.00it/s]\n 92%|█████████▏| 23/25 [00:11<00:01, 1.99it/s]\n 96%|█████████▌| 24/25 [00:11<00:00, 1.99it/s]\n100%|██████████| 25/25 [00:12<00:00, 1.99it/s]\n100%|██████████| 25/25 [00:12<00:00, 2.01it/s]\nGenerated 'zeroinit' image in 13.41s\nSaved: output_seed42.png\nSaved output in 0.21s\nTotal prediction time: 13.66 seconds", "metrics": { "predict_time": 13.80636965, "total_time": 133.993819 }, "output": [ "https://replicate.delivery/xezq/s7JZmWjLR6bZFx4cMLmSOGnRyjd8rcruedQo5FlHHQpMRfjUA/output_seed42.png" ], "started_at": "2025-04-18T11:24:59.272449Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-yc6j7zr5ohiwu2nxxik7qd5qytv34ycxvqxatz3vmqf2pieqceea", "get": "https://api.replicate.com/v1/predictions/5p78be9thnrme0cp92hse3env8", "cancel": "https://api.replicate.com/v1/predictions/5p78be9thnrme0cp92hse3env8/cancel" }, "version": "9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f" }
Generated inUsing seed: 42 Loaded spatial image from: /tmp/tmpyby92jzzreplicate-prediction-rggsm01t8hrmc0cp6d6b8y672w.webp Generating image with use_zero_init=True... <PIL.Image.Image image mode=RGB size=1360x768 at 0x70C81147B460> 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:13, 1.82it/s] 8%|▊ | 2/25 [00:00<00:10, 2.25it/s] 12%|█▏ | 3/25 [00:01<00:10, 2.13it/s] 16%|█▌ | 4/25 [00:01<00:10, 2.08it/s] 20%|██ | 5/25 [00:02<00:09, 2.05it/s] 24%|██▍ | 6/25 [00:02<00:09, 2.04it/s] 28%|██▊ | 7/25 [00:03<00:08, 2.03it/s] 32%|███▏ | 8/25 [00:03<00:08, 2.02it/s] 36%|███▌ | 9/25 [00:04<00:07, 2.01it/s] 40%|████ | 10/25 [00:04<00:07, 2.01it/s] 44%|████▍ | 11/25 [00:05<00:06, 2.01it/s] 48%|████▊ | 12/25 [00:05<00:06, 2.00it/s] 52%|█████▏ | 13/25 [00:06<00:05, 2.00it/s] 56%|█████▌ | 14/25 [00:06<00:05, 2.00it/s] 60%|██████ | 15/25 [00:07<00:04, 2.00it/s] 64%|██████▍ | 16/25 [00:07<00:04, 2.00it/s] 68%|██████▊ | 17/25 [00:08<00:03, 2.00it/s] 72%|███████▏ | 18/25 [00:08<00:03, 2.00it/s] 76%|███████▌ | 19/25 [00:09<00:03, 2.00it/s] 80%|████████ | 20/25 [00:09<00:02, 2.00it/s] 84%|████████▍ | 21/25 [00:10<00:02, 2.00it/s] 88%|████████▊ | 22/25 [00:10<00:01, 2.00it/s] 92%|█████████▏| 23/25 [00:11<00:01, 1.99it/s] 96%|█████████▌| 24/25 [00:11<00:00, 1.99it/s] 100%|██████████| 25/25 [00:12<00:00, 1.99it/s] 100%|██████████| 25/25 [00:12<00:00, 2.01it/s] Generated 'zeroinit' image in 13.41s Saved: output_seed42.png Saved output in 0.21s Total prediction time: 13.66 seconds
Prediction
astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2fID0bgdvwaxxhrmc0cpbdf80eed14StatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- seed
- 42
- width
- 1024
- height
- 640
- prompt
- Ghibli Studio style, Charming hand-drawn anime-style illustration
- zero_steps
- 1
- control_type
- Ghibli
- output_format
- png
- use_zero_init
- output_quality
- 90
{ "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY6y78sAUQTHxlcgXj0QXQcErPJOxmsjamntJ9Q0MWKzJcQ/pexels-seljansalim-31559019_s.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }
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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", { input: { seed: 42, width: 1024, height: 640, prompt: "Ghibli Studio style, Charming hand-drawn anime-style illustration", zero_steps: 1, spatial_img: "https://replicate.delivery/pbxt/MsY6y78sAUQTHxlcgXj0QXQcErPJOxmsjamntJ9Q0MWKzJcQ/pexels-seljansalim-31559019_s.jpg", control_type: "Ghibli", output_format: "png", use_zero_init: true, output_quality: 90 } } ); // 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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", input={ "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY6y78sAUQTHxlcgXj0QXQcErPJOxmsjamntJ9Q0MWKzJcQ/pexels-seljansalim-31559019_s.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": True, "output_quality": 90 } ) # 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 astramlco/easycontrol-ghibli 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": "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", "input": { "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY6y78sAUQTHxlcgXj0QXQcErPJOxmsjamntJ9Q0MWKzJcQ/pexels-seljansalim-31559019_s.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-04-22T02:40:46.638268Z", "created_at": "2025-04-22T02:40:33.260000Z", "data_removed": false, "error": null, "id": "0bgdvwaxxhrmc0cpbdf80eed14", "input": { "seed": 42, "width": 1024, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY6y78sAUQTHxlcgXj0QXQcErPJOxmsjamntJ9Q0MWKzJcQ/pexels-seljansalim-31559019_s.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }, "logs": "Using seed: 42\nLoaded spatial image from: /tmp/tmpmpget7copexels-seljansalim-31559019_s.jpg\nGenerating image with use_zero_init=True...\n<PIL.Image.Image image mode=RGB size=920x613 at 0x7F1D958916C0>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:12, 1.86it/s]\n 8%|▊ | 2/25 [00:00<00:10, 2.27it/s]\n 12%|█▏ | 3/25 [00:01<00:10, 2.13it/s]\n 16%|█▌ | 4/25 [00:01<00:10, 2.07it/s]\n 20%|██ | 5/25 [00:02<00:09, 2.04it/s]\n 24%|██▍ | 6/25 [00:02<00:09, 2.02it/s]\n 28%|██▊ | 7/25 [00:03<00:08, 2.01it/s]\n 32%|███▏ | 8/25 [00:03<00:08, 2.00it/s]\n 36%|███▌ | 9/25 [00:04<00:08, 2.00it/s]\n 40%|████ | 10/25 [00:04<00:07, 1.99it/s]\n 44%|████▍ | 11/25 [00:05<00:07, 1.99it/s]\n 48%|████▊ | 12/25 [00:05<00:06, 1.99it/s]\n 52%|█████▏ | 13/25 [00:06<00:06, 1.99it/s]\n 56%|█████▌ | 14/25 [00:06<00:05, 1.99it/s]\n 60%|██████ | 15/25 [00:07<00:05, 1.99it/s]\n 64%|██████▍ | 16/25 [00:07<00:04, 1.98it/s]\n 68%|██████▊ | 17/25 [00:08<00:04, 1.98it/s]\n 72%|███████▏ | 18/25 [00:08<00:03, 1.98it/s]\n 76%|███████▌ | 19/25 [00:09<00:03, 1.98it/s]\n 80%|████████ | 20/25 [00:09<00:02, 1.98it/s]\n 84%|████████▍ | 21/25 [00:10<00:02, 1.98it/s]\n 88%|████████▊ | 22/25 [00:10<00:01, 1.98it/s]\n 92%|█████████▏| 23/25 [00:11<00:01, 1.98it/s]\n 96%|█████████▌| 24/25 [00:12<00:00, 1.98it/s]\n100%|██████████| 25/25 [00:12<00:00, 1.98it/s]\n100%|██████████| 25/25 [00:12<00:00, 2.00it/s]\nGenerated 'zeroinit' image in 13.00s\nSaved: output_seed42.png\nSaved output in 0.22s\nTotal prediction time: 13.22 seconds", "metrics": { "predict_time": 13.370451613, "total_time": 13.378268 }, "output": [ "https://replicate.delivery/xezq/sDoxhbpckoJIIprGtqGlMWBHeciIccBLABKTwXFMCVFXnlSKA/output_seed42.png" ], "started_at": "2025-04-22T02:40:33.267816Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-czstwtxerhbrve5cmhr4kynj5656mhuue5j4b2tgwmpzchod2dbq", "get": "https://api.replicate.com/v1/predictions/0bgdvwaxxhrmc0cpbdf80eed14", "cancel": "https://api.replicate.com/v1/predictions/0bgdvwaxxhrmc0cpbdf80eed14/cancel" }, "version": "9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f" }
Generated inUsing seed: 42 Loaded spatial image from: /tmp/tmpmpget7copexels-seljansalim-31559019_s.jpg Generating image with use_zero_init=True... <PIL.Image.Image image mode=RGB size=920x613 at 0x7F1D958916C0> 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:12, 1.86it/s] 8%|▊ | 2/25 [00:00<00:10, 2.27it/s] 12%|█▏ | 3/25 [00:01<00:10, 2.13it/s] 16%|█▌ | 4/25 [00:01<00:10, 2.07it/s] 20%|██ | 5/25 [00:02<00:09, 2.04it/s] 24%|██▍ | 6/25 [00:02<00:09, 2.02it/s] 28%|██▊ | 7/25 [00:03<00:08, 2.01it/s] 32%|███▏ | 8/25 [00:03<00:08, 2.00it/s] 36%|███▌ | 9/25 [00:04<00:08, 2.00it/s] 40%|████ | 10/25 [00:04<00:07, 1.99it/s] 44%|████▍ | 11/25 [00:05<00:07, 1.99it/s] 48%|████▊ | 12/25 [00:05<00:06, 1.99it/s] 52%|█████▏ | 13/25 [00:06<00:06, 1.99it/s] 56%|█████▌ | 14/25 [00:06<00:05, 1.99it/s] 60%|██████ | 15/25 [00:07<00:05, 1.99it/s] 64%|██████▍ | 16/25 [00:07<00:04, 1.98it/s] 68%|██████▊ | 17/25 [00:08<00:04, 1.98it/s] 72%|███████▏ | 18/25 [00:08<00:03, 1.98it/s] 76%|███████▌ | 19/25 [00:09<00:03, 1.98it/s] 80%|████████ | 20/25 [00:09<00:02, 1.98it/s] 84%|████████▍ | 21/25 [00:10<00:02, 1.98it/s] 88%|████████▊ | 22/25 [00:10<00:01, 1.98it/s] 92%|█████████▏| 23/25 [00:11<00:01, 1.98it/s] 96%|█████████▌| 24/25 [00:12<00:00, 1.98it/s] 100%|██████████| 25/25 [00:12<00:00, 1.98it/s] 100%|██████████| 25/25 [00:12<00:00, 2.00it/s] Generated 'zeroinit' image in 13.00s Saved: output_seed42.png Saved output in 0.22s Total prediction time: 13.22 seconds
Prediction
astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2fIDknt8j0e4ehrma0cpbdftgej8ccStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- seed
- 42
- width
- 720
- height
- 640
- prompt
- Ghibli Studio style, Charming hand-drawn anime-style illustration
- zero_steps
- 1
- control_type
- Ghibli
- output_format
- png
- use_zero_init
- output_quality
- 90
{ "seed": 42, "width": 720, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }
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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", { input: { seed: 42, width: 720, height: 640, prompt: "Ghibli Studio style, Charming hand-drawn anime-style illustration", zero_steps: 1, spatial_img: "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", control_type: "Ghibli", output_format: "png", use_zero_init: true, output_quality: 90 } } ); // 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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", input={ "seed": 42, "width": 720, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": True, "output_quality": 90 } ) # 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 astramlco/easycontrol-ghibli 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": "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", "input": { "seed": 42, "width": 720, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-04-22T02:42:15.538797Z", "created_at": "2025-04-22T02:42:05.044000Z", "data_removed": false, "error": null, "id": "knt8j0e4ehrma0cpbdftgej8cc", "input": { "seed": 42, "width": 720, "height": 640, "prompt": "Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }, "logs": "Using seed: 42\nLoaded spatial image from: /tmp/tmpq5kdhmlmsurprised_joey.jpg\nGenerating image with use_zero_init=True...\n<PIL.Image.Image image mode=RGB size=689x515 at 0x7F1D958918A0>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:10, 2.37it/s]\n 8%|▊ | 2/25 [00:00<00:07, 2.89it/s]\n 12%|█▏ | 3/25 [00:01<00:08, 2.73it/s]\n 16%|█▌ | 4/25 [00:01<00:07, 2.66it/s]\n 20%|██ | 5/25 [00:01<00:07, 2.63it/s]\n 24%|██▍ | 6/25 [00:02<00:07, 2.60it/s]\n 28%|██▊ | 7/25 [00:02<00:06, 2.59it/s]\n 32%|███▏ | 8/25 [00:03<00:06, 2.58it/s]\n 36%|███▌ | 9/25 [00:03<00:06, 2.57it/s]\n 40%|████ | 10/25 [00:03<00:05, 2.57it/s]\n 44%|████▍ | 11/25 [00:04<00:05, 2.57it/s]\n 48%|████▊ | 12/25 [00:04<00:05, 2.57it/s]\n 52%|█████▏ | 13/25 [00:05<00:04, 2.56it/s]\n 56%|█████▌ | 14/25 [00:05<00:04, 2.56it/s]\n 60%|██████ | 15/25 [00:05<00:03, 2.56it/s]\n 64%|██████▍ | 16/25 [00:06<00:03, 2.56it/s]\n 68%|██████▊ | 17/25 [00:06<00:03, 2.56it/s]\n 72%|███████▏ | 18/25 [00:06<00:02, 2.56it/s]\n 76%|███████▌ | 19/25 [00:07<00:02, 2.55it/s]\n 80%|████████ | 20/25 [00:07<00:01, 2.55it/s]\n 84%|████████▍ | 21/25 [00:08<00:01, 2.55it/s]\n 88%|████████▊ | 22/25 [00:08<00:01, 2.55it/s]\n 92%|█████████▏| 23/25 [00:08<00:00, 2.55it/s]\n 96%|█████████▌| 24/25 [00:09<00:00, 2.55it/s]\n100%|██████████| 25/25 [00:09<00:00, 2.55it/s]\n100%|██████████| 25/25 [00:09<00:00, 2.57it/s]\nGenerated 'zeroinit' image in 10.13s\nSaved: output_seed42.png\nSaved output in 0.14s\nTotal prediction time: 10.29 seconds", "metrics": { "predict_time": 10.488355568, "total_time": 10.494797 }, "output": [ "https://replicate.delivery/xezq/sgneuJFVdl3VYCEvfsNC8PRsXva6ZaH5iy43JvjV7JrHQLlUA/output_seed42.png" ], "started_at": "2025-04-22T02:42:05.050442Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-ndiefbtlbldy6d4ad6fhoy3mcibiddawvodnvodejmcqaewrsewa", "get": "https://api.replicate.com/v1/predictions/knt8j0e4ehrma0cpbdftgej8cc", "cancel": "https://api.replicate.com/v1/predictions/knt8j0e4ehrma0cpbdftgej8cc/cancel" }, "version": "9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f" }
Generated inUsing seed: 42 Loaded spatial image from: /tmp/tmpq5kdhmlmsurprised_joey.jpg Generating image with use_zero_init=True... <PIL.Image.Image image mode=RGB size=689x515 at 0x7F1D958918A0> 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:10, 2.37it/s] 8%|▊ | 2/25 [00:00<00:07, 2.89it/s] 12%|█▏ | 3/25 [00:01<00:08, 2.73it/s] 16%|█▌ | 4/25 [00:01<00:07, 2.66it/s] 20%|██ | 5/25 [00:01<00:07, 2.63it/s] 24%|██▍ | 6/25 [00:02<00:07, 2.60it/s] 28%|██▊ | 7/25 [00:02<00:06, 2.59it/s] 32%|███▏ | 8/25 [00:03<00:06, 2.58it/s] 36%|███▌ | 9/25 [00:03<00:06, 2.57it/s] 40%|████ | 10/25 [00:03<00:05, 2.57it/s] 44%|████▍ | 11/25 [00:04<00:05, 2.57it/s] 48%|████▊ | 12/25 [00:04<00:05, 2.57it/s] 52%|█████▏ | 13/25 [00:05<00:04, 2.56it/s] 56%|█████▌ | 14/25 [00:05<00:04, 2.56it/s] 60%|██████ | 15/25 [00:05<00:03, 2.56it/s] 64%|██████▍ | 16/25 [00:06<00:03, 2.56it/s] 68%|██████▊ | 17/25 [00:06<00:03, 2.56it/s] 72%|███████▏ | 18/25 [00:06<00:02, 2.56it/s] 76%|███████▌ | 19/25 [00:07<00:02, 2.55it/s] 80%|████████ | 20/25 [00:07<00:01, 2.55it/s] 84%|████████▍ | 21/25 [00:08<00:01, 2.55it/s] 88%|████████▊ | 22/25 [00:08<00:01, 2.55it/s] 92%|█████████▏| 23/25 [00:08<00:00, 2.55it/s] 96%|█████████▌| 24/25 [00:09<00:00, 2.55it/s] 100%|██████████| 25/25 [00:09<00:00, 2.55it/s] 100%|██████████| 25/25 [00:09<00:00, 2.57it/s] Generated 'zeroinit' image in 10.13s Saved: output_seed42.png Saved output in 0.14s Total prediction time: 10.29 seconds
Prediction
astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2fIDgthem1q929rme0cpc1a9frhdprStatusSucceededSourceWebHardwareL40STotal durationCreatedInput
- seed
- 42
- width
- 720
- height
- 640
- prompt
- a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration
- zero_steps
- 1
- control_type
- Ghibli
- output_format
- png
- use_zero_init
- output_quality
- 90
{ "seed": 42, "width": 720, "height": 640, "prompt": "a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }
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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", { input: { seed: 42, width: 720, height: 640, prompt: "a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration", zero_steps: 1, spatial_img: "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", control_type: "Ghibli", output_format: "png", use_zero_init: true, output_quality: 90 } } ); // 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 astramlco/easycontrol-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", input={ "seed": 42, "width": 720, "height": 640, "prompt": "a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": True, "output_quality": 90 } ) # 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 astramlco/easycontrol-ghibli 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": "astramlco/easycontrol-ghibli:9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f", "input": { "seed": 42, "width": 720, "height": 640, "prompt": "a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2025-04-23T01:49:56.827934Z", "created_at": "2025-04-23T01:48:19.602000Z", "data_removed": false, "error": null, "id": "gthem1q929rme0cpc1a9frhdpr", "input": { "seed": 42, "width": 720, "height": 640, "prompt": "a surprised man with eyes popping out, Ghibli Studio style, Charming hand-drawn anime-style illustration", "zero_steps": 1, "spatial_img": "https://replicate.delivery/pbxt/MsY8QpX54ZCNsw046bRQkdhC9ol22mcbPOLvuP7hjo69i37q/surprised_joey.jpg", "control_type": "Ghibli", "output_format": "png", "use_zero_init": true, "output_quality": 90 }, "logs": "Using seed: 42\nLoaded spatial image from: /tmp/tmpv2tfchvdsurprised_joey.jpg\nGenerating image with use_zero_init=True...\n<PIL.Image.Image image mode=RGB size=689x515 at 0x7F65CB1830D0>\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:10, 2.34it/s]\n 8%|▊ | 2/25 [00:00<00:07, 2.88it/s]\n 12%|█▏ | 3/25 [00:01<00:08, 2.73it/s]\n 16%|█▌ | 4/25 [00:01<00:07, 2.67it/s]\n 20%|██ | 5/25 [00:01<00:07, 2.64it/s]\n 24%|██▍ | 6/25 [00:02<00:07, 2.62it/s]\n 28%|██▊ | 7/25 [00:02<00:06, 2.61it/s]\n 32%|███▏ | 8/25 [00:03<00:06, 2.59it/s]\n 36%|███▌ | 9/25 [00:03<00:06, 2.59it/s]\n 40%|████ | 10/25 [00:03<00:05, 2.58it/s]\n 44%|████▍ | 11/25 [00:04<00:05, 2.58it/s]\n 48%|████▊ | 12/25 [00:04<00:05, 2.57it/s]\n 52%|█████▏ | 13/25 [00:04<00:04, 2.57it/s]\n 56%|█████▌ | 14/25 [00:05<00:04, 2.57it/s]\n 60%|██████ | 15/25 [00:05<00:03, 2.56it/s]\n 64%|██████▍ | 16/25 [00:06<00:03, 2.56it/s]\n 68%|██████▊ | 17/25 [00:06<00:03, 2.56it/s]\n 72%|███████▏ | 18/25 [00:06<00:02, 2.56it/s]\n 76%|███████▌ | 19/25 [00:07<00:02, 2.56it/s]\n 80%|████████ | 20/25 [00:07<00:01, 2.56it/s]\n 84%|████████▍ | 21/25 [00:08<00:01, 2.55it/s]\n 88%|████████▊ | 22/25 [00:08<00:01, 2.55it/s]\n 92%|█████████▏| 23/25 [00:08<00:00, 2.55it/s]\n 96%|█████████▌| 24/25 [00:09<00:00, 2.55it/s]\n100%|██████████| 25/25 [00:09<00:00, 2.55it/s]\n100%|██████████| 25/25 [00:09<00:00, 2.58it/s]\nGenerated 'zeroinit' image in 10.54s\nSaved: output_seed42.png\nSaved output in 0.14s\nTotal prediction time: 10.70 seconds", "metrics": { "predict_time": 10.77678877, "total_time": 97.225934 }, "output": [ "https://replicate.delivery/xezq/Br0Ueb1gLxzzNCYIWPles2dUeixyaTmfJq8yQodv9eOlo8rkC/output_seed42.png" ], "started_at": "2025-04-23T01:49:46.051146Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-zvbhlkff6wyjwgxv7t7kxxoo5xfrfiyqnblxrwix46d4zrelzidq", "get": "https://api.replicate.com/v1/predictions/gthem1q929rme0cpc1a9frhdpr", "cancel": "https://api.replicate.com/v1/predictions/gthem1q929rme0cpc1a9frhdpr/cancel" }, "version": "9ad8a8970c83024fbce9ea054bb62652fec08c6c12dd39eda39cd0833ad36e2f" }
Generated inUsing seed: 42 Loaded spatial image from: /tmp/tmpv2tfchvdsurprised_joey.jpg Generating image with use_zero_init=True... <PIL.Image.Image image mode=RGB size=689x515 at 0x7F65CB1830D0> 0%| | 0/25 [00:00<?, ?it/s] 4%|▍ | 1/25 [00:00<00:10, 2.34it/s] 8%|▊ | 2/25 [00:00<00:07, 2.88it/s] 12%|█▏ | 3/25 [00:01<00:08, 2.73it/s] 16%|█▌ | 4/25 [00:01<00:07, 2.67it/s] 20%|██ | 5/25 [00:01<00:07, 2.64it/s] 24%|██▍ | 6/25 [00:02<00:07, 2.62it/s] 28%|██▊ | 7/25 [00:02<00:06, 2.61it/s] 32%|███▏ | 8/25 [00:03<00:06, 2.59it/s] 36%|███▌ | 9/25 [00:03<00:06, 2.59it/s] 40%|████ | 10/25 [00:03<00:05, 2.58it/s] 44%|████▍ | 11/25 [00:04<00:05, 2.58it/s] 48%|████▊ | 12/25 [00:04<00:05, 2.57it/s] 52%|█████▏ | 13/25 [00:04<00:04, 2.57it/s] 56%|█████▌ | 14/25 [00:05<00:04, 2.57it/s] 60%|██████ | 15/25 [00:05<00:03, 2.56it/s] 64%|██████▍ | 16/25 [00:06<00:03, 2.56it/s] 68%|██████▊ | 17/25 [00:06<00:03, 2.56it/s] 72%|███████▏ | 18/25 [00:06<00:02, 2.56it/s] 76%|███████▌ | 19/25 [00:07<00:02, 2.56it/s] 80%|████████ | 20/25 [00:07<00:01, 2.56it/s] 84%|████████▍ | 21/25 [00:08<00:01, 2.55it/s] 88%|████████▊ | 22/25 [00:08<00:01, 2.55it/s] 92%|█████████▏| 23/25 [00:08<00:00, 2.55it/s] 96%|█████████▌| 24/25 [00:09<00:00, 2.55it/s] 100%|██████████| 25/25 [00:09<00:00, 2.55it/s] 100%|██████████| 25/25 [00:09<00:00, 2.58it/s] Generated 'zeroinit' image in 10.54s Saved: output_seed42.png Saved output in 0.14s Total prediction time: 10.70 seconds
Want to make some of these yourself?
Run this model