batmanscode / dojo-ninja-flux
Flux fine tuned on Dojo's ninja mascot. Use "DOJONINJA" in your prompt to trigger the model.
- Public
- 30 runs
-
H100
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDar7c17y8tdrm00cjv6vvysk9z0StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- DOJONINJA drinking coffee
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "DOJONINJA drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "DOJONINJA drinking coffee", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "DOJONINJA drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "DOJONINJA drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-29T19:19:26.294925Z", "created_at": "2024-10-29T19:19:13.363000Z", "data_removed": false, "error": null, "id": "ar7c17y8tdrm00cjv6vvysk9z0", "input": { "model": "dev", "prompt": "DOJONINJA drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 26758\nPrompt: DOJONINJA drinking coffee\n[!] txt2img mode\nUsing dev model\nfree=8284857999360\nDownloading weights\n2024-10-29T19:19:13Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwzgwjcar/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-29T19:19:15Z | INFO | [ Complete ] dest=/tmp/tmpwzgwjcar/weights size=\"172 MB\" total_elapsed=1.725s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.75s\nLoaded LoRAs in 2.51s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.21it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.05it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.92it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.88it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.88it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 12.405132425, "total_time": 12.931925 }, "output": [ "https://replicate.delivery/yhqm/NjH6IMFlnba1BhrNM614Q1tutkeqzJ5kykNhHWaQwRFfcurTA/out-0.jpg" ], "started_at": "2024-10-29T19:19:13.889793Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-gt274cqiis3tyionllmwnbide6pbjarhfqmpcixtwn7kjuav4iia", "get": "https://api.replicate.com/v1/predictions/ar7c17y8tdrm00cjv6vvysk9z0", "cancel": "https://api.replicate.com/v1/predictions/ar7c17y8tdrm00cjv6vvysk9z0/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 26758 Prompt: DOJONINJA drinking coffee [!] txt2img mode Using dev model free=8284857999360 Downloading weights 2024-10-29T19:19:13Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpwzgwjcar/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-29T19:19:15Z | INFO | [ Complete ] dest=/tmp/tmpwzgwjcar/weights size="172 MB" total_elapsed=1.725s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.75s Loaded LoRAs in 2.51s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.21it/s] 11%|█ | 3/28 [00:00<00:08, 3.05it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.92it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s] 50%|█████ | 14/28 [00:04<00:04, 2.88it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s] 61%|██████ | 17/28 [00:05<00:03, 2.88it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.89it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDb8zgs8arr1rm60cjv6x9wrqs9wStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- DOJONINJA blacked out face with glowing eyes drinking coffee
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "DOJONINJA blacked out face with glowing eyes drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "DOJONINJA blacked out face with glowing eyes drinking coffee", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "DOJONINJA blacked out face with glowing eyes drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "DOJONINJA blacked out face with glowing eyes drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-29T19:22:15.678494Z", "created_at": "2024-10-29T19:22:01.280000Z", "data_removed": false, "error": null, "id": "b8zgs8arr1rm60cjv6x9wrqs9w", "input": { "model": "dev", "prompt": "DOJONINJA blacked out face with glowing eyes drinking coffee", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 44370\nPrompt: DOJONINJA blacked out face with glowing eyes drinking coffee\n[!] txt2img mode\nUsing dev model\nfree=6350581907456\nDownloading weights\n2024-10-29T19:22:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp6h6ndvv3/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-29T19:22:05Z | INFO | [ Complete ] dest=/tmp/tmp6h6ndvv3/weights size=\"172 MB\" total_elapsed=3.282s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 3.38s\nLoaded LoRAs in 4.13s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.21it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.05it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.88it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.88it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]", "metrics": { "predict_time": 14.056578991, "total_time": 14.398494 }, "output": [ "https://replicate.delivery/yhqm/kHYldRNofPXwKyo8CM4X4r91uXVAlih374lWd1aKVG2zP31JA/out-0.jpg" ], "started_at": "2024-10-29T19:22:01.621915Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-mbamlguxajsqoxzdhbg2ort55dgc2zzpefipwziduim45s3oosea", "get": "https://api.replicate.com/v1/predictions/b8zgs8arr1rm60cjv6x9wrqs9w", "cancel": "https://api.replicate.com/v1/predictions/b8zgs8arr1rm60cjv6x9wrqs9w/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 44370 Prompt: DOJONINJA blacked out face with glowing eyes drinking coffee [!] txt2img mode Using dev model free=6350581907456 Downloading weights 2024-10-29T19:22:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp6h6ndvv3/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-29T19:22:05Z | INFO | [ Complete ] dest=/tmp/tmp6h6ndvv3/weights size="172 MB" total_elapsed=3.282s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 3.38s Loaded LoRAs in 4.13s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.21it/s] 11%|█ | 3/28 [00:00<00:08, 3.05it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.97it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.94it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.91it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.90it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.89it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.89it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.88it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.88it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.88it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.88it/s] 50%|█████ | 14/28 [00:04<00:04, 2.88it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.88it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s] 61%|██████ | 17/28 [00:05<00:03, 2.88it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDs24x4thbyxrm60cjv6ybw5ha6rStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-29T19:24:13.460875Z", "created_at": "2024-10-29T19:24:00.887000Z", "data_removed": false, "error": null, "id": "s24x4thbyxrm60cjv6ybw5ha6r", "input": { "model": "dev", "prompt": "smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 38827\nPrompt: smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree\n[!] txt2img mode\nUsing dev model\nfree=6697141878784\nDownloading weights\n2024-10-29T19:24:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpbbowmaq_/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-29T19:24:02Z | INFO | [ Complete ] dest=/tmp/tmpbbowmaq_/weights size=\"172 MB\" total_elapsed=1.454s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.48s\nLoaded LoRAs in 2.23s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.22it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.89it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.89it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 12.128516239, "total_time": 12.573875 }, "output": [ "https://replicate.delivery/yhqm/Hm9G9WKrZLYrMFX33xefT5ke3pDiyfxfu4YFujc48SMrL0ddC/out-0.jpg" ], "started_at": "2024-10-29T19:24:01.332359Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-msdmjzdthf5abopdm2f2dsbnfisp443exrgw557zztnok2omebpa", "get": "https://api.replicate.com/v1/predictions/s24x4thbyxrm60cjv6ybw5ha6r", "cancel": "https://api.replicate.com/v1/predictions/s24x4thbyxrm60cjv6ybw5ha6r/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 38827 Prompt: smol DOJONINJA black out face with glowing eyes peeping from behind a christmas tree [!] txt2img mode Using dev model free=6697141878784 Downloading weights 2024-10-29T19:24:01Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpbbowmaq_/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-29T19:24:02Z | INFO | [ Complete ] dest=/tmp/tmpbbowmaq_/weights size="172 MB" total_elapsed=1.454s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.48s Loaded LoRAs in 2.23s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.22it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.89it/s] 61%|██████ | 17/28 [00:05<00:03, 2.89it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.89it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.89it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.89it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.89it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.89it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9ID5sg4502qdnrm40cjv6yvyjm91rStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-29T19:25:30.556336Z", "created_at": "2024-10-29T19:25:17.549000Z", "data_removed": false, "error": null, "id": "5sg4502qdnrm40cjv6yvyjm91r", "input": { "model": "dev", "prompt": "smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 23280\nPrompt: smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree\n[!] txt2img mode\nUsing dev model\nfree=8281329614848\nDownloading weights\n2024-10-29T19:25:18Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0x72v3q6/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-29T19:25:20Z | INFO | [ Complete ] dest=/tmp/tmp0x72v3q6/weights size=\"172 MB\" total_elapsed=1.534s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.56s\nLoaded LoRAs in 2.29s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.89it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.23it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.06it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.96it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.92it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.92it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.91it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.91it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.90it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.90it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.90it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.90it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.90it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.90it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.90it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.90it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.90it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.90it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.90it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.90it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.90it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.90it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.90it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.90it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.90it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.92it/s]", "metrics": { "predict_time": 12.138664432, "total_time": 13.007336 }, "output": [ "https://replicate.delivery/yhqm/9j79pdXiISpxLpZbQ4SVbruTqoXGPSoqeCWEt9mRKOCVR31JA/out-0.jpg" ], "started_at": "2024-10-29T19:25:18.417672Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-zaul74s5t3wagb4i2dgw5jih5fguaj2zmocnjodvnn675obsshiq", "get": "https://api.replicate.com/v1/predictions/5sg4502qdnrm40cjv6yvyjm91r", "cancel": "https://api.replicate.com/v1/predictions/5sg4502qdnrm40cjv6yvyjm91r/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 23280 Prompt: smol cute DOJONINJA black out face with glowing eyes peeping from behind a christmas tree [!] txt2img mode Using dev model free=8281329614848 Downloading weights 2024-10-29T19:25:18Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp0x72v3q6/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-29T19:25:20Z | INFO | [ Complete ] dest=/tmp/tmp0x72v3q6/weights size="172 MB" total_elapsed=1.534s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.56s Loaded LoRAs in 2.29s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.89it/s] 7%|▋ | 2/28 [00:00<00:08, 3.23it/s] 11%|█ | 3/28 [00:00<00:08, 3.06it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.99it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.96it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.92it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.92it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.91it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.91it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.90it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.90it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.90it/s] 50%|█████ | 14/28 [00:04<00:04, 2.90it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.90it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.90it/s] 61%|██████ | 17/28 [00:05<00:03, 2.90it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.90it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.90it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.90it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.90it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.90it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.90it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.90it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.90it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.90it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.90it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s] 100%|██████████| 28/28 [00:09<00:00, 2.92it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDwn0cae8es5rm40cjv828xk4z84StatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he\'s smiling with the eyes. christmas and spooky vibe", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-29T20:42:44.627326Z", "created_at": "2024-10-29T20:42:32.009000Z", "data_removed": false, "error": null, "id": "wn0cae8es5rm40cjv828xk4z84", "input": { "model": "dev", "prompt": "small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 44284\nPrompt: small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe\n[!] txt2img mode\nUsing dev model\nfree=8977750351872\nDownloading weights\n2024-10-29T20:42:32Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpyx4c6mwo/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-29T20:42:34Z | INFO | [ Complete ] dest=/tmp/tmpyx4c6mwo/weights size=\"172 MB\" total_elapsed=1.985s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 2.01s\nLoaded LoRAs in 2.72s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.90it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.23it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.07it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 3.00it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.96it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.94it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.93it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.92it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.91it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.91it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.90it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.90it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.90it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.90it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.90it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.90it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.90it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.90it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.90it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.90it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.90it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.90it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.90it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.90it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.90it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.90it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.89it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.92it/s]", "metrics": { "predict_time": 12.573680188, "total_time": 12.618326 }, "output": [ "https://replicate.delivery/yhqm/jL0MKbmXeP0fDU7eTnUt0fDi0yjXeI71zf78tPdDY5UBx676E/out-0.jpg" ], "started_at": "2024-10-29T20:42:32.053645Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-crfhb434nj6smeumpy4uoap72eh2ko74avwo3syoekvuvvlchn7a", "get": "https://api.replicate.com/v1/predictions/wn0cae8es5rm40cjv828xk4z84", "cancel": "https://api.replicate.com/v1/predictions/wn0cae8es5rm40cjv828xk4z84/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 44284 Prompt: small cute DOJONINJA blacked out face glowing eyes with covered nose and mouth (like a real ninja) but can tell the happy emotion because he's smiling with the eyes. christmas and spooky vibe [!] txt2img mode Using dev model free=8977750351872 Downloading weights 2024-10-29T20:42:32Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpyx4c6mwo/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-29T20:42:34Z | INFO | [ Complete ] dest=/tmp/tmpyx4c6mwo/weights size="172 MB" total_elapsed=1.985s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 2.01s Loaded LoRAs in 2.72s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.90it/s] 7%|▋ | 2/28 [00:00<00:08, 3.23it/s] 11%|█ | 3/28 [00:00<00:08, 3.07it/s] 14%|█▍ | 4/28 [00:01<00:08, 3.00it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.96it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.94it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.93it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.92it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.91it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.91it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.90it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.90it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.90it/s] 50%|█████ | 14/28 [00:04<00:04, 2.90it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.90it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.90it/s] 61%|██████ | 17/28 [00:05<00:03, 2.90it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.90it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.90it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.90it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.90it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.90it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.90it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.90it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.90it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.90it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.89it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s] 100%|██████████| 28/28 [00:09<00:00, 2.92it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9ID9ynvn7kkpxrm60cjvx1twbdmpmStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is "NUMBER GO UP" Pixel art
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 3:2
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\n\nPixel art", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "3:2", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\n\nPixel art", lora_scale: 1, num_outputs: 1, aspect_ratio: "3:2", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\n\nPixel art", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "3:2", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \\"NUMBER GO UP\\"\\n\\nPixel art", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "3:2", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-30T21:10:04.808965Z", "created_at": "2024-10-30T21:09:52.695000Z", "data_removed": false, "error": null, "id": "9ynvn7kkpxrm60cjvx1twbdmpm", "input": { "model": "dev", "prompt": "DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\n\nPixel art", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "3:2", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 51728\nPrompt: DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\nPixel art\n[!] txt2img mode\nUsing dev model\nfree=6840547651584\nDownloading weights\n2024-10-30T21:09:52Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpv467byo6/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-30T21:09:54Z | INFO | [ Complete ] dest=/tmp/tmpv467byo6/weights size=\"172 MB\" total_elapsed=1.694s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.72s\nLoaded LoRAs in 2.46s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.96it/s]\n 7%|▋ | 2/28 [00:00<00:07, 3.30it/s]\n 11%|█ | 3/28 [00:00<00:07, 3.14it/s]\n 14%|█▍ | 4/28 [00:01<00:07, 3.07it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 3.03it/s]\n 21%|██▏ | 6/28 [00:01<00:07, 3.01it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.99it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.98it/s]\n 32%|███▏ | 9/28 [00:02<00:06, 2.97it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.97it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.97it/s]\n 43%|████▎ | 12/28 [00:03<00:05, 2.97it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.96it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.96it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.96it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.96it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.96it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.96it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.96it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.96it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.96it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.96it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.96it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.96it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.96it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.96it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.96it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.96it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.98it/s]", "metrics": { "predict_time": 12.093113598, "total_time": 12.113965 }, "output": [ "https://replicate.delivery/yhqm/0knBeUiesDrZqUTCWamDLevaIYpUOp39If7qAUnAxlrxqUwOB/out-0.jpg" ], "started_at": "2024-10-30T21:09:52.715851Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-7spkoi6z2mhybwoezhzzufx3ftnue3a5kckypdsnsmxswzvm3qsq", "get": "https://api.replicate.com/v1/predictions/9ynvn7kkpxrm60cjvx1twbdmpm", "cancel": "https://api.replicate.com/v1/predictions/9ynvn7kkpxrm60cjvx1twbdmpm/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 51728 Prompt: DOJONINJA ninja blacked out face glowing eyes in a suit in a board room showing/presenting a line chart which is going up the title of the chart is "NUMBER GO UP" Pixel art [!] txt2img mode Using dev model free=6840547651584 Downloading weights 2024-10-30T21:09:52Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpv467byo6/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-30T21:09:54Z | INFO | [ Complete ] dest=/tmp/tmpv467byo6/weights size="172 MB" total_elapsed=1.694s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.72s Loaded LoRAs in 2.46s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.96it/s] 7%|▋ | 2/28 [00:00<00:07, 3.30it/s] 11%|█ | 3/28 [00:00<00:07, 3.14it/s] 14%|█▍ | 4/28 [00:01<00:07, 3.07it/s] 18%|█▊ | 5/28 [00:01<00:07, 3.03it/s] 21%|██▏ | 6/28 [00:01<00:07, 3.01it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.99it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.98it/s] 32%|███▏ | 9/28 [00:02<00:06, 2.97it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.97it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.97it/s] 43%|████▎ | 12/28 [00:03<00:05, 2.97it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.96it/s] 50%|█████ | 14/28 [00:04<00:04, 2.96it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.96it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.96it/s] 61%|██████ | 17/28 [00:05<00:03, 2.96it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.96it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.96it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.96it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.96it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.96it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.96it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.96it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.96it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.96it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.96it/s] 100%|██████████| 28/28 [00:09<00:00, 2.96it/s] 100%|██████████| 28/28 [00:09<00:00, 2.98it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDpfprwzcpx1rm60cjvx0a9mgmgwStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is "NUMBER GO UP"
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 1:1
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 28
{ "model": "dev", "prompt": "DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"", lora_scale: 1, num_outputs: 1, aspect_ratio: "1:1", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 28 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \\"NUMBER GO UP\\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-30T21:07:00.544698Z", "created_at": "2024-10-30T21:06:45.096000Z", "data_removed": false, "error": null, "id": "pfprwzcpx1rm60cjvx0a9mgmgw", "input": { "model": "dev", "prompt": "DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 28 }, "logs": "Using seed: 45616\nPrompt: DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is \"NUMBER GO UP\"\n[!] txt2img mode\nUsing dev model\nfree=9750682652672\nDownloading weights\n2024-10-30T21:06:45Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpfsnvtapn/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-10-30T21:06:49Z | INFO | [ Complete ] dest=/tmp/tmpfsnvtapn/weights size=\"172 MB\" total_elapsed=4.744s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 4.77s\nLoaded LoRAs in 5.46s\n 0%| | 0/28 [00:00<?, ?it/s]\n 4%|▎ | 1/28 [00:00<00:09, 2.88it/s]\n 7%|▋ | 2/28 [00:00<00:08, 3.21it/s]\n 11%|█ | 3/28 [00:00<00:08, 3.05it/s]\n 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s]\n 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s]\n 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s]\n 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s]\n 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s]\n 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s]\n 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s]\n 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s]\n 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s]\n 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s]\n 50%|█████ | 14/28 [00:04<00:04, 2.89it/s]\n 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s]\n 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s]\n 61%|██████ | 17/28 [00:05<00:03, 2.88it/s]\n 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s]\n 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s]\n 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s]\n 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s]\n 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s]\n 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s]\n 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s]\n 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s]\n 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s]\n 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.88it/s]\n100%|██████████| 28/28 [00:09<00:00, 2.90it/s]", "metrics": { "predict_time": 15.358615664, "total_time": 15.448698 }, "output": [ "https://replicate.delivery/yhqm/wH0DnPCenuy2PKKjJZ98DhXpv9Ydfd0A72g0FEsTNn30HFsTA/out-0.jpg" ], "started_at": "2024-10-30T21:06:45.186083Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-zwtejttbbdq6ts3feqepp4ll6eyk3hr4r7fvwfeup7jqd6vd44gq", "get": "https://api.replicate.com/v1/predictions/pfprwzcpx1rm60cjvx0a9mgmgw", "cancel": "https://api.replicate.com/v1/predictions/pfprwzcpx1rm60cjvx0a9mgmgw/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 45616 Prompt: DOJONINJA ninja in a suit in a board room showing/presenting a line chart which is going up the title of the chart is "NUMBER GO UP" [!] txt2img mode Using dev model free=9750682652672 Downloading weights 2024-10-30T21:06:45Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpfsnvtapn/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-10-30T21:06:49Z | INFO | [ Complete ] dest=/tmp/tmpfsnvtapn/weights size="172 MB" total_elapsed=4.744s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 4.77s Loaded LoRAs in 5.46s 0%| | 0/28 [00:00<?, ?it/s] 4%|▎ | 1/28 [00:00<00:09, 2.88it/s] 7%|▋ | 2/28 [00:00<00:08, 3.21it/s] 11%|█ | 3/28 [00:00<00:08, 3.05it/s] 14%|█▍ | 4/28 [00:01<00:08, 2.98it/s] 18%|█▊ | 5/28 [00:01<00:07, 2.95it/s] 21%|██▏ | 6/28 [00:02<00:07, 2.93it/s] 25%|██▌ | 7/28 [00:02<00:07, 2.91it/s] 29%|██▊ | 8/28 [00:02<00:06, 2.90it/s] 32%|███▏ | 9/28 [00:03<00:06, 2.90it/s] 36%|███▌ | 10/28 [00:03<00:06, 2.89it/s] 39%|███▉ | 11/28 [00:03<00:05, 2.89it/s] 43%|████▎ | 12/28 [00:04<00:05, 2.89it/s] 46%|████▋ | 13/28 [00:04<00:05, 2.89it/s] 50%|█████ | 14/28 [00:04<00:04, 2.89it/s] 54%|█████▎ | 15/28 [00:05<00:04, 2.89it/s] 57%|█████▋ | 16/28 [00:05<00:04, 2.88it/s] 61%|██████ | 17/28 [00:05<00:03, 2.88it/s] 64%|██████▍ | 18/28 [00:06<00:03, 2.88it/s] 68%|██████▊ | 19/28 [00:06<00:03, 2.88it/s] 71%|███████▏ | 20/28 [00:06<00:02, 2.88it/s] 75%|███████▌ | 21/28 [00:07<00:02, 2.88it/s] 79%|███████▊ | 22/28 [00:07<00:02, 2.88it/s] 82%|████████▏ | 23/28 [00:07<00:01, 2.88it/s] 86%|████████▌ | 24/28 [00:08<00:01, 2.88it/s] 89%|████████▉ | 25/28 [00:08<00:01, 2.88it/s] 93%|█████████▎| 26/28 [00:08<00:00, 2.88it/s] 96%|█████████▋| 27/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.88it/s] 100%|██████████| 28/28 [00:09<00:00, 2.90it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9ID24rb71909nrm00cjz5ks9jgp5gStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 2:3
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 32
{ "model": "dev", "prompt": "kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion", lora_scale: 1, num_outputs: 1, aspect_ratio: "2:3", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 32 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-04T22:59:18.174388Z", "created_at": "2024-11-04T22:58:58.253000Z", "data_removed": false, "error": null, "id": "24rb71909nrm00cjz5ks9jgp5g", "input": { "model": "dev", "prompt": "kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 }, "logs": "Using seed: 2840\nPrompt: kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion\n[!] txt2img mode\nUsing dev model\nfree=6712789852160\nDownloading weights\n2024-11-04T22:59:04Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpf65mr1vk/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-11-04T22:59:06Z | INFO | [ Complete ] dest=/tmp/tmpf65mr1vk/weights size=\"172 MB\" total_elapsed=1.860s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.89s\nLoaded LoRAs in 2.58s\n 0%| | 0/32 [00:00<?, ?it/s]\n 3%|▎ | 1/32 [00:00<00:10, 2.95it/s]\n 6%|▋ | 2/32 [00:00<00:09, 3.28it/s]\n 9%|▉ | 3/32 [00:00<00:09, 3.12it/s]\n 12%|█▎ | 4/32 [00:01<00:09, 3.05it/s]\n 16%|█▌ | 5/32 [00:01<00:08, 3.01it/s]\n 19%|█▉ | 6/32 [00:01<00:08, 2.99it/s]\n 22%|██▏ | 7/32 [00:02<00:08, 2.98it/s]\n 25%|██▌ | 8/32 [00:02<00:08, 2.97it/s]\n 28%|██▊ | 9/32 [00:02<00:07, 2.96it/s]\n 31%|███▏ | 10/32 [00:03<00:07, 2.96it/s]\n 34%|███▍ | 11/32 [00:03<00:07, 2.95it/s]\n 38%|███▊ | 12/32 [00:04<00:06, 2.95it/s]\n 41%|████ | 13/32 [00:04<00:06, 2.95it/s]\n 44%|████▍ | 14/32 [00:04<00:06, 2.95it/s]\n 47%|████▋ | 15/32 [00:05<00:05, 2.95it/s]\n 50%|█████ | 16/32 [00:05<00:05, 2.95it/s]\n 53%|█████▎ | 17/32 [00:05<00:05, 2.95it/s]\n 56%|█████▋ | 18/32 [00:06<00:04, 2.95it/s]\n 59%|█████▉ | 19/32 [00:06<00:04, 2.95it/s]\n 62%|██████▎ | 20/32 [00:06<00:04, 2.95it/s]\n 66%|██████▌ | 21/32 [00:07<00:03, 2.95it/s]\n 69%|██████▉ | 22/32 [00:07<00:03, 2.95it/s]\n 72%|███████▏ | 23/32 [00:07<00:03, 2.95it/s]\n 75%|███████▌ | 24/32 [00:08<00:02, 2.95it/s]\n 78%|███████▊ | 25/32 [00:08<00:02, 2.95it/s]\n 81%|████████▏ | 26/32 [00:08<00:02, 2.95it/s]\n 84%|████████▍ | 27/32 [00:09<00:01, 2.95it/s]\n 88%|████████▊ | 28/32 [00:09<00:01, 2.95it/s]\n 91%|█████████ | 29/32 [00:09<00:01, 2.95it/s]\n 94%|█████████▍| 30/32 [00:10<00:00, 2.95it/s]\n 97%|█████████▋| 31/32 [00:10<00:00, 2.95it/s]\n100%|██████████| 32/32 [00:10<00:00, 2.95it/s]\n100%|██████████| 32/32 [00:10<00:00, 2.96it/s]", "metrics": { "predict_time": 13.62380262, "total_time": 19.921388 }, "output": [ "https://replicate.delivery/yhqm/1sxM0PPDB2ZwAlymOE0A3sl9nRfEBS8o1ZS3vuELEpKjH42JA/out-0.jpg" ], "started_at": "2024-11-04T22:59:04.550585Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-yxpdnz3n4xju5pijpuoubll5x5cq2zpmtjevbvxnvmi2mdfutxaq", "get": "https://api.replicate.com/v1/predictions/24rb71909nrm00cjz5ks9jgp5g", "cancel": "https://api.replicate.com/v1/predictions/24rb71909nrm00cjz5ks9jgp5g/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 2840 Prompt: kamala harris president as a DOJONINJA ninja cute wielding two swords illustraion [!] txt2img mode Using dev model free=6712789852160 Downloading weights 2024-11-04T22:59:04Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpf65mr1vk/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-11-04T22:59:06Z | INFO | [ Complete ] dest=/tmp/tmpf65mr1vk/weights size="172 MB" total_elapsed=1.860s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.89s Loaded LoRAs in 2.58s 0%| | 0/32 [00:00<?, ?it/s] 3%|▎ | 1/32 [00:00<00:10, 2.95it/s] 6%|▋ | 2/32 [00:00<00:09, 3.28it/s] 9%|▉ | 3/32 [00:00<00:09, 3.12it/s] 12%|█▎ | 4/32 [00:01<00:09, 3.05it/s] 16%|█▌ | 5/32 [00:01<00:08, 3.01it/s] 19%|█▉ | 6/32 [00:01<00:08, 2.99it/s] 22%|██▏ | 7/32 [00:02<00:08, 2.98it/s] 25%|██▌ | 8/32 [00:02<00:08, 2.97it/s] 28%|██▊ | 9/32 [00:02<00:07, 2.96it/s] 31%|███▏ | 10/32 [00:03<00:07, 2.96it/s] 34%|███▍ | 11/32 [00:03<00:07, 2.95it/s] 38%|███▊ | 12/32 [00:04<00:06, 2.95it/s] 41%|████ | 13/32 [00:04<00:06, 2.95it/s] 44%|████▍ | 14/32 [00:04<00:06, 2.95it/s] 47%|████▋ | 15/32 [00:05<00:05, 2.95it/s] 50%|█████ | 16/32 [00:05<00:05, 2.95it/s] 53%|█████▎ | 17/32 [00:05<00:05, 2.95it/s] 56%|█████▋ | 18/32 [00:06<00:04, 2.95it/s] 59%|█████▉ | 19/32 [00:06<00:04, 2.95it/s] 62%|██████▎ | 20/32 [00:06<00:04, 2.95it/s] 66%|██████▌ | 21/32 [00:07<00:03, 2.95it/s] 69%|██████▉ | 22/32 [00:07<00:03, 2.95it/s] 72%|███████▏ | 23/32 [00:07<00:03, 2.95it/s] 75%|███████▌ | 24/32 [00:08<00:02, 2.95it/s] 78%|███████▊ | 25/32 [00:08<00:02, 2.95it/s] 81%|████████▏ | 26/32 [00:08<00:02, 2.95it/s] 84%|████████▍ | 27/32 [00:09<00:01, 2.95it/s] 88%|████████▊ | 28/32 [00:09<00:01, 2.95it/s] 91%|█████████ | 29/32 [00:09<00:01, 2.95it/s] 94%|█████████▍| 30/32 [00:10<00:00, 2.95it/s] 97%|█████████▋| 31/32 [00:10<00:00, 2.95it/s] 100%|██████████| 32/32 [00:10<00:00, 2.95it/s] 100%|██████████| 32/32 [00:10<00:00, 2.96it/s]
Prediction
batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9IDh2y19vhctdrm60cjz5fr1h1t9mStatusSucceededSourceWebHardwareH100Total durationCreatedInput
- model
- dev
- prompt
- donald trump as a DOJONINJA ninja cute wielding two swords illustraion
- lora_scale
- 1
- num_outputs
- 1
- aspect_ratio
- 2:3
- output_format
- jpg
- guidance_scale
- 3.5
- output_quality
- 90
- prompt_strength
- 0.8
- extra_lora_scale
- 1
- num_inference_steps
- 32
{ "model": "dev", "prompt": "donald trump as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 }
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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", { input: { model: "dev", prompt: "donald trump as a DOJONINJA ninja cute wielding two swords illustraion", lora_scale: 1, num_outputs: 1, aspect_ratio: "2:3", output_format: "jpg", guidance_scale: 3.5, output_quality: 90, prompt_strength: 0.8, extra_lora_scale: 1, num_inference_steps: 32 } } ); // 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 batmanscode/dojo-ninja-flux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", input={ "model": "dev", "prompt": "donald trump as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 } ) # 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 batmanscode/dojo-ninja-flux 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": "batmanscode/dojo-ninja-flux:762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9", "input": { "model": "dev", "prompt": "donald trump as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-04T22:50:30.530234Z", "created_at": "2024-11-04T22:50:17.171000Z", "data_removed": false, "error": null, "id": "h2y19vhctdrm60cjz5fr1h1t9m", "input": { "model": "dev", "prompt": "donald trump as a DOJONINJA ninja cute wielding two swords illustraion", "lora_scale": 1, "num_outputs": 1, "aspect_ratio": "2:3", "output_format": "jpg", "guidance_scale": 3.5, "output_quality": 90, "prompt_strength": 0.8, "extra_lora_scale": 1, "num_inference_steps": 32 }, "logs": "Using seed: 48546\nPrompt: donald trump as a DOJONINJA ninja cute wielding two swords illustraion\n[!] txt2img mode\nUsing dev model\nfree=6736797679616\nDownloading weights\n2024-11-04T22:50:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpzaq2g5kz/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\n2024-11-04T22:50:18Z | INFO | [ Complete ] dest=/tmp/tmpzaq2g5kz/weights size=\"172 MB\" total_elapsed=1.735s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar\nDownloaded weights in 1.76s\nLoaded LoRAs in 2.35s\n 0%| | 0/32 [00:00<?, ?it/s]\n 3%|▎ | 1/32 [00:00<00:10, 2.97it/s]\n 6%|▋ | 2/32 [00:00<00:09, 3.31it/s]\n 9%|▉ | 3/32 [00:00<00:09, 3.14it/s]\n 12%|█▎ | 4/32 [00:01<00:09, 3.07it/s]\n 16%|█▌ | 5/32 [00:01<00:08, 3.03it/s]\n 19%|█▉ | 6/32 [00:01<00:08, 3.01it/s]\n 22%|██▏ | 7/32 [00:02<00:08, 3.00it/s]\n 25%|██▌ | 8/32 [00:02<00:08, 2.99it/s]\n 28%|██▊ | 9/32 [00:02<00:07, 2.98it/s]\n 31%|███▏ | 10/32 [00:03<00:07, 2.98it/s]\n 34%|███▍ | 11/32 [00:03<00:07, 2.98it/s]\n 38%|███▊ | 12/32 [00:03<00:06, 2.97it/s]\n 41%|████ | 13/32 [00:04<00:06, 2.97it/s]\n 44%|████▍ | 14/32 [00:04<00:06, 2.97it/s]\n 47%|████▋ | 15/32 [00:04<00:05, 2.97it/s]\n 50%|█████ | 16/32 [00:05<00:05, 2.97it/s]\n 53%|█████▎ | 17/32 [00:05<00:05, 2.97it/s]\n 56%|█████▋ | 18/32 [00:06<00:04, 2.97it/s]\n 59%|█████▉ | 19/32 [00:06<00:04, 2.97it/s]\n 62%|██████▎ | 20/32 [00:06<00:04, 2.97it/s]\n 66%|██████▌ | 21/32 [00:07<00:03, 2.97it/s]\n 69%|██████▉ | 22/32 [00:07<00:03, 2.97it/s]\n 72%|███████▏ | 23/32 [00:07<00:03, 2.97it/s]\n 75%|███████▌ | 24/32 [00:08<00:02, 2.97it/s]\n 78%|███████▊ | 25/32 [00:08<00:02, 2.97it/s]\n 81%|████████▏ | 26/32 [00:08<00:02, 2.97it/s]\n 84%|████████▍ | 27/32 [00:09<00:01, 2.97it/s]\n 88%|████████▊ | 28/32 [00:09<00:01, 2.97it/s]\n 91%|█████████ | 29/32 [00:09<00:01, 2.97it/s]\n 94%|█████████▍| 30/32 [00:10<00:00, 2.97it/s]\n 97%|█████████▋| 31/32 [00:10<00:00, 2.97it/s]\n100%|██████████| 32/32 [00:10<00:00, 2.97it/s]\n100%|██████████| 32/32 [00:10<00:00, 2.98it/s]", "metrics": { "predict_time": 13.330972151, "total_time": 13.359234 }, "output": [ "https://replicate.delivery/yhqm/UJiInKGNeIUaCis69PlLnfqp9of59hm2O58qtQqXmlRsNgbnA/out-0.jpg" ], "started_at": "2024-11-04T22:50:17.199261Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/wcdb-seidse3ymhiicuzj5mm6zamqlb3lizuiol6qiaofg6szqldtggpq", "get": "https://api.replicate.com/v1/predictions/h2y19vhctdrm60cjz5fr1h1t9m", "cancel": "https://api.replicate.com/v1/predictions/h2y19vhctdrm60cjz5fr1h1t9m/cancel" }, "version": "762e4b8db29cb1c088234c0e2423189073784490151581e6619a8eab192794c9" }
Generated inUsing seed: 48546 Prompt: donald trump as a DOJONINJA ninja cute wielding two swords illustraion [!] txt2img mode Using dev model free=6736797679616 Downloading weights 2024-11-04T22:50:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmpzaq2g5kz/weights url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar 2024-11-04T22:50:18Z | INFO | [ Complete ] dest=/tmp/tmpzaq2g5kz/weights size="172 MB" total_elapsed=1.735s url=https://replicate.delivery/yhqm/E4ZNEFgZCa6cApBqfDq33XcXdz19LNcarltA9DjsTmVvM31JA/trained_model.tar Downloaded weights in 1.76s Loaded LoRAs in 2.35s 0%| | 0/32 [00:00<?, ?it/s] 3%|▎ | 1/32 [00:00<00:10, 2.97it/s] 6%|▋ | 2/32 [00:00<00:09, 3.31it/s] 9%|▉ | 3/32 [00:00<00:09, 3.14it/s] 12%|█▎ | 4/32 [00:01<00:09, 3.07it/s] 16%|█▌ | 5/32 [00:01<00:08, 3.03it/s] 19%|█▉ | 6/32 [00:01<00:08, 3.01it/s] 22%|██▏ | 7/32 [00:02<00:08, 3.00it/s] 25%|██▌ | 8/32 [00:02<00:08, 2.99it/s] 28%|██▊ | 9/32 [00:02<00:07, 2.98it/s] 31%|███▏ | 10/32 [00:03<00:07, 2.98it/s] 34%|███▍ | 11/32 [00:03<00:07, 2.98it/s] 38%|███▊ | 12/32 [00:03<00:06, 2.97it/s] 41%|████ | 13/32 [00:04<00:06, 2.97it/s] 44%|████▍ | 14/32 [00:04<00:06, 2.97it/s] 47%|████▋ | 15/32 [00:04<00:05, 2.97it/s] 50%|█████ | 16/32 [00:05<00:05, 2.97it/s] 53%|█████▎ | 17/32 [00:05<00:05, 2.97it/s] 56%|█████▋ | 18/32 [00:06<00:04, 2.97it/s] 59%|█████▉ | 19/32 [00:06<00:04, 2.97it/s] 62%|██████▎ | 20/32 [00:06<00:04, 2.97it/s] 66%|██████▌ | 21/32 [00:07<00:03, 2.97it/s] 69%|██████▉ | 22/32 [00:07<00:03, 2.97it/s] 72%|███████▏ | 23/32 [00:07<00:03, 2.97it/s] 75%|███████▌ | 24/32 [00:08<00:02, 2.97it/s] 78%|███████▊ | 25/32 [00:08<00:02, 2.97it/s] 81%|████████▏ | 26/32 [00:08<00:02, 2.97it/s] 84%|████████▍ | 27/32 [00:09<00:01, 2.97it/s] 88%|████████▊ | 28/32 [00:09<00:01, 2.97it/s] 91%|█████████ | 29/32 [00:09<00:01, 2.97it/s] 94%|█████████▍| 30/32 [00:10<00:00, 2.97it/s] 97%|█████████▋| 31/32 [00:10<00:00, 2.97it/s] 100%|██████████| 32/32 [00:10<00:00, 2.97it/s] 100%|██████████| 32/32 [00:10<00:00, 2.98it/s]
Want to make some of these yourself?
Run this model