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.
fofr /sdxl-cross-section:26d3c19f
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export 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 fofr/sdxl-cross-section using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-cross-section:26d3c19f09b63925b3d974d0934cbdf33e7243189f7ff3e281b00930f648fb1d",
{
input: {
width: 1152,
height: 768,
prompt: "A TOK cross section of a cyberpunk car, detailed, sharp, unreal engine",
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.9,
negative_prompt: "cropped, text, soft, blurry",
prompt_strength: 0.8,
num_inference_steps: 40
}
}
);
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 variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run fofr/sdxl-cross-section using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-cross-section:26d3c19f09b63925b3d974d0934cbdf33e7243189f7ff3e281b00930f648fb1d",
input={
"width": 1152,
"height": 768,
"prompt": "A TOK cross section of a cyberpunk car, detailed, sharp, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.9,
"negative_prompt": "cropped, text, soft, blurry",
"prompt_strength": 0.8,
"num_inference_steps": 40
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run fofr/sdxl-cross-section 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": "26d3c19f09b63925b3d974d0934cbdf33e7243189f7ff3e281b00930f648fb1d",
"input": {
"width": 1152,
"height": 768,
"prompt": "A TOK cross section of a cyberpunk car, detailed, sharp, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.9,
"negative_prompt": "cropped, text, soft, blurry",
"prompt_strength": 0.8,
"num_inference_steps": 40
}
}' \
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": "2023-08-20T22:34:42.452268Z",
"created_at": "2023-08-20T22:34:31.633907Z",
"data_removed": false,
"error": null,
"id": "ehzejtlbf7oietmy6da2vytx7u",
"input": {
"width": 1152,
"height": 768,
"prompt": "A TOK cross section of a cyberpunk car, detailed, sharp, unreal engine",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.9,
"negative_prompt": "cropped, text, soft, blurry",
"prompt_strength": 0.8,
"num_inference_steps": 40
},
"logs": "Using seed: 56318\nPrompt: A <s0><s1> cross section of a cyberpunk car, detailed, sharp, unreal engine\ntxt2img mode\n 0%| | 0/36 [00:00<?, ?it/s]\n 3%|▎ | 1/36 [00:00<00:08, 4.13it/s]\n 6%|▌ | 2/36 [00:00<00:08, 4.22it/s]\n 8%|▊ | 3/36 [00:00<00:07, 4.24it/s]\n 11%|█ | 4/36 [00:00<00:07, 4.25it/s]\n 14%|█▍ | 5/36 [00:01<00:07, 4.27it/s]\n 17%|█▋ | 6/36 [00:01<00:07, 4.28it/s]\n 19%|█▉ | 7/36 [00:01<00:06, 4.28it/s]\n 22%|██▏ | 8/36 [00:01<00:06, 4.29it/s]\n 25%|██▌ | 9/36 [00:02<00:06, 4.29it/s]\n 28%|██▊ | 10/36 [00:02<00:06, 4.29it/s]\n 31%|███ | 11/36 [00:02<00:05, 4.29it/s]\n 33%|███▎ | 12/36 [00:02<00:05, 4.29it/s]\n 36%|███▌ | 13/36 [00:03<00:05, 4.29it/s]\n 39%|███▉ | 14/36 [00:03<00:05, 4.29it/s]\n 42%|████▏ | 15/36 [00:03<00:04, 4.29it/s]\n 44%|████▍ | 16/36 [00:03<00:04, 4.29it/s]\n 47%|████▋ | 17/36 [00:03<00:04, 4.29it/s]\n 50%|█████ | 18/36 [00:04<00:04, 4.29it/s]\n 53%|█████▎ | 19/36 [00:04<00:03, 4.29it/s]\n 56%|█████▌ | 20/36 [00:04<00:03, 4.29it/s]\n 58%|█████▊ | 21/36 [00:04<00:03, 4.29it/s]\n 61%|██████ | 22/36 [00:05<00:03, 4.29it/s]\n 64%|██████▍ | 23/36 [00:05<00:03, 4.29it/s]\n 67%|██████▋ | 24/36 [00:05<00:02, 4.29it/s]\n 69%|██████▉ | 25/36 [00:05<00:02, 4.29it/s]\n 72%|███████▏ | 26/36 [00:06<00:02, 4.29it/s]\n 75%|███████▌ | 27/36 [00:06<00:02, 4.29it/s]\n 78%|███████▊ | 28/36 [00:06<00:01, 4.28it/s]\n 81%|████████ | 29/36 [00:06<00:01, 4.29it/s]\n 83%|████████▎ | 30/36 [00:07<00:01, 4.28it/s]\n 86%|████████▌ | 31/36 [00:07<00:01, 4.28it/s]\n 89%|████████▉ | 32/36 [00:07<00:00, 4.29it/s]\n 92%|█████████▏| 33/36 [00:07<00:00, 4.28it/s]\n 94%|█████████▍| 34/36 [00:07<00:00, 4.27it/s]\n 97%|█████████▋| 35/36 [00:08<00:00, 4.27it/s]\n100%|██████████| 36/36 [00:08<00:00, 4.27it/s]\n100%|██████████| 36/36 [00:08<00:00, 4.28it/s]\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 5.25it/s]\n 50%|█████ | 2/4 [00:00<00:00, 5.39it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 5.44it/s]\n100%|██████████| 4/4 [00:00<00:00, 5.46it/s]\n100%|██████████| 4/4 [00:00<00:00, 5.43it/s]",
"metrics": {
"predict_time": 10.810575,
"total_time": 10.818361
},
"output": [
"https://replicate.delivery/pbxt/hT6fgA2XdrwmYKdochaQDiefueycPz06fJ1L8oIh4CzJgjgLC/out-0.png"
],
"started_at": "2023-08-20T22:34:31.641693Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ehzejtlbf7oietmy6da2vytx7u",
"cancel": "https://api.replicate.com/v1/predictions/ehzejtlbf7oietmy6da2vytx7u/cancel"
},
"version": "26d3c19f09b63925b3d974d0934cbdf33e7243189f7ff3e281b00930f648fb1d"
}
Using seed: 56318
Prompt: A <s0><s1> cross section of a cyberpunk car, detailed, sharp, unreal engine
txt2img mode
0%| | 0/36 [00:00<?, ?it/s]
3%|▎ | 1/36 [00:00<00:08, 4.13it/s]
6%|▌ | 2/36 [00:00<00:08, 4.22it/s]
8%|▊ | 3/36 [00:00<00:07, 4.24it/s]
11%|█ | 4/36 [00:00<00:07, 4.25it/s]
14%|█▍ | 5/36 [00:01<00:07, 4.27it/s]
17%|█▋ | 6/36 [00:01<00:07, 4.28it/s]
19%|█▉ | 7/36 [00:01<00:06, 4.28it/s]
22%|██▏ | 8/36 [00:01<00:06, 4.29it/s]
25%|██▌ | 9/36 [00:02<00:06, 4.29it/s]
28%|██▊ | 10/36 [00:02<00:06, 4.29it/s]
31%|███ | 11/36 [00:02<00:05, 4.29it/s]
33%|███▎ | 12/36 [00:02<00:05, 4.29it/s]
36%|███▌ | 13/36 [00:03<00:05, 4.29it/s]
39%|███▉ | 14/36 [00:03<00:05, 4.29it/s]
42%|████▏ | 15/36 [00:03<00:04, 4.29it/s]
44%|████▍ | 16/36 [00:03<00:04, 4.29it/s]
47%|████▋ | 17/36 [00:03<00:04, 4.29it/s]
50%|█████ | 18/36 [00:04<00:04, 4.29it/s]
53%|█████▎ | 19/36 [00:04<00:03, 4.29it/s]
56%|█████▌ | 20/36 [00:04<00:03, 4.29it/s]
58%|█████▊ | 21/36 [00:04<00:03, 4.29it/s]
61%|██████ | 22/36 [00:05<00:03, 4.29it/s]
64%|██████▍ | 23/36 [00:05<00:03, 4.29it/s]
67%|██████▋ | 24/36 [00:05<00:02, 4.29it/s]
69%|██████▉ | 25/36 [00:05<00:02, 4.29it/s]
72%|███████▏ | 26/36 [00:06<00:02, 4.29it/s]
75%|███████▌ | 27/36 [00:06<00:02, 4.29it/s]
78%|███████▊ | 28/36 [00:06<00:01, 4.28it/s]
81%|████████ | 29/36 [00:06<00:01, 4.29it/s]
83%|████████▎ | 30/36 [00:07<00:01, 4.28it/s]
86%|████████▌ | 31/36 [00:07<00:01, 4.28it/s]
89%|████████▉ | 32/36 [00:07<00:00, 4.29it/s]
92%|█████████▏| 33/36 [00:07<00:00, 4.28it/s]
94%|█████████▍| 34/36 [00:07<00:00, 4.27it/s]
97%|█████████▋| 35/36 [00:08<00:00, 4.27it/s]
100%|██████████| 36/36 [00:08<00:00, 4.27it/s]
100%|██████████| 36/36 [00:08<00:00, 4.28it/s]
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:00, 5.25it/s]
50%|█████ | 2/4 [00:00<00:00, 5.39it/s]
75%|███████▌ | 3/4 [00:00<00:00, 5.44it/s]
100%|██████████| 4/4 [00:00<00:00, 5.46it/s]
100%|██████████| 4/4 [00:00<00:00, 5.43it/s]