← 返回
内容创作 Key

Brave Images

Search for images using Brave Search API. Use when you need to find images, pictures, photos, or visual content on any topic. Requires BRAVE_API_KEY environment variable.
通过 Brave Search API 搜索图片。适用于查找任何主题的图片、照片或视觉内容。需要环境变量 BRAVE_API_KEY。
zats
内容创作 clawhub v1.0.1 1 版本 99231 Key: 需要
★ 4
Stars
📥 3,404
下载
💾 516
安装
1
版本
#latest

概述

Brave Image Search

Search images via Brave Search API.

Usage

curl -s "https://api.search.brave.com/res/v1/images/search?q=QUERY&count=COUNT" \
  -H "X-Subscription-Token: $BRAVE_API_KEY"

Parameters

ParamRequiredDescription
------------------------------
qyesSearch query (URL-encoded)
countnoResults count (1-100, default 20)
countryno2-letter code (US, DE, IL) for region bias
search_langnoLanguage code (en, de, he)
safesearchnooff, moderate, strict (default: moderate)

Response Parsing

Key fields in each result:

  • results[].title — Image title
  • results[].properties.url — Full image URL
  • results[].thumbnail.src — Thumbnail URL
  • results[].source — Source website
  • results[].properties.width/height — Dimensions

Example

Search for "sunset beach" images in Israel:

curl -s "https://api.search.brave.com/res/v1/images/search?q=sunset%20beach&count=5&country=IL" \
  -H "X-Subscription-Token: $BRAVE_API_KEY"

Then extract from JSON response:

  • Thumbnail: .results[0].thumbnail.src
  • Full image: .results[0].properties.url

Delivering Results

When presenting image search results:

  1. Send images directly to the user (don't just list URLs)
  2. Use results[].properties.url for full images or results[].thumbnail.src for thumbnails
  3. Include image title as caption
  4. If more results exist than shown, tell the user (e.g., "Found 20 images, showing 3 — want more?")

Example flow:

User: "find me pictures of sunsets"
→ Search with count=10
→ Send 3-5 images with captions
→ "Found 10 sunset images, showing 5. Want to see more?"

Notes

  • URL-encode query strings (spaces → %20)
  • API key from env: $BRAVE_API_KEY
  • Respect rate limits per subscription tier

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 11:38 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Perplexity

zats
通过Perplexity API进行AI驱动的网络搜索,返回带引用的可靠响应,支持批量查询。
★ 28 📥 19,158
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 857 📥 199,252
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,129