跳至主要内容
小龙虾小龙虾AI
🤖

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.

下载2.3k
星标3
版本1.0.1
general
安全通过
🔗API

技能说明


name: brave-images description: 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 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

如何使用「Brave Images」?

  1. 打开小龙虾AI(Web 或 iOS App)
  2. 点击上方「立即使用」按钮,或在对话框中输入任务描述
  3. 小龙虾AI 会自动匹配并调用「Brave Images」技能完成任务
  4. 结果即时呈现,支持继续对话优化

相关技能