jbilcke / sdxl-starfield
- Public
- 270 runs
-
L40S
- SDXL fine-tune
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52ID64qnyitbdd3kxknbmvylrotnzuStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 768, "prompt": "a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:20:25.492766Z", "created_at": "2023-10-27T10:20:14.552073Z", "data_removed": false, "error": null, "id": "64qnyitbdd3kxknbmvylrotnzu", "input": { "width": 1024, "height": 768, "prompt": "a gunslinger astronaut, in a mining town, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": "Using seed: 54142\nPrompt: a gunslinger astronaut, in a mining town, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:07, 4.93it/s]\n 5%|▌ | 2/40 [00:00<00:07, 4.92it/s]\n 8%|▊ | 3/40 [00:00<00:07, 4.91it/s]\n 10%|█ | 4/40 [00:00<00:07, 4.90it/s]\n 12%|█▎ | 5/40 [00:01<00:07, 4.90it/s]\n 15%|█▌ | 6/40 [00:01<00:06, 4.90it/s]\n 18%|█▊ | 7/40 [00:01<00:06, 4.90it/s]\n 20%|██ | 8/40 [00:01<00:06, 4.90it/s]\n 22%|██▎ | 9/40 [00:01<00:06, 4.90it/s]\n 25%|██▌ | 10/40 [00:02<00:06, 4.89it/s]\n 28%|██▊ | 11/40 [00:02<00:05, 4.89it/s]\n 30%|███ | 12/40 [00:02<00:05, 4.89it/s]\n 32%|███▎ | 13/40 [00:02<00:05, 4.89it/s]\n 35%|███▌ | 14/40 [00:02<00:05, 4.89it/s]\n 38%|███▊ | 15/40 [00:03<00:05, 4.89it/s]\n 40%|████ | 16/40 [00:03<00:04, 4.88it/s]\n 42%|████▎ | 17/40 [00:03<00:04, 4.88it/s]\n 45%|████▌ | 18/40 [00:03<00:04, 4.88it/s]\n 48%|████▊ | 19/40 [00:03<00:04, 4.88it/s]\n 50%|█████ | 20/40 [00:04<00:04, 4.88it/s]\n 52%|█████▎ | 21/40 [00:04<00:03, 4.88it/s]\n 55%|█████▌ | 22/40 [00:04<00:03, 4.88it/s]\n 57%|█████▊ | 23/40 [00:04<00:03, 4.88it/s]\n 60%|██████ | 24/40 [00:04<00:03, 4.88it/s]\n 62%|██████▎ | 25/40 [00:05<00:03, 4.88it/s]\n 65%|██████▌ | 26/40 [00:05<00:02, 4.88it/s]\n 68%|██████▊ | 27/40 [00:05<00:02, 4.88it/s]\n 70%|███████ | 28/40 [00:05<00:02, 4.88it/s]\n 72%|███████▎ | 29/40 [00:05<00:02, 4.88it/s]\n 75%|███████▌ | 30/40 [00:06<00:02, 4.88it/s]\n 78%|███████▊ | 31/40 [00:06<00:01, 4.88it/s]\n 80%|████████ | 32/40 [00:06<00:01, 4.88it/s]\n 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s]\n 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s]\n 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s]\n 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s]\n 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s]\n 95%|█████████▌| 38/40 [00:07<00:00, 4.89it/s]\n 98%|█████████▊| 39/40 [00:07<00:00, 4.89it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.89it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.89it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:01, 6.28it/s]\n 20%|██ | 2/10 [00:00<00:01, 6.24it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.22it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.22it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.22it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.21it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.21it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.21it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.20it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.20it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.21it/s]", "metrics": { "predict_time": 11.034321, "total_time": 10.940693 }, "output": [ "https://pbxt.replicate.delivery/IioMHOn3FBKeZqnew6Dxnz7Y3r4iFtAeSjaPWhHnHApSHokjA/out-0.png" ], "started_at": "2023-10-27T10:20:14.458445Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/64qnyitbdd3kxknbmvylrotnzu", "cancel": "https://api.replicate.com/v1/predictions/64qnyitbdd3kxknbmvylrotnzu/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 54142 Prompt: a gunslinger astronaut, in a mining town, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:07, 4.93it/s] 5%|▌ | 2/40 [00:00<00:07, 4.92it/s] 8%|▊ | 3/40 [00:00<00:07, 4.91it/s] 10%|█ | 4/40 [00:00<00:07, 4.90it/s] 12%|█▎ | 5/40 [00:01<00:07, 4.90it/s] 15%|█▌ | 6/40 [00:01<00:06, 4.90it/s] 18%|█▊ | 7/40 [00:01<00:06, 4.90it/s] 20%|██ | 8/40 [00:01<00:06, 4.90it/s] 22%|██▎ | 9/40 [00:01<00:06, 4.90it/s] 25%|██▌ | 10/40 [00:02<00:06, 4.89it/s] 28%|██▊ | 11/40 [00:02<00:05, 4.89it/s] 30%|███ | 12/40 [00:02<00:05, 4.89it/s] 32%|███▎ | 13/40 [00:02<00:05, 4.89it/s] 35%|███▌ | 14/40 [00:02<00:05, 4.89it/s] 38%|███▊ | 15/40 [00:03<00:05, 4.89it/s] 40%|████ | 16/40 [00:03<00:04, 4.88it/s] 42%|████▎ | 17/40 [00:03<00:04, 4.88it/s] 45%|████▌ | 18/40 [00:03<00:04, 4.88it/s] 48%|████▊ | 19/40 [00:03<00:04, 4.88it/s] 50%|█████ | 20/40 [00:04<00:04, 4.88it/s] 52%|█████▎ | 21/40 [00:04<00:03, 4.88it/s] 55%|█████▌ | 22/40 [00:04<00:03, 4.88it/s] 57%|█████▊ | 23/40 [00:04<00:03, 4.88it/s] 60%|██████ | 24/40 [00:04<00:03, 4.88it/s] 62%|██████▎ | 25/40 [00:05<00:03, 4.88it/s] 65%|██████▌ | 26/40 [00:05<00:02, 4.88it/s] 68%|██████▊ | 27/40 [00:05<00:02, 4.88it/s] 70%|███████ | 28/40 [00:05<00:02, 4.88it/s] 72%|███████▎ | 29/40 [00:05<00:02, 4.88it/s] 75%|███████▌ | 30/40 [00:06<00:02, 4.88it/s] 78%|███████▊ | 31/40 [00:06<00:01, 4.88it/s] 80%|████████ | 32/40 [00:06<00:01, 4.88it/s] 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s] 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s] 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s] 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s] 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s] 95%|█████████▌| 38/40 [00:07<00:00, 4.89it/s] 98%|█████████▊| 39/40 [00:07<00:00, 4.89it/s] 100%|██████████| 40/40 [00:08<00:00, 4.89it/s] 100%|██████████| 40/40 [00:08<00:00, 4.89it/s] 0%| | 0/10 [00:00<?, ?it/s] 10%|█ | 1/10 [00:00<00:01, 6.28it/s] 20%|██ | 2/10 [00:00<00:01, 6.24it/s] 30%|███ | 3/10 [00:00<00:01, 6.22it/s] 40%|████ | 4/10 [00:00<00:00, 6.22it/s] 50%|█████ | 5/10 [00:00<00:00, 6.22it/s] 60%|██████ | 6/10 [00:00<00:00, 6.21it/s] 70%|███████ | 7/10 [00:01<00:00, 6.21it/s] 80%|████████ | 8/10 [00:01<00:00, 6.21it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.20it/s] 100%|██████████| 10/10 [00:01<00:00, 6.20it/s] 100%|██████████| 10/10 [00:01<00:00, 6.21it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52IDfkidwqlbrsb5losuneb7ehuqjmStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- mining town, alien species, forest, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 768, "prompt": "mining town, alien species, forest, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "mining town, alien species, forest, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "mining town, alien species, forest, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "mining town, alien species, forest, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:21:47.911259Z", "created_at": "2023-10-27T10:21:36.982833Z", "data_removed": false, "error": null, "id": "fkidwqlbrsb5losuneb7ehuqjm", "input": { "width": 1024, "height": 768, "prompt": "mining town, alien species, forest, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": "Using seed: 23133\nPrompt: mining town, alien species, forest, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:07, 4.95it/s]\n 5%|▌ | 2/40 [00:00<00:07, 4.94it/s]\n 8%|▊ | 3/40 [00:00<00:07, 4.93it/s]\n 10%|█ | 4/40 [00:00<00:07, 4.93it/s]\n 12%|█▎ | 5/40 [00:01<00:07, 4.92it/s]\n 15%|█▌ | 6/40 [00:01<00:06, 4.92it/s]\n 18%|█▊ | 7/40 [00:01<00:06, 4.92it/s]\n 20%|██ | 8/40 [00:01<00:06, 4.91it/s]\n 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s]\n 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s]\n 28%|██▊ | 11/40 [00:02<00:05, 4.91it/s]\n 30%|███ | 12/40 [00:02<00:05, 4.91it/s]\n 32%|███▎ | 13/40 [00:02<00:05, 4.91it/s]\n 35%|███▌ | 14/40 [00:02<00:05, 4.91it/s]\n 38%|███▊ | 15/40 [00:03<00:05, 4.90it/s]\n 40%|████ | 16/40 [00:03<00:04, 4.90it/s]\n 42%|████▎ | 17/40 [00:03<00:04, 4.90it/s]\n 45%|████▌ | 18/40 [00:03<00:04, 4.90it/s]\n 48%|████▊ | 19/40 [00:03<00:04, 4.90it/s]\n 50%|█████ | 20/40 [00:04<00:04, 4.90it/s]\n 52%|█████▎ | 21/40 [00:04<00:03, 4.90it/s]\n 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s]\n 57%|█████▊ | 23/40 [00:04<00:03, 4.90it/s]\n 60%|██████ | 24/40 [00:04<00:03, 4.90it/s]\n 62%|██████▎ | 25/40 [00:05<00:03, 4.90it/s]\n 65%|██████▌ | 26/40 [00:05<00:02, 4.90it/s]\n 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s]\n 70%|███████ | 28/40 [00:05<00:02, 4.89it/s]\n 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s]\n 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s]\n 78%|███████▊ | 31/40 [00:06<00:01, 4.88it/s]\n 80%|████████ | 32/40 [00:06<00:01, 4.88it/s]\n 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s]\n 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s]\n 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s]\n 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s]\n 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s]\n 95%|█████████▌| 38/40 [00:07<00:00, 4.85it/s]\n 98%|█████████▊| 39/40 [00:07<00:00, 4.86it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.87it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.89it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:01, 6.25it/s]\n 20%|██ | 2/10 [00:00<00:01, 6.20it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.19it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.18it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.18it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.17it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.17it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.17it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.17it/s]", "metrics": { "predict_time": 10.98968, "total_time": 10.928426 }, "output": [ "https://pbxt.replicate.delivery/2y3aonUqySLpF9vxwoCA4fef5rFggvUpASeZAyeKrCjdngSOC/out-0.png" ], "started_at": "2023-10-27T10:21:36.921579Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/fkidwqlbrsb5losuneb7ehuqjm", "cancel": "https://api.replicate.com/v1/predictions/fkidwqlbrsb5losuneb7ehuqjm/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 23133 Prompt: mining town, alien species, forest, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:07, 4.95it/s] 5%|▌ | 2/40 [00:00<00:07, 4.94it/s] 8%|▊ | 3/40 [00:00<00:07, 4.93it/s] 10%|█ | 4/40 [00:00<00:07, 4.93it/s] 12%|█▎ | 5/40 [00:01<00:07, 4.92it/s] 15%|█▌ | 6/40 [00:01<00:06, 4.92it/s] 18%|█▊ | 7/40 [00:01<00:06, 4.92it/s] 20%|██ | 8/40 [00:01<00:06, 4.91it/s] 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s] 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s] 28%|██▊ | 11/40 [00:02<00:05, 4.91it/s] 30%|███ | 12/40 [00:02<00:05, 4.91it/s] 32%|███▎ | 13/40 [00:02<00:05, 4.91it/s] 35%|███▌ | 14/40 [00:02<00:05, 4.91it/s] 38%|███▊ | 15/40 [00:03<00:05, 4.90it/s] 40%|████ | 16/40 [00:03<00:04, 4.90it/s] 42%|████▎ | 17/40 [00:03<00:04, 4.90it/s] 45%|████▌ | 18/40 [00:03<00:04, 4.90it/s] 48%|████▊ | 19/40 [00:03<00:04, 4.90it/s] 50%|█████ | 20/40 [00:04<00:04, 4.90it/s] 52%|█████▎ | 21/40 [00:04<00:03, 4.90it/s] 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s] 57%|█████▊ | 23/40 [00:04<00:03, 4.90it/s] 60%|██████ | 24/40 [00:04<00:03, 4.90it/s] 62%|██████▎ | 25/40 [00:05<00:03, 4.90it/s] 65%|██████▌ | 26/40 [00:05<00:02, 4.90it/s] 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s] 70%|███████ | 28/40 [00:05<00:02, 4.89it/s] 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s] 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s] 78%|███████▊ | 31/40 [00:06<00:01, 4.88it/s] 80%|████████ | 32/40 [00:06<00:01, 4.88it/s] 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s] 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s] 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s] 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s] 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s] 95%|█████████▌| 38/40 [00:07<00:00, 4.85it/s] 98%|█████████▊| 39/40 [00:07<00:00, 4.86it/s] 100%|██████████| 40/40 [00:08<00:00, 4.87it/s] 100%|██████████| 40/40 [00:08<00:00, 4.89it/s] 0%| | 0/10 [00:00<?, ?it/s] 10%|█ | 1/10 [00:00<00:01, 6.25it/s] 20%|██ | 2/10 [00:00<00:01, 6.20it/s] 30%|███ | 3/10 [00:00<00:01, 6.19it/s] 40%|████ | 4/10 [00:00<00:00, 6.18it/s] 50%|█████ | 5/10 [00:00<00:00, 6.18it/s] 60%|██████ | 6/10 [00:00<00:00, 6.17it/s] 70%|███████ | 7/10 [00:01<00:00, 6.17it/s] 80%|████████ | 8/10 [00:01<00:00, 6.17it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s] 100%|██████████| 10/10 [00:01<00:00, 6.16it/s] 100%|██████████| 10/10 [00:01<00:00, 6.17it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52ID6qxc2ydbrdzgfa7xi3lwxsbcpeStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- futuristic town, beautiful, modern, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "futuristic town, beautiful, modern, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:22:22.259251Z", "created_at": "2023-10-27T10:22:11.276068Z", "data_removed": false, "error": null, "id": "6qxc2ydbrdzgfa7xi3lwxsbcpe", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": "Using seed: 9203\nPrompt: futuristic town, beautiful, modern, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:07, 4.95it/s]\n 5%|▌ | 2/40 [00:00<00:07, 4.93it/s]\n 8%|▊ | 3/40 [00:00<00:07, 4.92it/s]\n 10%|█ | 4/40 [00:00<00:07, 4.92it/s]\n 12%|█▎ | 5/40 [00:01<00:07, 4.91it/s]\n 15%|█▌ | 6/40 [00:01<00:06, 4.91it/s]\n 18%|█▊ | 7/40 [00:01<00:06, 4.90it/s]\n 20%|██ | 8/40 [00:01<00:06, 4.90it/s]\n 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s]\n 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s]\n 28%|██▊ | 11/40 [00:02<00:05, 4.90it/s]\n 30%|███ | 12/40 [00:02<00:05, 4.90it/s]\n 32%|███▎ | 13/40 [00:02<00:05, 4.90it/s]\n 35%|███▌ | 14/40 [00:02<00:05, 4.90it/s]\n 38%|███▊ | 15/40 [00:03<00:05, 4.89it/s]\n 40%|████ | 16/40 [00:03<00:04, 4.89it/s]\n 42%|████▎ | 17/40 [00:03<00:04, 4.89it/s]\n 45%|████▌ | 18/40 [00:03<00:04, 4.89it/s]\n 48%|████▊ | 19/40 [00:03<00:04, 4.89it/s]\n 50%|█████ | 20/40 [00:04<00:04, 4.89it/s]\n 52%|█████▎ | 21/40 [00:04<00:03, 4.89it/s]\n 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s]\n 57%|█████▊ | 23/40 [00:04<00:03, 4.89it/s]\n 60%|██████ | 24/40 [00:04<00:03, 4.89it/s]\n 62%|██████▎ | 25/40 [00:05<00:03, 4.89it/s]\n 65%|██████▌ | 26/40 [00:05<00:02, 4.89it/s]\n 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s]\n 70%|███████ | 28/40 [00:05<00:02, 4.89it/s]\n 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s]\n 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s]\n 78%|███████▊ | 31/40 [00:06<00:01, 4.89it/s]\n 80%|████████ | 32/40 [00:06<00:01, 4.89it/s]\n 82%|████████▎ | 33/40 [00:06<00:01, 4.89it/s]\n 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s]\n 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s]\n 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s]\n 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s]\n 95%|█████████▌| 38/40 [00:07<00:00, 4.88it/s]\n 98%|█████████▊| 39/40 [00:07<00:00, 4.88it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.88it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.89it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:01, 6.23it/s]\n 20%|██ | 2/10 [00:00<00:01, 6.18it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.17it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.17it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.17it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.17it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.16it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.16it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.17it/s]", "metrics": { "predict_time": 11.043201, "total_time": 10.983183 }, "output": [ "https://pbxt.replicate.delivery/IyLxcfRYPLw0JSfyLBMqpWe6q4BFn5S9qta6ps5FZhW7KokjA/out-0.png" ], "started_at": "2023-10-27T10:22:11.216050Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6qxc2ydbrdzgfa7xi3lwxsbcpe", "cancel": "https://api.replicate.com/v1/predictions/6qxc2ydbrdzgfa7xi3lwxsbcpe/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 9203 Prompt: futuristic town, beautiful, modern, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:07, 4.95it/s] 5%|▌ | 2/40 [00:00<00:07, 4.93it/s] 8%|▊ | 3/40 [00:00<00:07, 4.92it/s] 10%|█ | 4/40 [00:00<00:07, 4.92it/s] 12%|█▎ | 5/40 [00:01<00:07, 4.91it/s] 15%|█▌ | 6/40 [00:01<00:06, 4.91it/s] 18%|█▊ | 7/40 [00:01<00:06, 4.90it/s] 20%|██ | 8/40 [00:01<00:06, 4.90it/s] 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s] 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s] 28%|██▊ | 11/40 [00:02<00:05, 4.90it/s] 30%|███ | 12/40 [00:02<00:05, 4.90it/s] 32%|███▎ | 13/40 [00:02<00:05, 4.90it/s] 35%|███▌ | 14/40 [00:02<00:05, 4.90it/s] 38%|███▊ | 15/40 [00:03<00:05, 4.89it/s] 40%|████ | 16/40 [00:03<00:04, 4.89it/s] 42%|████▎ | 17/40 [00:03<00:04, 4.89it/s] 45%|████▌ | 18/40 [00:03<00:04, 4.89it/s] 48%|████▊ | 19/40 [00:03<00:04, 4.89it/s] 50%|█████ | 20/40 [00:04<00:04, 4.89it/s] 52%|█████▎ | 21/40 [00:04<00:03, 4.89it/s] 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s] 57%|█████▊ | 23/40 [00:04<00:03, 4.89it/s] 60%|██████ | 24/40 [00:04<00:03, 4.89it/s] 62%|██████▎ | 25/40 [00:05<00:03, 4.89it/s] 65%|██████▌ | 26/40 [00:05<00:02, 4.89it/s] 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s] 70%|███████ | 28/40 [00:05<00:02, 4.89it/s] 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s] 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s] 78%|███████▊ | 31/40 [00:06<00:01, 4.89it/s] 80%|████████ | 32/40 [00:06<00:01, 4.89it/s] 82%|████████▎ | 33/40 [00:06<00:01, 4.89it/s] 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s] 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s] 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s] 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s] 95%|█████████▌| 38/40 [00:07<00:00, 4.88it/s] 98%|█████████▊| 39/40 [00:07<00:00, 4.88it/s] 100%|██████████| 40/40 [00:08<00:00, 4.88it/s] 100%|██████████| 40/40 [00:08<00:00, 4.89it/s] 0%| | 0/10 [00:00<?, ?it/s] 10%|█ | 1/10 [00:00<00:01, 6.23it/s] 20%|██ | 2/10 [00:00<00:01, 6.18it/s] 30%|███ | 3/10 [00:00<00:01, 6.17it/s] 40%|████ | 4/10 [00:00<00:00, 6.17it/s] 50%|█████ | 5/10 [00:00<00:00, 6.17it/s] 60%|██████ | 6/10 [00:00<00:00, 6.17it/s] 70%|███████ | 7/10 [00:01<00:00, 6.16it/s] 80%|████████ | 8/10 [00:01<00:00, 6.16it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s] 100%|██████████| 10/10 [00:01<00:00, 6.16it/s] 100%|██████████| 10/10 [00:01<00:00, 6.17it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52IDhswbfmtbl7aysxgmqlvc2m57uqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 50
{ "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 50 } } ); // To access the file URL: console.log(output[0].url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output[0]);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:24:04.030238Z", "created_at": "2023-10-27T10:23:53.022263Z", "data_removed": false, "error": null, "id": "hswbfmtbl7aysxgmqlvc2m57uq", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 50 }, "logs": "Using seed: 31291\nPrompt: futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/40 [00:00<?, ?it/s]\n 2%|▎ | 1/40 [00:00<00:07, 4.95it/s]\n 5%|▌ | 2/40 [00:00<00:07, 4.94it/s]\n 8%|▊ | 3/40 [00:00<00:07, 4.93it/s]\n 10%|█ | 4/40 [00:00<00:07, 4.90it/s]\n 12%|█▎ | 5/40 [00:01<00:07, 4.90it/s]\n 15%|█▌ | 6/40 [00:01<00:06, 4.91it/s]\n 18%|█▊ | 7/40 [00:01<00:06, 4.91it/s]\n 20%|██ | 8/40 [00:01<00:06, 4.91it/s]\n 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s]\n 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s]\n 28%|██▊ | 11/40 [00:02<00:05, 4.91it/s]\n 30%|███ | 12/40 [00:02<00:05, 4.91it/s]\n 32%|███▎ | 13/40 [00:02<00:05, 4.91it/s]\n 35%|███▌ | 14/40 [00:02<00:05, 4.91it/s]\n 38%|███▊ | 15/40 [00:03<00:05, 4.91it/s]\n 40%|████ | 16/40 [00:03<00:04, 4.91it/s]\n 42%|████▎ | 17/40 [00:03<00:04, 4.90it/s]\n 45%|████▌ | 18/40 [00:03<00:04, 4.90it/s]\n 48%|████▊ | 19/40 [00:03<00:04, 4.90it/s]\n 50%|█████ | 20/40 [00:04<00:04, 4.90it/s]\n 52%|█████▎ | 21/40 [00:04<00:03, 4.89it/s]\n 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s]\n 57%|█████▊ | 23/40 [00:04<00:03, 4.89it/s]\n 60%|██████ | 24/40 [00:04<00:03, 4.89it/s]\n 62%|██████▎ | 25/40 [00:05<00:03, 4.89it/s]\n 65%|██████▌ | 26/40 [00:05<00:02, 4.89it/s]\n 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s]\n 70%|███████ | 28/40 [00:05<00:02, 4.89it/s]\n 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s]\n 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s]\n 78%|███████▊ | 31/40 [00:06<00:01, 4.89it/s]\n 80%|████████ | 32/40 [00:06<00:01, 4.89it/s]\n 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s]\n 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s]\n 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s]\n 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s]\n 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s]\n 95%|█████████▌| 38/40 [00:07<00:00, 4.88it/s]\n 98%|█████████▊| 39/40 [00:07<00:00, 4.88it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.88it/s]\n100%|██████████| 40/40 [00:08<00:00, 4.89it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:01, 6.22it/s]\n 20%|██ | 2/10 [00:00<00:01, 6.19it/s]\n 30%|███ | 3/10 [00:00<00:01, 6.17it/s]\n 40%|████ | 4/10 [00:00<00:00, 6.17it/s]\n 50%|█████ | 5/10 [00:00<00:00, 6.17it/s]\n 60%|██████ | 6/10 [00:00<00:00, 6.17it/s]\n 70%|███████ | 7/10 [00:01<00:00, 6.16it/s]\n 80%|████████ | 8/10 [00:01<00:00, 6.16it/s]\n 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.17it/s]\n100%|██████████| 10/10 [00:01<00:00, 6.17it/s]", "metrics": { "predict_time": 11.062354, "total_time": 11.007975 }, "output": [ "https://pbxt.replicate.delivery/veOOeW7n0TkmDkaBXBf4vvNIedfdaegffgLkkGd0jryZDHUyRA/out-0.png" ], "started_at": "2023-10-27T10:23:52.967884Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/hswbfmtbl7aysxgmqlvc2m57uq", "cancel": "https://api.replicate.com/v1/predictions/hswbfmtbl7aysxgmqlvc2m57uq/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 31291 Prompt: futuristic town, beautiful, modern, sci-fi, pedestrians, in the style of <s0><s1> txt2img mode 0%| | 0/40 [00:00<?, ?it/s] 2%|▎ | 1/40 [00:00<00:07, 4.95it/s] 5%|▌ | 2/40 [00:00<00:07, 4.94it/s] 8%|▊ | 3/40 [00:00<00:07, 4.93it/s] 10%|█ | 4/40 [00:00<00:07, 4.90it/s] 12%|█▎ | 5/40 [00:01<00:07, 4.90it/s] 15%|█▌ | 6/40 [00:01<00:06, 4.91it/s] 18%|█▊ | 7/40 [00:01<00:06, 4.91it/s] 20%|██ | 8/40 [00:01<00:06, 4.91it/s] 22%|██▎ | 9/40 [00:01<00:06, 4.91it/s] 25%|██▌ | 10/40 [00:02<00:06, 4.91it/s] 28%|██▊ | 11/40 [00:02<00:05, 4.91it/s] 30%|███ | 12/40 [00:02<00:05, 4.91it/s] 32%|███▎ | 13/40 [00:02<00:05, 4.91it/s] 35%|███▌ | 14/40 [00:02<00:05, 4.91it/s] 38%|███▊ | 15/40 [00:03<00:05, 4.91it/s] 40%|████ | 16/40 [00:03<00:04, 4.91it/s] 42%|████▎ | 17/40 [00:03<00:04, 4.90it/s] 45%|████▌ | 18/40 [00:03<00:04, 4.90it/s] 48%|████▊ | 19/40 [00:03<00:04, 4.90it/s] 50%|█████ | 20/40 [00:04<00:04, 4.90it/s] 52%|█████▎ | 21/40 [00:04<00:03, 4.89it/s] 55%|█████▌ | 22/40 [00:04<00:03, 4.89it/s] 57%|█████▊ | 23/40 [00:04<00:03, 4.89it/s] 60%|██████ | 24/40 [00:04<00:03, 4.89it/s] 62%|██████▎ | 25/40 [00:05<00:03, 4.89it/s] 65%|██████▌ | 26/40 [00:05<00:02, 4.89it/s] 68%|██████▊ | 27/40 [00:05<00:02, 4.89it/s] 70%|███████ | 28/40 [00:05<00:02, 4.89it/s] 72%|███████▎ | 29/40 [00:05<00:02, 4.89it/s] 75%|███████▌ | 30/40 [00:06<00:02, 4.89it/s] 78%|███████▊ | 31/40 [00:06<00:01, 4.89it/s] 80%|████████ | 32/40 [00:06<00:01, 4.89it/s] 82%|████████▎ | 33/40 [00:06<00:01, 4.88it/s] 85%|████████▌ | 34/40 [00:06<00:01, 4.88it/s] 88%|████████▊ | 35/40 [00:07<00:01, 4.88it/s] 90%|█████████ | 36/40 [00:07<00:00, 4.88it/s] 92%|█████████▎| 37/40 [00:07<00:00, 4.88it/s] 95%|█████████▌| 38/40 [00:07<00:00, 4.88it/s] 98%|█████████▊| 39/40 [00:07<00:00, 4.88it/s] 100%|██████████| 40/40 [00:08<00:00, 4.88it/s] 100%|██████████| 40/40 [00:08<00:00, 4.89it/s] 0%| | 0/10 [00:00<?, ?it/s] 10%|█ | 1/10 [00:00<00:01, 6.22it/s] 20%|██ | 2/10 [00:00<00:01, 6.19it/s] 30%|███ | 3/10 [00:00<00:01, 6.17it/s] 40%|████ | 4/10 [00:00<00:00, 6.17it/s] 50%|█████ | 5/10 [00:00<00:00, 6.17it/s] 60%|██████ | 6/10 [00:00<00:00, 6.17it/s] 70%|███████ | 7/10 [00:01<00:00, 6.16it/s] 80%|████████ | 8/10 [00:01<00:00, 6.16it/s] 90%|█████████ | 9/10 [00:01<00:00, 6.16it/s] 100%|██████████| 10/10 [00:01<00:00, 6.17it/s] 100%|██████████| 10/10 [00:01<00:00, 6.17it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52ID6qxoxxtbc56fjfpntz3orfabqqStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 90
{ "width": 1024, "height": 768, "prompt": "futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:28:54.696335Z", "created_at": "2023-10-27T10:28:35.845588Z", "data_removed": false, "error": null, "id": "6qxoxxtbc56fjfpntz3orfabqq", "input": { "width": 1024, "height": 768, "prompt": "futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 }, "logs": "Using seed: 32556\nPrompt: futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/71 [00:00<?, ?it/s]\n 1%|▏ | 1/71 [00:00<00:14, 4.92it/s]\n 3%|▎ | 2/71 [00:00<00:14, 4.91it/s]\n 4%|▍ | 3/71 [00:00<00:13, 4.90it/s]\n 6%|▌ | 4/71 [00:00<00:13, 4.90it/s]\n 7%|▋ | 5/71 [00:01<00:13, 4.89it/s]\n 8%|▊ | 6/71 [00:01<00:13, 4.89it/s]\n 10%|▉ | 7/71 [00:01<00:13, 4.88it/s]\n 11%|█▏ | 8/71 [00:01<00:12, 4.89it/s]\n 13%|█▎ | 9/71 [00:01<00:12, 4.88it/s]\n 14%|█▍ | 10/71 [00:02<00:12, 4.88it/s]\n 15%|█▌ | 11/71 [00:02<00:12, 4.88it/s]\n 17%|█▋ | 12/71 [00:02<00:12, 4.87it/s]\n 18%|█▊ | 13/71 [00:02<00:11, 4.87it/s]\n 20%|█▉ | 14/71 [00:02<00:11, 4.87it/s]\n 21%|██ | 15/71 [00:03<00:11, 4.87it/s]\n 23%|██▎ | 16/71 [00:03<00:11, 4.87it/s]\n 24%|██▍ | 17/71 [00:03<00:11, 4.87it/s]\n 25%|██▌ | 18/71 [00:03<00:10, 4.87it/s]\n 27%|██▋ | 19/71 [00:03<00:10, 4.87it/s]\n 28%|██▊ | 20/71 [00:04<00:10, 4.87it/s]\n 30%|██▉ | 21/71 [00:04<00:10, 4.87it/s]\n 31%|███ | 22/71 [00:04<00:10, 4.87it/s]\n 32%|███▏ | 23/71 [00:04<00:09, 4.87it/s]\n 34%|███▍ | 24/71 [00:04<00:09, 4.87it/s]\n 35%|███▌ | 25/71 [00:05<00:09, 4.87it/s]\n 37%|███▋ | 26/71 [00:05<00:09, 4.87it/s]\n 38%|███▊ | 27/71 [00:05<00:09, 4.87it/s]\n 39%|███▉ | 28/71 [00:05<00:08, 4.87it/s]\n 41%|████ | 29/71 [00:05<00:08, 4.87it/s]\n 42%|████▏ | 30/71 [00:06<00:08, 4.87it/s]\n 44%|████▎ | 31/71 [00:06<00:08, 4.87it/s]\n 45%|████▌ | 32/71 [00:06<00:08, 4.87it/s]\n 46%|████▋ | 33/71 [00:06<00:07, 4.86it/s]\n 48%|████▊ | 34/71 [00:06<00:07, 4.86it/s]\n 49%|████▉ | 35/71 [00:07<00:07, 4.87it/s]\n 51%|█████ | 36/71 [00:07<00:07, 4.88it/s]\n 52%|█████▏ | 37/71 [00:07<00:06, 4.89it/s]\n 54%|█████▎ | 38/71 [00:07<00:06, 4.89it/s]\n 55%|█████▍ | 39/71 [00:07<00:06, 4.89it/s]\n 56%|█████▋ | 40/71 [00:08<00:06, 4.89it/s]\n 58%|█████▊ | 41/71 [00:08<00:06, 4.90it/s]\n 59%|█████▉ | 42/71 [00:08<00:05, 4.90it/s]\n 61%|██████ | 43/71 [00:08<00:05, 4.89it/s]\n 62%|██████▏ | 44/71 [00:09<00:05, 4.89it/s]\n 63%|██████▎ | 45/71 [00:09<00:05, 4.90it/s]\n 65%|██████▍ | 46/71 [00:09<00:05, 4.89it/s]\n 66%|██████▌ | 47/71 [00:09<00:04, 4.90it/s]\n 68%|██████▊ | 48/71 [00:09<00:04, 4.90it/s]\n 69%|██████▉ | 49/71 [00:10<00:04, 4.90it/s]\n 70%|███████ | 50/71 [00:10<00:04, 4.90it/s]\n 72%|███████▏ | 51/71 [00:10<00:04, 4.90it/s]\n 73%|███████▎ | 52/71 [00:10<00:03, 4.90it/s]\n 75%|███████▍ | 53/71 [00:10<00:03, 4.90it/s]\n 76%|███████▌ | 54/71 [00:11<00:03, 4.90it/s]\n 77%|███████▋ | 55/71 [00:11<00:03, 4.89it/s]\n 79%|███████▉ | 56/71 [00:11<00:03, 4.89it/s]\n 80%|████████ | 57/71 [00:11<00:02, 4.90it/s]\n 82%|████████▏ | 58/71 [00:11<00:02, 4.89it/s]\n 83%|████████▎ | 59/71 [00:12<00:02, 4.89it/s]\n 85%|████████▍ | 60/71 [00:12<00:02, 4.89it/s]\n 86%|████████▌ | 61/71 [00:12<00:02, 4.89it/s]\n 87%|████████▋ | 62/71 [00:12<00:01, 4.89it/s]\n 89%|████████▊ | 63/71 [00:12<00:01, 4.89it/s]\n 90%|█████████ | 64/71 [00:13<00:01, 4.89it/s]\n 92%|█████████▏| 65/71 [00:13<00:01, 4.89it/s]\n 93%|█████████▎| 66/71 [00:13<00:01, 4.89it/s]\n 94%|█████████▍| 67/71 [00:13<00:00, 4.89it/s]\n 96%|█████████▌| 68/71 [00:13<00:00, 4.89it/s]\n 97%|█████████▋| 69/71 [00:14<00:00, 4.88it/s]\n 99%|█████████▊| 70/71 [00:14<00:00, 4.88it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.88it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.88it/s]\n 0%| | 0/19 [00:00<?, ?it/s]\n 5%|▌ | 1/19 [00:00<00:02, 6.24it/s]\n 11%|█ | 2/19 [00:00<00:02, 6.19it/s]\n 16%|█▌ | 3/19 [00:00<00:02, 6.17it/s]\n 21%|██ | 4/19 [00:00<00:02, 6.17it/s]\n 26%|██▋ | 5/19 [00:00<00:02, 6.17it/s]\n 32%|███▏ | 6/19 [00:00<00:02, 6.17it/s]\n 37%|███▋ | 7/19 [00:01<00:01, 6.17it/s]\n 42%|████▏ | 8/19 [00:01<00:01, 6.17it/s]\n 47%|████▋ | 9/19 [00:01<00:01, 6.17it/s]\n 53%|█████▎ | 10/19 [00:01<00:01, 6.17it/s]\n 58%|█████▊ | 11/19 [00:01<00:01, 6.17it/s]\n 63%|██████▎ | 12/19 [00:01<00:01, 6.17it/s]\n 68%|██████▊ | 13/19 [00:02<00:00, 6.17it/s]\n 74%|███████▎ | 14/19 [00:02<00:00, 6.17it/s]\n 79%|███████▉ | 15/19 [00:02<00:00, 6.17it/s]\n 84%|████████▍ | 16/19 [00:02<00:00, 6.17it/s]\n 89%|████████▉ | 17/19 [00:02<00:00, 6.17it/s]\n 95%|█████████▍| 18/19 [00:02<00:00, 6.17it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.17it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.17it/s]", "metrics": { "predict_time": 18.897994, "total_time": 18.850747 }, "output": [ "https://pbxt.replicate.delivery/5ptCpKImEiLEN9efUlnOYRFUSmFfwmBdMnd4NryljrpNXokjA/out-0.png" ], "started_at": "2023-10-27T10:28:35.798341Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6qxoxxtbc56fjfpntz3orfabqq", "cancel": "https://api.replicate.com/v1/predictions/6qxoxxtbc56fjfpntz3orfabqq/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 32556 Prompt: futuristic town, cargo spaceship, european girl, looking at camera, redhead, close-up, portrait, spaceport, beautiful, rocket launch, ground floor, cargo area, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/71 [00:00<?, ?it/s] 1%|▏ | 1/71 [00:00<00:14, 4.92it/s] 3%|▎ | 2/71 [00:00<00:14, 4.91it/s] 4%|▍ | 3/71 [00:00<00:13, 4.90it/s] 6%|▌ | 4/71 [00:00<00:13, 4.90it/s] 7%|▋ | 5/71 [00:01<00:13, 4.89it/s] 8%|▊ | 6/71 [00:01<00:13, 4.89it/s] 10%|▉ | 7/71 [00:01<00:13, 4.88it/s] 11%|█▏ | 8/71 [00:01<00:12, 4.89it/s] 13%|█▎ | 9/71 [00:01<00:12, 4.88it/s] 14%|█▍ | 10/71 [00:02<00:12, 4.88it/s] 15%|█▌ | 11/71 [00:02<00:12, 4.88it/s] 17%|█▋ | 12/71 [00:02<00:12, 4.87it/s] 18%|█▊ | 13/71 [00:02<00:11, 4.87it/s] 20%|█▉ | 14/71 [00:02<00:11, 4.87it/s] 21%|██ | 15/71 [00:03<00:11, 4.87it/s] 23%|██▎ | 16/71 [00:03<00:11, 4.87it/s] 24%|██▍ | 17/71 [00:03<00:11, 4.87it/s] 25%|██▌ | 18/71 [00:03<00:10, 4.87it/s] 27%|██▋ | 19/71 [00:03<00:10, 4.87it/s] 28%|██▊ | 20/71 [00:04<00:10, 4.87it/s] 30%|██▉ | 21/71 [00:04<00:10, 4.87it/s] 31%|███ | 22/71 [00:04<00:10, 4.87it/s] 32%|███▏ | 23/71 [00:04<00:09, 4.87it/s] 34%|███▍ | 24/71 [00:04<00:09, 4.87it/s] 35%|███▌ | 25/71 [00:05<00:09, 4.87it/s] 37%|███▋ | 26/71 [00:05<00:09, 4.87it/s] 38%|███▊ | 27/71 [00:05<00:09, 4.87it/s] 39%|███▉ | 28/71 [00:05<00:08, 4.87it/s] 41%|████ | 29/71 [00:05<00:08, 4.87it/s] 42%|████▏ | 30/71 [00:06<00:08, 4.87it/s] 44%|████▎ | 31/71 [00:06<00:08, 4.87it/s] 45%|████▌ | 32/71 [00:06<00:08, 4.87it/s] 46%|████▋ | 33/71 [00:06<00:07, 4.86it/s] 48%|████▊ | 34/71 [00:06<00:07, 4.86it/s] 49%|████▉ | 35/71 [00:07<00:07, 4.87it/s] 51%|█████ | 36/71 [00:07<00:07, 4.88it/s] 52%|█████▏ | 37/71 [00:07<00:06, 4.89it/s] 54%|█████▎ | 38/71 [00:07<00:06, 4.89it/s] 55%|█████▍ | 39/71 [00:07<00:06, 4.89it/s] 56%|█████▋ | 40/71 [00:08<00:06, 4.89it/s] 58%|█████▊ | 41/71 [00:08<00:06, 4.90it/s] 59%|█████▉ | 42/71 [00:08<00:05, 4.90it/s] 61%|██████ | 43/71 [00:08<00:05, 4.89it/s] 62%|██████▏ | 44/71 [00:09<00:05, 4.89it/s] 63%|██████▎ | 45/71 [00:09<00:05, 4.90it/s] 65%|██████▍ | 46/71 [00:09<00:05, 4.89it/s] 66%|██████▌ | 47/71 [00:09<00:04, 4.90it/s] 68%|██████▊ | 48/71 [00:09<00:04, 4.90it/s] 69%|██████▉ | 49/71 [00:10<00:04, 4.90it/s] 70%|███████ | 50/71 [00:10<00:04, 4.90it/s] 72%|███████▏ | 51/71 [00:10<00:04, 4.90it/s] 73%|███████▎ | 52/71 [00:10<00:03, 4.90it/s] 75%|███████▍ | 53/71 [00:10<00:03, 4.90it/s] 76%|███████▌ | 54/71 [00:11<00:03, 4.90it/s] 77%|███████▋ | 55/71 [00:11<00:03, 4.89it/s] 79%|███████▉ | 56/71 [00:11<00:03, 4.89it/s] 80%|████████ | 57/71 [00:11<00:02, 4.90it/s] 82%|████████▏ | 58/71 [00:11<00:02, 4.89it/s] 83%|████████▎ | 59/71 [00:12<00:02, 4.89it/s] 85%|████████▍ | 60/71 [00:12<00:02, 4.89it/s] 86%|████████▌ | 61/71 [00:12<00:02, 4.89it/s] 87%|████████▋ | 62/71 [00:12<00:01, 4.89it/s] 89%|████████▊ | 63/71 [00:12<00:01, 4.89it/s] 90%|█████████ | 64/71 [00:13<00:01, 4.89it/s] 92%|█████████▏| 65/71 [00:13<00:01, 4.89it/s] 93%|█████████▎| 66/71 [00:13<00:01, 4.89it/s] 94%|█████████▍| 67/71 [00:13<00:00, 4.89it/s] 96%|█████████▌| 68/71 [00:13<00:00, 4.89it/s] 97%|█████████▋| 69/71 [00:14<00:00, 4.88it/s] 99%|█████████▊| 70/71 [00:14<00:00, 4.88it/s] 100%|██████████| 71/71 [00:14<00:00, 4.88it/s] 100%|██████████| 71/71 [00:14<00:00, 4.88it/s] 0%| | 0/19 [00:00<?, ?it/s] 5%|▌ | 1/19 [00:00<00:02, 6.24it/s] 11%|█ | 2/19 [00:00<00:02, 6.19it/s] 16%|█▌ | 3/19 [00:00<00:02, 6.17it/s] 21%|██ | 4/19 [00:00<00:02, 6.17it/s] 26%|██▋ | 5/19 [00:00<00:02, 6.17it/s] 32%|███▏ | 6/19 [00:00<00:02, 6.17it/s] 37%|███▋ | 7/19 [00:01<00:01, 6.17it/s] 42%|████▏ | 8/19 [00:01<00:01, 6.17it/s] 47%|████▋ | 9/19 [00:01<00:01, 6.17it/s] 53%|█████▎ | 10/19 [00:01<00:01, 6.17it/s] 58%|█████▊ | 11/19 [00:01<00:01, 6.17it/s] 63%|██████▎ | 12/19 [00:01<00:01, 6.17it/s] 68%|██████▊ | 13/19 [00:02<00:00, 6.17it/s] 74%|███████▎ | 14/19 [00:02<00:00, 6.17it/s] 79%|███████▉ | 15/19 [00:02<00:00, 6.17it/s] 84%|████████▍ | 16/19 [00:02<00:00, 6.17it/s] 89%|████████▉ | 17/19 [00:02<00:00, 6.17it/s] 95%|█████████▍| 18/19 [00:02<00:00, 6.17it/s] 100%|██████████| 19/19 [00:03<00:00, 6.17it/s] 100%|██████████| 19/19 [00:03<00:00, 6.17it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52IDeteoymdbsc3qkf3xo2u4cllb5yStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 90
{ "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:50:29.998843Z", "created_at": "2023-10-27T10:50:11.293112Z", "data_removed": false, "error": null, "id": "eteoymdbsc3qkf3xo2u4cllb5y", "input": { "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 }, "logs": "Using seed: 38681\nPrompt: japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/71 [00:00<?, ?it/s]\n 1%|▏ | 1/71 [00:00<00:14, 4.97it/s]\n 3%|▎ | 2/71 [00:00<00:13, 4.95it/s]\n 4%|▍ | 3/71 [00:00<00:13, 4.94it/s]\n 6%|▌ | 4/71 [00:00<00:13, 4.94it/s]\n 7%|▋ | 5/71 [00:01<00:13, 4.93it/s]\n 8%|▊ | 6/71 [00:01<00:13, 4.93it/s]\n 10%|▉ | 7/71 [00:01<00:12, 4.93it/s]\n 11%|█▏ | 8/71 [00:01<00:12, 4.93it/s]\n 13%|█▎ | 9/71 [00:01<00:12, 4.92it/s]\n 14%|█▍ | 10/71 [00:02<00:12, 4.91it/s]\n 15%|█▌ | 11/71 [00:02<00:12, 4.91it/s]\n 17%|█▋ | 12/71 [00:02<00:12, 4.91it/s]\n 18%|█▊ | 13/71 [00:02<00:11, 4.91it/s]\n 20%|█▉ | 14/71 [00:02<00:11, 4.91it/s]\n 21%|██ | 15/71 [00:03<00:11, 4.91it/s]\n 23%|██▎ | 16/71 [00:03<00:11, 4.91it/s]\n 24%|██▍ | 17/71 [00:03<00:10, 4.91it/s]\n 25%|██▌ | 18/71 [00:03<00:10, 4.90it/s]\n 27%|██▋ | 19/71 [00:03<00:10, 4.90it/s]\n 28%|██▊ | 20/71 [00:04<00:10, 4.90it/s]\n 30%|██▉ | 21/71 [00:04<00:10, 4.90it/s]\n 31%|███ | 22/71 [00:04<00:10, 4.90it/s]\n 32%|███▏ | 23/71 [00:04<00:09, 4.90it/s]\n 34%|███▍ | 24/71 [00:04<00:09, 4.90it/s]\n 35%|███▌ | 25/71 [00:05<00:09, 4.90it/s]\n 37%|███▋ | 26/71 [00:05<00:09, 4.90it/s]\n 38%|███▊ | 27/71 [00:05<00:08, 4.90it/s]\n 39%|███▉ | 28/71 [00:05<00:08, 4.90it/s]\n 41%|████ | 29/71 [00:05<00:08, 4.90it/s]\n 42%|████▏ | 30/71 [00:06<00:08, 4.90it/s]\n 44%|████▎ | 31/71 [00:06<00:08, 4.90it/s]\n 45%|████▌ | 32/71 [00:06<00:07, 4.90it/s]\n 46%|████▋ | 33/71 [00:06<00:07, 4.90it/s]\n 48%|████▊ | 34/71 [00:06<00:07, 4.90it/s]\n 49%|████▉ | 35/71 [00:07<00:07, 4.90it/s]\n 51%|█████ | 36/71 [00:07<00:07, 4.90it/s]\n 52%|█████▏ | 37/71 [00:07<00:06, 4.91it/s]\n 54%|█████▎ | 38/71 [00:07<00:06, 4.92it/s]\n 55%|█████▍ | 39/71 [00:07<00:06, 4.92it/s]\n 56%|█████▋ | 40/71 [00:08<00:06, 4.93it/s]\n 58%|█████▊ | 41/71 [00:08<00:06, 4.93it/s]\n 59%|█████▉ | 42/71 [00:08<00:05, 4.93it/s]\n 61%|██████ | 43/71 [00:08<00:05, 4.93it/s]\n 62%|██████▏ | 44/71 [00:08<00:05, 4.93it/s]\n 63%|██████▎ | 45/71 [00:09<00:05, 4.93it/s]\n 65%|██████▍ | 46/71 [00:09<00:05, 4.93it/s]\n 66%|██████▌ | 47/71 [00:09<00:04, 4.93it/s]\n 68%|██████▊ | 48/71 [00:09<00:04, 4.93it/s]\n 69%|██████▉ | 49/71 [00:09<00:04, 4.93it/s]\n 70%|███████ | 50/71 [00:10<00:04, 4.93it/s]\n 72%|███████▏ | 51/71 [00:10<00:04, 4.93it/s]\n 73%|███████▎ | 52/71 [00:10<00:03, 4.92it/s]\n 75%|███████▍ | 53/71 [00:10<00:03, 4.92it/s]\n 76%|███████▌ | 54/71 [00:10<00:03, 4.92it/s]\n 77%|███████▋ | 55/71 [00:11<00:03, 4.93it/s]\n 79%|███████▉ | 56/71 [00:11<00:03, 4.93it/s]\n 80%|████████ | 57/71 [00:11<00:02, 4.92it/s]\n 82%|████████▏ | 58/71 [00:11<00:02, 4.92it/s]\n 83%|████████▎ | 59/71 [00:11<00:02, 4.92it/s]\n 85%|████████▍ | 60/71 [00:12<00:02, 4.92it/s]\n 86%|████████▌ | 61/71 [00:12<00:02, 4.92it/s]\n 87%|████████▋ | 62/71 [00:12<00:01, 4.92it/s]\n 89%|████████▊ | 63/71 [00:12<00:01, 4.92it/s]\n 90%|█████████ | 64/71 [00:13<00:01, 4.92it/s]\n 92%|█████████▏| 65/71 [00:13<00:01, 4.92it/s]\n 93%|█████████▎| 66/71 [00:13<00:01, 4.92it/s]\n 94%|█████████▍| 67/71 [00:13<00:00, 4.92it/s]\n 96%|█████████▌| 68/71 [00:13<00:00, 4.92it/s]\n 97%|█████████▋| 69/71 [00:14<00:00, 4.92it/s]\n 99%|█████████▊| 70/71 [00:14<00:00, 4.92it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.92it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.92it/s]\n 0%| | 0/19 [00:00<?, ?it/s]\n 5%|▌ | 1/19 [00:00<00:02, 6.29it/s]\n 11%|█ | 2/19 [00:00<00:02, 6.24it/s]\n 16%|█▌ | 3/19 [00:00<00:02, 6.22it/s]\n 21%|██ | 4/19 [00:00<00:02, 6.22it/s]\n 26%|██▋ | 5/19 [00:00<00:02, 6.22it/s]\n 32%|███▏ | 6/19 [00:00<00:02, 6.21it/s]\n 37%|███▋ | 7/19 [00:01<00:01, 6.20it/s]\n 42%|████▏ | 8/19 [00:01<00:01, 6.20it/s]\n 47%|████▋ | 9/19 [00:01<00:01, 6.20it/s]\n 53%|█████▎ | 10/19 [00:01<00:01, 6.20it/s]\n 58%|█████▊ | 11/19 [00:01<00:01, 6.20it/s]\n 63%|██████▎ | 12/19 [00:01<00:01, 6.19it/s]\n 68%|██████▊ | 13/19 [00:02<00:00, 6.18it/s]\n 74%|███████▎ | 14/19 [00:02<00:00, 6.18it/s]\n 79%|███████▉ | 15/19 [00:02<00:00, 6.19it/s]\n 84%|████████▍ | 16/19 [00:02<00:00, 6.19it/s]\n 89%|████████▉ | 17/19 [00:02<00:00, 6.20it/s]\n 95%|█████████▍| 18/19 [00:02<00:00, 6.20it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.20it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.20it/s]", "metrics": { "predict_time": 18.737458, "total_time": 18.705731 }, "output": [ "https://pbxt.replicate.delivery/iqL8HJLoQpoqEVHUklalJcMJhixxKIQ5H3muQpiefm41fokjA/out-0.png" ], "started_at": "2023-10-27T10:50:11.261385Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/eteoymdbsc3qkf3xo2u4cllb5y", "cancel": "https://api.replicate.com/v1/predictions/eteoymdbsc3qkf3xo2u4cllb5y/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 38681 Prompt: japanese garden, beautiful, zen garden, skyline, neotokyo, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/71 [00:00<?, ?it/s] 1%|▏ | 1/71 [00:00<00:14, 4.97it/s] 3%|▎ | 2/71 [00:00<00:13, 4.95it/s] 4%|▍ | 3/71 [00:00<00:13, 4.94it/s] 6%|▌ | 4/71 [00:00<00:13, 4.94it/s] 7%|▋ | 5/71 [00:01<00:13, 4.93it/s] 8%|▊ | 6/71 [00:01<00:13, 4.93it/s] 10%|▉ | 7/71 [00:01<00:12, 4.93it/s] 11%|█▏ | 8/71 [00:01<00:12, 4.93it/s] 13%|█▎ | 9/71 [00:01<00:12, 4.92it/s] 14%|█▍ | 10/71 [00:02<00:12, 4.91it/s] 15%|█▌ | 11/71 [00:02<00:12, 4.91it/s] 17%|█▋ | 12/71 [00:02<00:12, 4.91it/s] 18%|█▊ | 13/71 [00:02<00:11, 4.91it/s] 20%|█▉ | 14/71 [00:02<00:11, 4.91it/s] 21%|██ | 15/71 [00:03<00:11, 4.91it/s] 23%|██▎ | 16/71 [00:03<00:11, 4.91it/s] 24%|██▍ | 17/71 [00:03<00:10, 4.91it/s] 25%|██▌ | 18/71 [00:03<00:10, 4.90it/s] 27%|██▋ | 19/71 [00:03<00:10, 4.90it/s] 28%|██▊ | 20/71 [00:04<00:10, 4.90it/s] 30%|██▉ | 21/71 [00:04<00:10, 4.90it/s] 31%|███ | 22/71 [00:04<00:10, 4.90it/s] 32%|███▏ | 23/71 [00:04<00:09, 4.90it/s] 34%|███▍ | 24/71 [00:04<00:09, 4.90it/s] 35%|███▌ | 25/71 [00:05<00:09, 4.90it/s] 37%|███▋ | 26/71 [00:05<00:09, 4.90it/s] 38%|███▊ | 27/71 [00:05<00:08, 4.90it/s] 39%|███▉ | 28/71 [00:05<00:08, 4.90it/s] 41%|████ | 29/71 [00:05<00:08, 4.90it/s] 42%|████▏ | 30/71 [00:06<00:08, 4.90it/s] 44%|████▎ | 31/71 [00:06<00:08, 4.90it/s] 45%|████▌ | 32/71 [00:06<00:07, 4.90it/s] 46%|████▋ | 33/71 [00:06<00:07, 4.90it/s] 48%|████▊ | 34/71 [00:06<00:07, 4.90it/s] 49%|████▉ | 35/71 [00:07<00:07, 4.90it/s] 51%|█████ | 36/71 [00:07<00:07, 4.90it/s] 52%|█████▏ | 37/71 [00:07<00:06, 4.91it/s] 54%|█████▎ | 38/71 [00:07<00:06, 4.92it/s] 55%|█████▍ | 39/71 [00:07<00:06, 4.92it/s] 56%|█████▋ | 40/71 [00:08<00:06, 4.93it/s] 58%|█████▊ | 41/71 [00:08<00:06, 4.93it/s] 59%|█████▉ | 42/71 [00:08<00:05, 4.93it/s] 61%|██████ | 43/71 [00:08<00:05, 4.93it/s] 62%|██████▏ | 44/71 [00:08<00:05, 4.93it/s] 63%|██████▎ | 45/71 [00:09<00:05, 4.93it/s] 65%|██████▍ | 46/71 [00:09<00:05, 4.93it/s] 66%|██████▌ | 47/71 [00:09<00:04, 4.93it/s] 68%|██████▊ | 48/71 [00:09<00:04, 4.93it/s] 69%|██████▉ | 49/71 [00:09<00:04, 4.93it/s] 70%|███████ | 50/71 [00:10<00:04, 4.93it/s] 72%|███████▏ | 51/71 [00:10<00:04, 4.93it/s] 73%|███████▎ | 52/71 [00:10<00:03, 4.92it/s] 75%|███████▍ | 53/71 [00:10<00:03, 4.92it/s] 76%|███████▌ | 54/71 [00:10<00:03, 4.92it/s] 77%|███████▋ | 55/71 [00:11<00:03, 4.93it/s] 79%|███████▉ | 56/71 [00:11<00:03, 4.93it/s] 80%|████████ | 57/71 [00:11<00:02, 4.92it/s] 82%|████████▏ | 58/71 [00:11<00:02, 4.92it/s] 83%|████████▎ | 59/71 [00:11<00:02, 4.92it/s] 85%|████████▍ | 60/71 [00:12<00:02, 4.92it/s] 86%|████████▌ | 61/71 [00:12<00:02, 4.92it/s] 87%|████████▋ | 62/71 [00:12<00:01, 4.92it/s] 89%|████████▊ | 63/71 [00:12<00:01, 4.92it/s] 90%|█████████ | 64/71 [00:13<00:01, 4.92it/s] 92%|█████████▏| 65/71 [00:13<00:01, 4.92it/s] 93%|█████████▎| 66/71 [00:13<00:01, 4.92it/s] 94%|█████████▍| 67/71 [00:13<00:00, 4.92it/s] 96%|█████████▌| 68/71 [00:13<00:00, 4.92it/s] 97%|█████████▋| 69/71 [00:14<00:00, 4.92it/s] 99%|█████████▊| 70/71 [00:14<00:00, 4.92it/s] 100%|██████████| 71/71 [00:14<00:00, 4.92it/s] 100%|██████████| 71/71 [00:14<00:00, 4.92it/s] 0%| | 0/19 [00:00<?, ?it/s] 5%|▌ | 1/19 [00:00<00:02, 6.29it/s] 11%|█ | 2/19 [00:00<00:02, 6.24it/s] 16%|█▌ | 3/19 [00:00<00:02, 6.22it/s] 21%|██ | 4/19 [00:00<00:02, 6.22it/s] 26%|██▋ | 5/19 [00:00<00:02, 6.22it/s] 32%|███▏ | 6/19 [00:00<00:02, 6.21it/s] 37%|███▋ | 7/19 [00:01<00:01, 6.20it/s] 42%|████▏ | 8/19 [00:01<00:01, 6.20it/s] 47%|████▋ | 9/19 [00:01<00:01, 6.20it/s] 53%|█████▎ | 10/19 [00:01<00:01, 6.20it/s] 58%|█████▊ | 11/19 [00:01<00:01, 6.20it/s] 63%|██████▎ | 12/19 [00:01<00:01, 6.19it/s] 68%|██████▊ | 13/19 [00:02<00:00, 6.18it/s] 74%|███████▎ | 14/19 [00:02<00:00, 6.18it/s] 79%|███████▉ | 15/19 [00:02<00:00, 6.19it/s] 84%|████████▍ | 16/19 [00:02<00:00, 6.19it/s] 89%|████████▉ | 17/19 [00:02<00:00, 6.20it/s] 95%|█████████▍| 18/19 [00:02<00:00, 6.20it/s] 100%|██████████| 19/19 [00:03<00:00, 6.20it/s] 100%|██████████| 19/19 [00:03<00:00, 6.20it/s]
Prediction
jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52ID6tzwa73bf37gvxb53bhqs4iw74StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- width
- 1024
- height
- 768
- prompt
- japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK
- refine
- expert_ensemble_refiner
- scheduler
- K_EULER
- lora_scale
- 0.9
- num_outputs
- 1
- guidance_scale
- 7.5
- apply_watermark
- high_noise_frac
- 0.8
- negative_prompt
- photo, drawing, cropped
- prompt_strength
- 0.8
- num_inference_steps
- 90
{ "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", { input: { width: 1024, height: 768, prompt: "japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK", refine: "expert_ensemble_refiner", scheduler: "K_EULER", lora_scale: 0.9, num_outputs: 1, guidance_scale: 7.5, apply_watermark: true, high_noise_frac: 0.8, negative_prompt: "photo, drawing, cropped", prompt_strength: 0.8, num_inference_steps: 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 jbilcke/sdxl-starfield using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", input={ "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": True, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run jbilcke/sdxl-starfield 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": "jbilcke/sdxl-starfield:e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52", "input": { "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2023-10-27T10:52:01.280019Z", "created_at": "2023-10-27T10:51:42.565922Z", "data_removed": false, "error": null, "id": "6tzwa73bf37gvxb53bhqs4iw74", "input": { "width": 1024, "height": 768, "prompt": "japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of TOK", "refine": "expert_ensemble_refiner", "scheduler": "K_EULER", "lora_scale": 0.9, "num_outputs": 1, "guidance_scale": 7.5, "apply_watermark": true, "high_noise_frac": 0.8, "negative_prompt": "photo, drawing, cropped", "prompt_strength": 0.8, "num_inference_steps": 90 }, "logs": "Using seed: 29319\nPrompt: japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/71 [00:00<?, ?it/s]\n 1%|▏ | 1/71 [00:00<00:14, 4.95it/s]\n 3%|▎ | 2/71 [00:00<00:13, 4.93it/s]\n 4%|▍ | 3/71 [00:00<00:13, 4.93it/s]\n 6%|▌ | 4/71 [00:00<00:13, 4.92it/s]\n 7%|▋ | 5/71 [00:01<00:13, 4.91it/s]\n 8%|▊ | 6/71 [00:01<00:13, 4.91it/s]\n 10%|▉ | 7/71 [00:01<00:13, 4.91it/s]\n 11%|█▏ | 8/71 [00:01<00:12, 4.91it/s]\n 13%|█▎ | 9/71 [00:01<00:12, 4.90it/s]\n 14%|█▍ | 10/71 [00:02<00:12, 4.91it/s]\n 15%|█▌ | 11/71 [00:02<00:12, 4.90it/s]\n 17%|█▋ | 12/71 [00:02<00:12, 4.90it/s]\n 18%|█▊ | 13/71 [00:02<00:11, 4.90it/s]\n 20%|█▉ | 14/71 [00:02<00:11, 4.90it/s]\n 21%|██ | 15/71 [00:03<00:11, 4.90it/s]\n 23%|██▎ | 16/71 [00:03<00:11, 4.90it/s]\n 24%|██▍ | 17/71 [00:03<00:11, 4.90it/s]\n 25%|██▌ | 18/71 [00:03<00:10, 4.90it/s]\n 27%|██▋ | 19/71 [00:03<00:10, 4.90it/s]\n 28%|██▊ | 20/71 [00:04<00:10, 4.90it/s]\n 30%|██▉ | 21/71 [00:04<00:10, 4.90it/s]\n 31%|███ | 22/71 [00:04<00:10, 4.90it/s]\n 32%|███▏ | 23/71 [00:04<00:09, 4.90it/s]\n 34%|███▍ | 24/71 [00:04<00:09, 4.90it/s]\n 35%|███▌ | 25/71 [00:05<00:09, 4.90it/s]\n 37%|███▋ | 26/71 [00:05<00:09, 4.91it/s]\n 38%|███▊ | 27/71 [00:05<00:08, 4.91it/s]\n 39%|███▉ | 28/71 [00:05<00:08, 4.92it/s]\n 41%|████ | 29/71 [00:05<00:08, 4.92it/s]\n 42%|████▏ | 30/71 [00:06<00:08, 4.92it/s]\n 44%|████▎ | 31/71 [00:06<00:08, 4.92it/s]\n 45%|████▌ | 32/71 [00:06<00:07, 4.92it/s]\n 46%|████▋ | 33/71 [00:06<00:07, 4.92it/s]\n 48%|████▊ | 34/71 [00:06<00:07, 4.92it/s]\n 49%|████▉ | 35/71 [00:07<00:07, 4.92it/s]\n 51%|█████ | 36/71 [00:07<00:07, 4.92it/s]\n 52%|█████▏ | 37/71 [00:07<00:06, 4.92it/s]\n 54%|█████▎ | 38/71 [00:07<00:06, 4.92it/s]\n 55%|█████▍ | 39/71 [00:07<00:06, 4.92it/s]\n 56%|█████▋ | 40/71 [00:08<00:06, 4.92it/s]\n 58%|█████▊ | 41/71 [00:08<00:06, 4.92it/s]\n 59%|█████▉ | 42/71 [00:08<00:05, 4.92it/s]\n 61%|██████ | 43/71 [00:08<00:05, 4.92it/s]\n 62%|██████▏ | 44/71 [00:08<00:05, 4.92it/s]\n 63%|██████▎ | 45/71 [00:09<00:05, 4.92it/s]\n 65%|██████▍ | 46/71 [00:09<00:05, 4.92it/s]\n 66%|██████▌ | 47/71 [00:09<00:04, 4.92it/s]\n 68%|██████▊ | 48/71 [00:09<00:04, 4.92it/s]\n 69%|██████▉ | 49/71 [00:09<00:04, 4.92it/s]\n 70%|███████ | 50/71 [00:10<00:04, 4.92it/s]\n 72%|███████▏ | 51/71 [00:10<00:04, 4.92it/s]\n 73%|███████▎ | 52/71 [00:10<00:03, 4.92it/s]\n 75%|███████▍ | 53/71 [00:10<00:03, 4.92it/s]\n 76%|███████▌ | 54/71 [00:10<00:03, 4.92it/s]\n 77%|███████▋ | 55/71 [00:11<00:03, 4.91it/s]\n 79%|███████▉ | 56/71 [00:11<00:03, 4.91it/s]\n 80%|████████ | 57/71 [00:11<00:02, 4.91it/s]\n 82%|████████▏ | 58/71 [00:11<00:02, 4.92it/s]\n 83%|████████▎ | 59/71 [00:12<00:02, 4.92it/s]\n 85%|████████▍ | 60/71 [00:12<00:02, 4.92it/s]\n 86%|████████▌ | 61/71 [00:12<00:02, 4.92it/s]\n 87%|████████▋ | 62/71 [00:12<00:01, 4.91it/s]\n 89%|████████▊ | 63/71 [00:12<00:01, 4.91it/s]\n 90%|█████████ | 64/71 [00:13<00:01, 4.91it/s]\n 92%|█████████▏| 65/71 [00:13<00:01, 4.91it/s]\n 93%|█████████▎| 66/71 [00:13<00:01, 4.91it/s]\n 94%|█████████▍| 67/71 [00:13<00:00, 4.91it/s]\n 96%|█████████▌| 68/71 [00:13<00:00, 4.91it/s]\n 97%|█████████▋| 69/71 [00:14<00:00, 4.91it/s]\n 99%|█████████▊| 70/71 [00:14<00:00, 4.91it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.91it/s]\n100%|██████████| 71/71 [00:14<00:00, 4.91it/s]\n 0%| | 0/19 [00:00<?, ?it/s]\n 5%|▌ | 1/19 [00:00<00:02, 6.27it/s]\n 11%|█ | 2/19 [00:00<00:02, 6.24it/s]\n 16%|█▌ | 3/19 [00:00<00:02, 6.23it/s]\n 21%|██ | 4/19 [00:00<00:02, 6.22it/s]\n 26%|██▋ | 5/19 [00:00<00:02, 6.22it/s]\n 32%|███▏ | 6/19 [00:00<00:02, 6.21it/s]\n 37%|███▋ | 7/19 [00:01<00:01, 6.21it/s]\n 42%|████▏ | 8/19 [00:01<00:01, 6.21it/s]\n 47%|████▋ | 9/19 [00:01<00:01, 6.21it/s]\n 53%|█████▎ | 10/19 [00:01<00:01, 6.20it/s]\n 58%|█████▊ | 11/19 [00:01<00:01, 6.20it/s]\n 63%|██████▎ | 12/19 [00:01<00:01, 6.20it/s]\n 68%|██████▊ | 13/19 [00:02<00:00, 6.19it/s]\n 74%|███████▎ | 14/19 [00:02<00:00, 6.19it/s]\n 79%|███████▉ | 15/19 [00:02<00:00, 6.19it/s]\n 84%|████████▍ | 16/19 [00:02<00:00, 6.19it/s]\n 89%|████████▉ | 17/19 [00:02<00:00, 6.19it/s]\n 95%|█████████▍| 18/19 [00:02<00:00, 6.19it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.19it/s]\n100%|██████████| 19/19 [00:03<00:00, 6.20it/s]", "metrics": { "predict_time": 18.776293, "total_time": 18.714097 }, "output": [ "https://pbxt.replicate.delivery/IOI1LpDfkmwDSikAX12TDllFaooz58kX7d1oOZK2rbRoQK5IA/out-0.png" ], "started_at": "2023-10-27T10:51:42.503726Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6tzwa73bf37gvxb53bhqs4iw74", "cancel": "https://api.replicate.com/v1/predictions/6tzwa73bf37gvxb53bhqs4iw74/cancel" }, "version": "e5083ba0840b2e515fae96f48204926e3595153df46ac7a9cda38158f5b37a52" }
Generated inUsing seed: 29319 Prompt: japanese garden, beautiful, zen garden, skyline, astronaut selfie, neotokyo, sci-fi, in the style of <s0><s1> txt2img mode 0%| | 0/71 [00:00<?, ?it/s] 1%|▏ | 1/71 [00:00<00:14, 4.95it/s] 3%|▎ | 2/71 [00:00<00:13, 4.93it/s] 4%|▍ | 3/71 [00:00<00:13, 4.93it/s] 6%|▌ | 4/71 [00:00<00:13, 4.92it/s] 7%|▋ | 5/71 [00:01<00:13, 4.91it/s] 8%|▊ | 6/71 [00:01<00:13, 4.91it/s] 10%|▉ | 7/71 [00:01<00:13, 4.91it/s] 11%|█▏ | 8/71 [00:01<00:12, 4.91it/s] 13%|█▎ | 9/71 [00:01<00:12, 4.90it/s] 14%|█▍ | 10/71 [00:02<00:12, 4.91it/s] 15%|█▌ | 11/71 [00:02<00:12, 4.90it/s] 17%|█▋ | 12/71 [00:02<00:12, 4.90it/s] 18%|█▊ | 13/71 [00:02<00:11, 4.90it/s] 20%|█▉ | 14/71 [00:02<00:11, 4.90it/s] 21%|██ | 15/71 [00:03<00:11, 4.90it/s] 23%|██▎ | 16/71 [00:03<00:11, 4.90it/s] 24%|██▍ | 17/71 [00:03<00:11, 4.90it/s] 25%|██▌ | 18/71 [00:03<00:10, 4.90it/s] 27%|██▋ | 19/71 [00:03<00:10, 4.90it/s] 28%|██▊ | 20/71 [00:04<00:10, 4.90it/s] 30%|██▉ | 21/71 [00:04<00:10, 4.90it/s] 31%|███ | 22/71 [00:04<00:10, 4.90it/s] 32%|███▏ | 23/71 [00:04<00:09, 4.90it/s] 34%|███▍ | 24/71 [00:04<00:09, 4.90it/s] 35%|███▌ | 25/71 [00:05<00:09, 4.90it/s] 37%|███▋ | 26/71 [00:05<00:09, 4.91it/s] 38%|███▊ | 27/71 [00:05<00:08, 4.91it/s] 39%|███▉ | 28/71 [00:05<00:08, 4.92it/s] 41%|████ | 29/71 [00:05<00:08, 4.92it/s] 42%|████▏ | 30/71 [00:06<00:08, 4.92it/s] 44%|████▎ | 31/71 [00:06<00:08, 4.92it/s] 45%|████▌ | 32/71 [00:06<00:07, 4.92it/s] 46%|████▋ | 33/71 [00:06<00:07, 4.92it/s] 48%|████▊ | 34/71 [00:06<00:07, 4.92it/s] 49%|████▉ | 35/71 [00:07<00:07, 4.92it/s] 51%|█████ | 36/71 [00:07<00:07, 4.92it/s] 52%|█████▏ | 37/71 [00:07<00:06, 4.92it/s] 54%|█████▎ | 38/71 [00:07<00:06, 4.92it/s] 55%|█████▍ | 39/71 [00:07<00:06, 4.92it/s] 56%|█████▋ | 40/71 [00:08<00:06, 4.92it/s] 58%|█████▊ | 41/71 [00:08<00:06, 4.92it/s] 59%|█████▉ | 42/71 [00:08<00:05, 4.92it/s] 61%|██████ | 43/71 [00:08<00:05, 4.92it/s] 62%|██████▏ | 44/71 [00:08<00:05, 4.92it/s] 63%|██████▎ | 45/71 [00:09<00:05, 4.92it/s] 65%|██████▍ | 46/71 [00:09<00:05, 4.92it/s] 66%|██████▌ | 47/71 [00:09<00:04, 4.92it/s] 68%|██████▊ | 48/71 [00:09<00:04, 4.92it/s] 69%|██████▉ | 49/71 [00:09<00:04, 4.92it/s] 70%|███████ | 50/71 [00:10<00:04, 4.92it/s] 72%|███████▏ | 51/71 [00:10<00:04, 4.92it/s] 73%|███████▎ | 52/71 [00:10<00:03, 4.92it/s] 75%|███████▍ | 53/71 [00:10<00:03, 4.92it/s] 76%|███████▌ | 54/71 [00:10<00:03, 4.92it/s] 77%|███████▋ | 55/71 [00:11<00:03, 4.91it/s] 79%|███████▉ | 56/71 [00:11<00:03, 4.91it/s] 80%|████████ | 57/71 [00:11<00:02, 4.91it/s] 82%|████████▏ | 58/71 [00:11<00:02, 4.92it/s] 83%|████████▎ | 59/71 [00:12<00:02, 4.92it/s] 85%|████████▍ | 60/71 [00:12<00:02, 4.92it/s] 86%|████████▌ | 61/71 [00:12<00:02, 4.92it/s] 87%|████████▋ | 62/71 [00:12<00:01, 4.91it/s] 89%|████████▊ | 63/71 [00:12<00:01, 4.91it/s] 90%|█████████ | 64/71 [00:13<00:01, 4.91it/s] 92%|█████████▏| 65/71 [00:13<00:01, 4.91it/s] 93%|█████████▎| 66/71 [00:13<00:01, 4.91it/s] 94%|█████████▍| 67/71 [00:13<00:00, 4.91it/s] 96%|█████████▌| 68/71 [00:13<00:00, 4.91it/s] 97%|█████████▋| 69/71 [00:14<00:00, 4.91it/s] 99%|█████████▊| 70/71 [00:14<00:00, 4.91it/s] 100%|██████████| 71/71 [00:14<00:00, 4.91it/s] 100%|██████████| 71/71 [00:14<00:00, 4.91it/s] 0%| | 0/19 [00:00<?, ?it/s] 5%|▌ | 1/19 [00:00<00:02, 6.27it/s] 11%|█ | 2/19 [00:00<00:02, 6.24it/s] 16%|█▌ | 3/19 [00:00<00:02, 6.23it/s] 21%|██ | 4/19 [00:00<00:02, 6.22it/s] 26%|██▋ | 5/19 [00:00<00:02, 6.22it/s] 32%|███▏ | 6/19 [00:00<00:02, 6.21it/s] 37%|███▋ | 7/19 [00:01<00:01, 6.21it/s] 42%|████▏ | 8/19 [00:01<00:01, 6.21it/s] 47%|████▋ | 9/19 [00:01<00:01, 6.21it/s] 53%|█████▎ | 10/19 [00:01<00:01, 6.20it/s] 58%|█████▊ | 11/19 [00:01<00:01, 6.20it/s] 63%|██████▎ | 12/19 [00:01<00:01, 6.20it/s] 68%|██████▊ | 13/19 [00:02<00:00, 6.19it/s] 74%|███████▎ | 14/19 [00:02<00:00, 6.19it/s] 79%|███████▉ | 15/19 [00:02<00:00, 6.19it/s] 84%|████████▍ | 16/19 [00:02<00:00, 6.19it/s] 89%|████████▉ | 17/19 [00:02<00:00, 6.19it/s] 95%|█████████▍| 18/19 [00:02<00:00, 6.19it/s] 100%|██████████| 19/19 [00:03<00:00, 6.19it/s] 100%|██████████| 19/19 [00:03<00:00, 6.20it/s]
Want to make some of these yourself?
Run this model