fofr
/
zavy-chroma-xl-v7
ZavyChromaXL v7, a high contrast and colorful SDXL fine-tune
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/zavy-chroma-xl-v7 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/zavy-chroma-xl-v7:134838df612ccc819edb1f83dfcb7e7bf2fa5b78f2bc7e21e6313a6a8e436d7a",
{
input: {
width: 1024,
height: 1024,
prompt: "glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot 'freak' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof",
sampler: "Default",
scheduler: "Default",
lora_strength: 1,
output_format: "webp",
output_quality: 80,
negative_prompt: "",
number_of_images: 1
}
}
);
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/zavy-chroma-xl-v7 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/zavy-chroma-xl-v7:134838df612ccc819edb1f83dfcb7e7bf2fa5b78f2bc7e21e6313a6a8e436d7a",
input={
"width": 1024,
"height": 1024,
"prompt": "glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot 'freak' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof",
"sampler": "Default",
"scheduler": "Default",
"lora_strength": 1,
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
}
)
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/zavy-chroma-xl-v7 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": "134838df612ccc819edb1f83dfcb7e7bf2fa5b78f2bc7e21e6313a6a8e436d7a",
"input": {
"width": 1024,
"height": 1024,
"prompt": "glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot \'freak\' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof",
"sampler": "Default",
"scheduler": "Default",
"lora_strength": 1,
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/fofr/zavy-chroma-xl-v7@sha256:134838df612ccc819edb1f83dfcb7e7bf2fa5b78f2bc7e21e6313a6a8e436d7a \
-i 'width=1024' \
-i 'height=1024' \
-i $'prompt="glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot \'freak\' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof"' \
-i 'sampler="Default"' \
-i 'scheduler="Default"' \
-i 'lora_strength=1' \
-i 'output_format="webp"' \
-i 'output_quality=80' \
-i 'negative_prompt=""' \
-i 'number_of_images=1'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/fofr/zavy-chroma-xl-v7@sha256:134838df612ccc819edb1f83dfcb7e7bf2fa5b78f2bc7e21e6313a6a8e436d7a
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "width": 1024, "height": 1024, "prompt": "glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot \'freak\' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof", "sampler": "Default", "scheduler": "Default", "lora_strength": 1, "output_format": "webp", "output_quality": 80, "negative_prompt": "", "number_of_images": 1 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.0087. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-06-08T22:52:20.775400Z",
"created_at": "2024-06-08T22:52:14.836000Z",
"data_removed": false,
"error": null,
"id": "e8hryykcehrgp0cfz86vkcq6jg",
"input": {
"width": 1024,
"height": 1024,
"prompt": "glamour portrait photo, macro, a captivating vibrant dark green-neon capturing the essence of a cyborg Bedouin sorcerer in fight stance, defying expectations by conjuring a whimsical robot 'freak' from an oversized sedge hat. ethereal, smoky backdrop. throwing a translucent orange/tanslucent purple/black iaidow, weapon, katana, holding sword, 100mm f/2.8 macro lens, atmospheric haze, Film grain, cinematic film still, shallow depth of field, highly detailed, high budget, cinemascope, moody, epic, OverallDetail, gorgeous, 2000s vintage RAW photo, photorealistic, candid camera, color graded cinematic, eye catchlights, atmospheric lighting, skin pores, imperfections, natural, shallow dof",
"sampler": "Default",
"scheduler": "Default",
"lora_strength": 1,
"output_format": "webp",
"output_quality": 80,
"negative_prompt": "",
"number_of_images": 1
},
"logs": "Random seed set to: 3530091912\n==============================\nGeneration settings\nSampler: dpmpp_3m_sde_gpu\nScheduler: karras\nSteps: 20\nCFG: 6.0\nLORA: No lora. Lora strength has no effect\n==============================\nRunning workflow\ngot prompt\nExecuting node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode\nExecuting node 3, title: KSampler, class type: KSampler\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:03, 5.27it/s]\n 10%|█ | 2/20 [00:00<00:03, 5.19it/s]\n 15%|█▌ | 3/20 [00:00<00:03, 5.18it/s]\n 20%|██ | 4/20 [00:00<00:03, 5.19it/s]\n 25%|██▌ | 5/20 [00:00<00:02, 5.19it/s]\n 30%|███ | 6/20 [00:01<00:02, 5.16it/s]\n 35%|███▌ | 7/20 [00:01<00:02, 5.14it/s]\n 40%|████ | 8/20 [00:01<00:02, 5.13it/s]\n 45%|████▌ | 9/20 [00:01<00:02, 5.13it/s]\n 50%|█████ | 10/20 [00:01<00:01, 5.14it/s]\n 55%|█████▌ | 11/20 [00:02<00:01, 5.14it/s]\n 60%|██████ | 12/20 [00:02<00:01, 5.14it/s]\n 65%|██████▌ | 13/20 [00:02<00:01, 5.15it/s]\n 70%|███████ | 14/20 [00:02<00:01, 5.16it/s]\n 75%|███████▌ | 15/20 [00:02<00:00, 5.16it/s]\n 80%|████████ | 16/20 [00:03<00:00, 5.16it/s]\n 85%|████████▌ | 17/20 [00:03<00:00, 5.17it/s]\n 90%|█████████ | 18/20 [00:03<00:00, 5.17it/s]\n 95%|█████████▌| 19/20 [00:03<00:00, 5.20it/s]\n100%|██████████| 20/20 [00:03<00:00, 5.22it/s]\n100%|██████████| 20/20 [00:03<00:00, 5.17it/s]\nExecuting node 8, title: VAE Decode, class type: VAEDecode\nExecuting node 9, title: Save Image, class type: SaveImage\nPrompt executed in 4.34 seconds\noutputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nR8__00001_.png",
"metrics": {
"predict_time": 5.899627,
"total_time": 5.9394
},
"output": [
"https://replicate.delivery/pbxt/8KC7hjAlplYfZKwLfflgo6zUXQGHBnIpIEehVb2bphGNqkyLB/R8__00001_.webp"
],
"started_at": "2024-06-08T22:52:14.875773Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/e8hryykcehrgp0cfz86vkcq6jg",
"cancel": "https://api.replicate.com/v1/predictions/e8hryykcehrgp0cfz86vkcq6jg/cancel"
},
"version": "23f278c6ea153def783da0528d52cd0d75703e956776877ece8bbb7b17bfac8c"
}
Random seed set to: 3530091912
==============================
Generation settings
Sampler: dpmpp_3m_sde_gpu
Scheduler: karras
Steps: 20
CFG: 6.0
LORA: No lora. Lora strength has no effect
==============================
Running workflow
got prompt
Executing node 6, title: CLIP Text Encode (Prompt), class type: CLIPTextEncode
Executing node 3, title: KSampler, class type: KSampler
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:03, 5.27it/s]
10%|█ | 2/20 [00:00<00:03, 5.19it/s]
15%|█▌ | 3/20 [00:00<00:03, 5.18it/s]
20%|██ | 4/20 [00:00<00:03, 5.19it/s]
25%|██▌ | 5/20 [00:00<00:02, 5.19it/s]
30%|███ | 6/20 [00:01<00:02, 5.16it/s]
35%|███▌ | 7/20 [00:01<00:02, 5.14it/s]
40%|████ | 8/20 [00:01<00:02, 5.13it/s]
45%|████▌ | 9/20 [00:01<00:02, 5.13it/s]
50%|█████ | 10/20 [00:01<00:01, 5.14it/s]
55%|█████▌ | 11/20 [00:02<00:01, 5.14it/s]
60%|██████ | 12/20 [00:02<00:01, 5.14it/s]
65%|██████▌ | 13/20 [00:02<00:01, 5.15it/s]
70%|███████ | 14/20 [00:02<00:01, 5.16it/s]
75%|███████▌ | 15/20 [00:02<00:00, 5.16it/s]
80%|████████ | 16/20 [00:03<00:00, 5.16it/s]
85%|████████▌ | 17/20 [00:03<00:00, 5.17it/s]
90%|█████████ | 18/20 [00:03<00:00, 5.17it/s]
95%|█████████▌| 19/20 [00:03<00:00, 5.20it/s]
100%|██████████| 20/20 [00:03<00:00, 5.22it/s]
100%|██████████| 20/20 [00:03<00:00, 5.17it/s]
Executing node 8, title: VAE Decode, class type: VAEDecode
Executing node 9, title: Save Image, class type: SaveImage
Prompt executed in 4.34 seconds
outputs: {'9': {'images': [{'filename': 'R8__00001_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
R8__00001_.png
This example was created by a different version, fofr/zavy-chroma-xl-v7:23f278c6.
Examples
Run time and cost
This model costs approximately $0.0087 to run on Replicate, or 114 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 9 seconds. The predict time for this model varies significantly based on the inputs.