返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

skill-x-post-ai-image

Generate an AI image via Gemini and post it to X (Twitter) using OAuth1. Supports text-only or text+image tweets.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
354
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

skill-x-post-ai-image

# X Post with AI-Generated Image Generate a Gemini AI image from a text prompt, compress it, and post it as a tweet — all in one command. ## Prerequisites - `xurl` CLI (X/Twitter auth) — see xurl skill - `GEMINI_API_KEY` env var - `nano-banana-pro` skill installed (OpenClaw) - `uv` Python runner ## Setup ```bash export GEMINI_API_KEY="your-gemini-api-key" export X_CONSUMER_KEY="..." export X_CONSUMER_SECRET="..." export X_ACCESS_TOKEN="..." export X_ACCESS_TOKEN_SECRET="..." ``` ## Usage ```bash # 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 ``` ## How it works 1. Calls Gemini image generation with prompt → PNG 2. Compresses + resizes to 1200×675 JPEG (Twitter optimal) 3. Uploads via Twitter media API (OAuth1) 4. Posts tweet with media via `xurl` ## Inputs | Param | Description | |-------|-------------| | `--text` | Tweet text (required) | | `--prompt` | Image generation prompt (optional) | | `--no-image` | Skip image, post text only | ## Output Tweet posted; media ID and confirmation logged to stdout.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 skill-x-post-ai-image-1776288579 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 skill-x-post-ai-image-1776288579 技能

通过命令行安装

skillhub install skill-x-post-ai-image-1776288579

下载

⬇ 下载 skill-x-post-ai-image v1.0.1(免费)

文件大小: 3.04 KB | 发布时间: 2026-4-16 16:36

v1.0.1 最新 2026-4-16 16:36
- No changes detected in this version.
- Functionality, documentation, and setup remain the same as the previous release.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部