Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
re-mix-1 /sdxl-lightning-8step:a13d8c22
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run re-mix-1/sdxl-lightning-8step using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"re-mix-1/sdxl-lightning-8step:a13d8c2278aa031d65892177b7b08694bfe629e1e9c0f8b0d59cbaf62bf71fa7",
{
input: {
width: 1024,
height: 1024,
prompt: "A photo of a girl smiling during a sunset, with lightnings in the background",
scheduler: "K_EULER",
num_outputs: 1,
guidance_scale: 0,
negative_prompt: "worst quality, low quality",
num_inference_steps: 8
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run re-mix-1/sdxl-lightning-8step using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"re-mix-1/sdxl-lightning-8step:a13d8c2278aa031d65892177b7b08694bfe629e1e9c0f8b0d59cbaf62bf71fa7",
input={
"width": 1024,
"height": 1024,
"prompt": "A photo of a girl smiling during a sunset, with lightnings in the background",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 0,
"negative_prompt": "worst quality, low quality",
"num_inference_steps": 8
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variableexport REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run re-mix-1/sdxl-lightning-8step 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": "a13d8c2278aa031d65892177b7b08694bfe629e1e9c0f8b0d59cbaf62bf71fa7",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A photo of a girl smiling during a sunset, with lightnings in the background",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 0,
"negative_prompt": "worst quality, low quality",
"num_inference_steps": 8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-04-01T23:23:18.337109Z",
"created_at": "2024-04-01T23:21:02.164745Z",
"data_removed": false,
"error": null,
"id": "5lqfxqtbfcvkyu72eevmvg5ru4",
"input": {
"width": 1024,
"height": 1024,
"prompt": "A photo of a girl smiling during a sunset, with lightnings in the background",
"scheduler": "K_EULER",
"num_outputs": 1,
"guidance_scale": 0,
"negative_prompt": "worst quality, low quality",
"num_inference_steps": 8
},
"logs": "Using seed: 2055220104\nPrompt: A photo of a girl smiling during a sunset, with lightnings in the background\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 5.34it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 10.54it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 13.04it/s]\n 88%|████████▊ | 7/8 [00:00<00:00, 13.89it/s]\n100%|██████████| 8/8 [00:00<00:00, 12.72it/s]",
"metrics": {
"predict_time": 2.011964,
"total_time": 136.172364
},
"output": [
"https://replicate.delivery/pbxt/dZuxZWcNOLbLHR1XDmHhvaFtf9HrAmUdGRdzPB0mksflPPmSA/out-0.png"
],
"started_at": "2024-04-01T23:23:16.325145Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/5lqfxqtbfcvkyu72eevmvg5ru4",
"cancel": "https://api.replicate.com/v1/predictions/5lqfxqtbfcvkyu72eevmvg5ru4/cancel"
},
"version": "a13d8c2278aa031d65892177b7b08694bfe629e1e9c0f8b0d59cbaf62bf71fa7"
}
Using seed: 2055220104
Prompt: A photo of a girl smiling during a sunset, with lightnings in the background
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:01, 5.34it/s]
38%|███▊ | 3/8 [00:00<00:00, 10.54it/s]
62%|██████▎ | 5/8 [00:00<00:00, 13.04it/s]
88%|████████▊ | 7/8 [00:00<00:00, 13.89it/s]
100%|██████████| 8/8 [00:00<00:00, 12.72it/s]