Install
openclaw skills install skill-x-post-ai-imageGenerate an AI image via Gemini and post it to X (Twitter) using OAuth1. Supports text-only or text+image tweets.
openclaw skills install skill-x-post-ai-imageGenerate a Gemini AI image from a text prompt, compress it, and post it as a tweet — all in one command.
xurl CLI (X/Twitter auth) — see xurl skillGEMINI_API_KEY env varnano-banana-pro skill installed (OpenClaw)uv Python runnerexport GEMINI_API_KEY="your-gemini-api-key"
export X_CONSUMER_KEY="..."
export X_CONSUMER_SECRET="..."
export X_ACCESS_TOKEN="..."
export X_ACCESS_TOKEN_SECRET="..."
# Post tweet with AI-generated image
python3 scripts/post_with_image.py \
--text "Your tweet text here" \
--prompt "AI image prompt — describe the visual"
# Text-only tweet
python3 scripts/post_with_image.py \
--text "Your tweet text" \
--no-image
xurl| Param | Description |
|---|---|
--text | Tweet text (required) |
--prompt | Image generation prompt (optional) |
--no-image | Skip image, post text only |
Tweet posted; media ID and confirmation logged to stdout.