跳到正文
Skillpedia
图片与图标260k · #506

gif-search

它能做什么

它搜索 Tenor GIF 服务,返回链接,或下载你选择的 GIF。适合需要为聊天或内容配上表情 GIF 的人。

适用场景

  • ✓你想在聊天消息中发送一个表情 GIF 的时候。
  • ✓你想下载 GIF 文件用于文档或帖子的时候。
  • ✓你想查看一份包含标题和链接的 GIF 选项列表的时候。

技能链接

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/media/gif-search/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/media/gif-search/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我找一个适合团队上线庆祝的 GIF,并下载排名第一的结果。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用你的密钥调用 Tenor 搜索 API,用 jq 读取结果,然后用 curl 分享链接或下载你选择的文件。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

GIF Search (Tenor API)

Search and download GIFs directly via the Tenor API using curl. No extra tools needed.

When to use

Useful for finding reaction GIFs, creating visual content, and sending GIFs in chat.

Setup

Set your Tenor API key in your environment (add to ${HERMES_HOME:-~/.hermes}/.env):

TENOR_API_KEY=your_key_here

Get a free API key at https://developers.google.com/tenor/guides/quickstart — the Google Cloud Console Tenor API key is free and has generous rate limits.

Prerequisites

  • curl and jq (both standard on macOS/Linux)
  • TENOR_API_KEY environment variable

Search for GIFs

# Search and get GIF URLs
curl -s "https://tenor.googleapis.com/v2/search?q=thumbs+up&limit=5&key=${TENOR_API_KEY}" | jq -r '.results[].media_formats.gif.url'

# Get smaller/preview versions
curl -s "https://tenor.googleapis.com/v2/search?q=nice+work&limit=3&key=${TENOR_API_KEY}" | jq -r '.results[].media_formats.tinygif.url'

Download a GIF

# Search and download the top result
URL=$(curl -s "https://tenor.googleapis.com/v2/search?q=celebration&limit=1&key=${TENOR_API_KEY}" | jq -r '.results[0].media_formats.gif.url')
curl -sL "$URL" -o celebration.gif

Get Full Metadata

curl -s "https://tenor.googleapis.com/v2/search?q=cat&limit=3&key=${TENOR_API_KEY}" | jq '.results[] | {title: .title, url: .media_formats.gif.url, preview: .media_formats.tinygif.url, dimensions: .media_formats.gif.dims}'

API Parameters

Parameter Description
q Search query (URL-encode spaces as +)
limit Max results (1-50, default 20)
key API key (from $TENOR_API_KEY env var)
media_filter Filter formats: gif, tinygif, mp4, tinymp4, webm
contentfilter Safety: off, low, medium, high
locale Language: en_US, es, fr, etc.

Available Media Formats

Each result has multiple formats under .media_formats:

Format Use case
gif Full quality GIF
tinygif Small preview GIF
mp4 Video version (smaller file size)
tinymp4 Small preview video
webm WebM video
nanogif Tiny thumbnail

Notes

  • URL-encode the query: spaces as +, special chars as %XX
  • For sending in chat, tinygif URLs are lighter weight
  • GIF URLs can be used directly in markdown: ![alt](url)
常见问题

需要密钥吗?

需要。你需要从 Google 开发者快速入门获取一个免费的 Tenor API 密钥,并保存到你的 Hermes 环境文件中。

需要什么工具?

curl 和 jq,它们在 macOS 和 Linux 上是标准配置。

能获取 GIF 的较小版本吗?

可以。技能展示了如何从同一搜索结果中获取较小的预览格式。

详情

作者的原始描述

Search/download GIFs from Tenor via curl + jq.

repo: NousResearch/hermes-agent

热度

GitHub 星标
260k
排名
#506
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能