微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

Wip Grok

Wip Grok · v1.0.2
安全 unknown 级 作者 parkertoddbrooks 公开目录收录
1.1k 下载 0 安装 3.9k 收藏 6 浏览

简介

Wip Grok

原始描述

xAI Grok API. Search the web, search X, generate images, generate video.

通过你的 Agent 添加

安装目录:wip-grok/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/wip-grok/
Codex CLI~/.codex/skills/wip-grok/
DeepSeek Harness~/.agents/skills/wip-grok/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: wip-grok version: 1.0.2 description: xAI Grok API. Search the web, search X, generate images, generate video. homepage: https://github.com/wipcomputer/wip-grok metadata: category: search,media api_base: https://api.x.ai/v1 capabilities: - api - web-search - x-search - image-generation - image-editing - video-generation dependencies: [] interface: REST openclaw: emoji: "🔍" install: env: - XAI_API_KEY author: name: Parker Todd Brooks

wip-grok

xAI Grok API. Sensor (search) + Actuator (generate). All xAI functions in one tool.

When to Use This Skill

Sensor: Search

Use search_web for:

  • Current information from websites, news, documentation
  • Real-time data (stock prices, weather, recent events)
  • Finding information from specific domains
  • Verifying current facts

Use search_x for:

  • What people are saying on X/Twitter about a topic
  • Trending discussions and social sentiment
  • Real-time reactions to events
  • Posts from specific X handles/users

Actuator: Generate

Use generate_image for:

  • Creating images from text descriptions
  • Generating multiple variations of a concept
  • Creating images with specific aspect ratios

Use edit_image for:

  • Modifying existing images with natural language
  • Style transfer, color changes, adding/removing elements
  • Combining up to 3 source images

Use generate_video for:

  • Creating short video clips (1-15 seconds)
  • Animating still images (image-to-video)
  • Text-to-video generation

Do NOT Use For

  • Fetching a specific X post by URL (use wip-x fetch_post instead)
  • Posting tweets (use wip-x post_tweet)
  • Reading bookmarks (use wip-x get_bookmarks)
  • Historical facts that won't change
  • Mathematical calculations

API Reference

search_web(options)

const result = await search_web({ query: "latest news about AI" });
// result: { content, citations, usage, raw_response }

Options: query (required), model, allowed_domains (max 5), excluded_domains (max 5), enable_image_understanding

search_x(options)

const result = await search_x({ query: "AI thoughts", allowed_x_handles: ["elonmusk"] });

Options: query (required), model, allowed_x_handles (max 10), excluded_x_handles (max 10), from_date, to_date, enable_image_understanding, enable_video_understanding

generate_image(options)

const result = await generate_image({ prompt: "a red cube", n: 1, aspect_ratio: "1:1" });
// result: { images: [{ url, revised_prompt }] }

Options: prompt (required), model, n (1-10), response_format ("url"|"b64_json"), aspect_ratio

Cost: $0.02 per image. URLs are temporary ... download promptly.

edit_image(options)

const result = await edit_image({ prompt: "make it blue", image: "https://..." });

Options: prompt (required), image (required, URL or file path or base64), model, n, response_format

Cost: $0.022 per image (input + output).

generate_video(options)

const { request_id } = await generate_video({ prompt: "sunset timelapse", duration: 10 });
const result = await wait_for_video({ request_id });
// result: { status: "completed", url: "https://..." }

Options: prompt (required), model, duration (1-15 sec), resolution ("480p"|"720p"), aspect_ratio, image (seed image URL)

Cost: $0.05/sec at 480p, $0.07/sec at 720p. URLs are temporary.

poll_video(options) / wait_for_video(options)

Poll or wait for async video generation. wait_for_video is a convenience wrapper that polls until complete or timeout.

Troubleshooting

"XAI_API_KEY not found"

Set via environment or 1Password: op://Agent Secrets/X API/api key

Slow search responses

Grok reasoning models can take 30-60+ seconds. This is normal.

Temporary URLs

Image and video URLs expire. Download or process them immediately after receiving.

API Documentation

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill