Xpersona
H

hf-sdxl-image

CLAWHUB · Unverified

Generate an image from a text prompt through the Hugging Face Inference API using stabilityai/stable-diffusion-xl-base-1.0 and the HUGGINGFACE_TOKEN environm...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s173ga2b39rqhtd9xy993f9zzd83kt2m:hf-sdxl-image
  1. Install using `clawhub skill install s173ga2b39rqhtd9xy993f9zzd83kt2m:hf-sdxl-image` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/slippersheepig/hf-sdxl-image before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-slippersheepig-hf-sdxl-image/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

39,556 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: hf-sdxl-image
description: Generate an image from a text prompt through the Hugging Face Inference API using stabilityai/stable-diffusion-xl-base-1.0 and the HUGGINGFACE_TOKEN environment variable. Use when the user asks to generate, draw, create, make, or render an image or illustration from text, especially when they mention Hugging Face, SDXL, or Stable Diffusion XL. Save the generated image to a temporary local path, let OpenClaw send it to the current conversation window, and remove the temporary file after successful delivery unless the user explicitly asks to keep a saved copy.
---

# HF SDXL Image

Generate a single image from a text prompt with the Hugging Face router endpoint. The skill defaults to stabilityai/stable-diffusion-xl-base-1.0 and can be switched to another compatible Hugging Face Inference API model by setting HF_IMAGE_MODEL.

## Chat-oriented workflow

When you ask to generate an image:

1. Convert your request into a prompt.
2. Run `scripts/generate_hf_sdxl.py` with the `--output /tmp/openclaw/` argument.
3. The script saves the image to a temporary path and prints the file path to stdout.
4. Send the image back through the **current conversation provider's required image/file-send format**.
5. After successful delivery, delete the temporary file unless the user explicitly asked to keep it.

## Provider-specific delivery rule

This skill only generates and saves an image file. **It does not define a universal send format.**

When returning the image in chat, always follow the **current session provider's required outbound media format**. Different providers may require different delivery methods, wrappers, or tools. Do **not** assume that simply reading a local file path, pasting a path, or relying on one provider's auto-routing behavior will work on another provider.

Required behavior:

- Detect the current session provider/channel before sending.
- Use that provider's correct media-send path and syntax.
- If the provider requires a provider-specific wrapper or message format for images, use it.
- If the provider does not reliably auto-send images from a local file read, do not rely on that fallback.
- Treat image delivery as provider-specific, not skill-generic.

Examples of what to avoid:

- Do not assume `read` on an image path will always send the image correctly.
- Do not assume Telegram-style or QQ-style delivery rules apply to other providers.
- Do not claim success until the image has actually been sent through the current provider's proper format.

## Strong trigger examples

Use this skill for requests like:

- "生成一张图片:夕阳下的海边小镇"
- "画一张赛博朋克风格的城市夜景"
- "帮我做一张封面图,主题是 AI 和机器人"
- "用 Hugging Face 生成一张可爱的熊在图书馆读书"
- "用 SDXL 出一张未来感海报"
- "create an illustration of a scholar bear reading in a grand library"

## Command

Default delivery workflow:

python3 scripts/generate_hf_sdxl.py "a cozy cyberpunk alley at night, cinematic lighting" --wait-for-model --output /tmp/openclaw/

With a model override:

HF_IMAGE_MO

_meta.json

{
  "ownerId": "kn735cdvgyaexcdwdxdmcsjzwh83jg8m",
  "slug": "hf-sdxl-image",
  "version": "1.1.1",
  "publishedAt": 1775394328569
}

skill-card.md

## Description:

Generates a single image from a text prompt through the Hugging Face Inference API using Stable Diffusion XL, then saves the image locally for delivery through the active chat provider.

This skill is ready for commercial/non-commercial use.

## Publisher:

[slippersheepig](https://clawhub.ai/user/slippersheepig)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers use this skill to generate images from natural-language prompts with Hugging Face-hosted image models. It is suited to chat workflows where the agent creates a temporary image file, sends it using the active provider's image delivery format, and removes the file after successful delivery unless persistence is requested.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Image prompts and the configured Hugging Face token are sent to Hugging Face during generation.

Mitigation: Use a low-privilege HUGGINGFACE_TOKEN and avoid prompts containing sensitive or confidential information.

Risk: Generated images are saved to local storage before delivery.

Mitigation: Use a private temporary output directory for normal chat delivery and delete generated files after successful send unless the user explicitly requested a saved copy.

Risk: Image delivery can fail if the agent assumes a universal local-file send format across chat providers.

Mitigation: Use the active provider's required outbound image or file-send format and only report success after the image has actually been delivered.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/slippersheepig/skills/hf-sdxl-image)
- [Hugging Face Inference API model endpoint](https://router.huggingface.co/hf-inference/models/stabilityai/stable-diffusion-xl-base-1.0)

## Skill Output:

**Output Type(s):** [text, shell commands, files, guidance]

**Output Format:** [Markdown guidance with shell commands; the generation script prints a local image file path to stdout.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires HUGGINGFACE_TOKEN, accepts optional HF_IMAGE_MODEL override, writes an image file to the requested output path, and expects temporary files to be deleted after successful delivery unless the user asks to keep them.]

## Skill Version(s):

1.1.1 (source: server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to hf-sdxl-image and adjacent AI workflows.