For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DiscordGet API Key
  • Getting Started
    • Overview
    • Quickstart
    • Errors
    • Pricing
  • Chat
    • Overview
    • Chat with Image, Video, and Audio
    • Function Calling
    • Models
  • Vision
    • Overview
    • Rate Limits
    • Pricing
    • MCP Server
    • Video Management
    • Video Group Management
    • Video Search
    • Video QA
    • Clip Generation
    • Metadata Tagging
    • Image Management
    • Image Search
  • Research
    • Overview
    • Streaming
    • Reasoning Steps
    • Web Search
    • Structured Output
    • Parallel Thinking
    • Best Practices
    • Errors
    • Examples
  • Speech
    • Overview
    • Audio Transcription
    • Speech Translation
    • Speech-to-Speech Translation
  • Resources
    • FAQs
    • Changelog
    • System Status
LogoLogo
DiscordGet API Key
On this page
  • Prerequisites
  • Search Images
  • Endpoint
  • Request
  • Bash
  • Python
  • Parameters
  • Response
  • Use Cases
Vision

Image Search

Was this page helpful?
Previous

Upload Video

Next
Built with

The Image Search API allows you to search through your indexed images using natural language queries. Images must be uploaded with index: true to be searchable.

Prerequisites

Before using Image Search, ensure your images have been successfully indexed:

  1. Upload images with index=true using the /v1/images/upload endpoint
  2. Wait for indexing to complete

Search Images

Search through indexed images using natural language descriptions.

Endpoint

  • POST /v1/images/search

Request

Bash

$curl -X POST https://vision-agent.api.reka.ai/v1/images/search \
> -H "X-Api-Key: YOUR_API_KEY" \
> -H "Content-Type: application/json" \
> -d '{
> "query": "a red car",
> "max_results": 10,
> "threshold": 0.5
> }'

Python

1import requests
2
3url = f"{BASE_URL}/v1/images/search"
4query = "a red car"
5limit = 10
6payload = {
7 "query": query,
8 "max_results": limit,
9 "threshold": threshold
10}
11headers = {
12 "X-Api-Key": REKA_API_KEY
13}
14response = requests.post(url, json=payload, headers=headers)
15if response.status_code == 200:
16 result = response.json()
17 print("Search images successful:", result)
18 result
19else:
20 raise ValueError(f"Error: {response.status_code} {response.text}")

Parameters

  • query (required): Natural language search query describing the image content you’re looking for
  • max_results (optional): Maximum number of results to return (default: 10)
  • threshold (optional): Minimum similarity threshold for results (0-1 scale)

Response

Returns an array of images matching the search query, ranked by relevance. Each result includes:

  • image_id: Unique identifier for the image
  • image_url: URL to access the image
  • score: Relevance score (0-1 scale)

Use Cases

Image search is useful for:

  • Content discovery: Find specific images in large collections
  • Visual cataloging: Search product images by description
  • Media management: Locate images based on visual content
  • Quality control: Find images matching specific criteria