Skip to content

Exa Search API

Exa (formerly Metaphor) is a semantic search engine that uses a large-scale neural network to understand context. It is designed to find high-quality content that traditional keyword search engines might miss.

POST https://llm.siraya.ai/v1/exa

Body

model string Required
Use `exa-search`.
query string Required
The search query.
type string
`keyword`, `neural`, `magic`, or `auto`.
category string
Filter by category (e.g., `company`, `news`, `github`, `pdf`).
numResults integer
Number of results to return (default: 10).
includeText boolean
Whether to include the full text of the pages.
curl https://llm.siraya.ai/v1/exa \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer <API_KEY>" \
  -d '{
    "model": "exa-search",
    "query": "The future of quantum computing",
    "type": "neural",
    "numResults": 5
  }'
import requests

url = "https://llm.siraya.ai/v1/exa"
headers = {"Authorization": "Bearer <API_KEY>"}
data = {
    "model": "exa-search",
    "query": "The future of quantum computing",
    "numResults": 5
}

response = requests.post(url, headers=headers, json=data)
print(response.json())