Install any skill in seconds. Free to start, no credit card required.
Get Started Free →taracodlabs/stable-diffusion-image-generation
Generate images via Stable Diffusion (HuggingFace Diffusers, local/API)
Passed 18 of 22 test cases with the skill, and 16 of 22 without it.
and 3 more in the full report
4 fixed14 passed either way2 still failing2 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 4 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write Python code that takes a list of four PIL image objects returned from a diffusers pipeline call and writes them to disk with 1-based indexed filenames like variation_1.png.
| Checked | Without skill | With skill |
|---|---|---|
| The loop formats filenames as variation_{i+1}.png. | Missed | Passed |
| The loop executes the .save() method on each PIL image. | Passed | Passed |
The instructions your model reads when the skill loads.
Generate images from text prompts using Stable Diffusion locally via HuggingFace Diffusers, or via the HuggingFace Inference API for zero-install operation.
import requests, base64, os
def generate_image_api(prompt, output="output.png"):
api_url = "https://api-inference.huggingface.co/models/stabilityai/stable-diffusion-xl-base-1.0"
headers = {"Authorization": f"Bearer {os.environ['HF_TOKEN']}"}
resp = requests.post(api_url, headers=headers, json={"inputs": prompt}, timeout=120)
resp.raise_for_status()
with open(output, "wb") as f:
f.write(resp.content)
print(f"Saved: {output}")
# Set HF_TOKEN in env: huggingface.co/settings/tokens
generate_image_api("a futuristic city at night, cyberpunk style, neon lights, 8k")
# pip install diffusers transformers accelerate torch
from diffusers import StableDiffusionXLPipeline
import torch
pipe = StableDiffusionXLPipeline.from_pretrained(
test cases passed, vs 16 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.