← 返回
安全合规 Key 中文

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.
{ "translation": "通过 Gemini 生成 AI 图像,使用 OAuth1 发布至 X (Twitter);支持纯文本或图文推文。" }
zero2ai-hub
安全合规 clawhub v1.0.1 1 版本 99871.6 Key: 需要
★ 0
Stars
📥 778
下载
💾 11
安装
1
版本
#latest

概述

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

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

# 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

ParamDescription
--------------------
--textTweet text (required)
--promptImage generation prompt (optional)
--no-imageSkip image, post text only

Output

Tweet posted; media ID and confirmation logged to stdout.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-30 04:08 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Trading Journal

zero2ai-hub
记录每笔交易的完整背景(逻辑、入场、出场、盈亏、情绪、教训),生成周度与月度业绩报告,并分析盈亏模式...
★ 2 📥 2,952
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,467
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,714