Brave LLM Context

https://api.sandbase.ai/v1/api/brave/llm-context

LLM Context from Brave. Returns the official Brave API response unchanged.

Price
$0.0075USD / callFirst 100 calls per day free (shared per organization)
Method
POST
Response
JSON
Parameters
1 required · 15 optional
Production route

Try the model

Playground

Open playground
Input
The mode to use to determine the threshold for including content in context. Allowed values: disabled, strict, lenient, balanced.
150
The maximum number of search results considered to select the LLM context data. The default is 20 and the maximum is 50. Range: 1 to 50.
The search query country, where the results come from. The country string is limited to 2 character country codes of supported countries. Allowed values: AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL.
Whether to enable local recall. Not setting this value means auto-detect: local recall is used if a location is provided ( X-Loc-Lat with X-Loc-Long , or X-Loc-City ).
Enable source metadata enrichment (site_name, favicon, thumbnail, description, fetched_content_timestamp) in the sources attribute of the response.
Filters search results by page age. The age of a page is determined by the most relevant date reported by the content, such as its published or last modified date. The following values are supported: pd - Pages aged 24 hours or less. pw - Pages aged 7 days or less. pm - Pages aged 31 days or less. p
Goggles act as a custom re-ranking on top of Brave’s search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle. For more details, see the Goggles documentation . The parameter can be a single Goggle or a list of up to 3 Goggles.
1256
Maximum number of different snippets (or chunks of text) to include in LLM context. The default is 50 and maximum is 256 . Range: 1 to 256.
1100
Maximum number of snippets to include per URL. The default is 50 and maximum is 100 . Range: 1 to 100.
Approximate maximum number of tokens to include in context. The default is 8192 and maximum is 32768 . Range: 1024 to 32768.
Maximum number of tokens to include per URL. The default is 4096 and maximum is 8192 . Range: 512 to 8192.
150
Maximum number of different URLs to include in LLM context. Range: 1 to 50.
The user’s search query term. Query can not be empty. Maximum of 600 characters and 75 words in the query.
Filters results for adult content. The following values are supported: off - No filtering is done. moderate - Drops adult content from the results used for context. strict - Drops all adult content from the results used for context. When not set, no filtering is applied — except for local recall, wh Allowed values: off, moderate, strict.
The search language preference. The 2 or more character language code for which the search results are provided. Allowed values: ar, eu, bn, bg, ca, zh-hans, zh-hant, hr, cs, da, nl, en, en-gb, et, fi, fr, gl, de, el, gu, he, hi, hu, is, it, ja, jp, kn, ko, lv, lt, ms, ml, mr, nb, pl, pt-br, pt-pt, pa, ro, ru, sr, sk, sl, es, sv, ta, te, th, tr, uk, vi.
Whether to enable spellcheck on the query.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.0075 / run
Daily free calls
First 100 calls per day free (shared per organization)

Request & response

Method
POST
Request body
application/json
Response
application/json
Execution
sync

Parameters

q
string · required
context_threshold_mode
string (disabled, strict, lenient, balanced) · optional
count
integer · optional
country
string (AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL) · optional
enable_local
boolean · optional
enable_source_metadata
boolean · optional
freshness
string · optional
goggles
string · optional
maximum_number_of_snippets
integer · optional
maximum_number_of_snippets_per_url
integer · optional
maximum_number_of_tokens
integer · optional
maximum_number_of_tokens_per_url
integer · optional
More
+4 optional parameters

Access

Provider
Brave
API
Platform API
Base URL
https://api.sandbase.ai
Endpoint
/v1/api/brave/llm-context
Authentication
Bearer API key

API README

Brave LLM Context API

LLM Context from Brave. Returns the official Brave API response unchanged.

The response is the official Brave API response, unchanged.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "brave/llm-context", "q": "<q>"}'

Parameters

NameTypeRequiredDescription
context_threshold_modestringNoThe mode to use to determine the threshold for including content in context.
countintegerNoThe maximum number of search results considered to select the LLM context data. The default is 20 and the maximum is 50.
countrystringNoThe search query country, where the results come from. The country string is limited to 2 character country codes of supported countries.
enable_localbooleanNoWhether to enable local recall. Not setting this value means auto-detect: local recall is used if a location is provided ( X-Loc-Lat with X-Loc-Long , or X-Loc-
enable_source_metadatabooleanNoEnable source metadata enrichment (site_name, favicon, thumbnail, description, fetched_content_timestamp) in the sources attribute of the response.
freshnessstringNoFilters search results by page age. The age of a page is determined by the most relevant date reported by the content, such as its published or last modified da
gogglesstringNoGoggles act as a custom re-ranking on top of Brave’s search index. The parameter supports both a url where the Goggle is hosted or the definition of the Goggle.
maximum_number_of_snippetsintegerNoMaximum number of different snippets (or chunks of text) to include in LLM context. The default is 50 and maximum is 256 .
maximum_number_of_snippets_per_urlintegerNoMaximum number of snippets to include per URL. The default is 50 and maximum is 100 .
maximum_number_of_tokensintegerNoApproximate maximum number of tokens to include in context. The default is 8192 and maximum is 32768 .
maximum_number_of_tokens_per_urlintegerNoMaximum number of tokens to include per URL. The default is 4096 and maximum is 8192 .
maximum_number_of_urlsintegerNoMaximum number of different URLs to include in LLM context.
qstringYesThe user’s search query term. Query can not be empty. Maximum of 600 characters and 75 words in the query.
safesearchstringNoFilters results for adult content. The following values are supported: off - No filtering is done. moderate - Drops adult content from the results used for cont
search_langstringNoThe search language preference. The 2 or more character language code for which the search results are provided.
spellcheckbooleanNoWhether to enable spellcheck on the query.

Pricing

Flat price per call. Failed calls are not charged.

Start building

Send your first request

Platform API endpoint with unified authentication and usage tracking.

Production API
Platform API endpoint
https://api.sandbase.ai/v1/api/brave/llm-context
Authorization header
Authorization: Bearer $SANDBASE_API_KEY
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/api/brave/llm-context" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "count": 20,
  "country": "US",
  "freshness": "",
  "spellcheck": true,
  "search_lang": "en",
  "enable_source_metadata": false,
  "maximum_number_of_urls": 20,
  "maximum_number_of_tokens": 8192,
  "maximum_number_of_snippets": 50,
  "maximum_number_of_tokens_per_url": 4096,
  "maximum_number_of_snippets_per_url": 50
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Explore more

Related APIs

All APIs
APIPriceResponseReleased
Brave$0.0075 per callJSONOct 27, 2026
Brave$0.0075 per callJSONOct 30, 2026
Brave$0.0075 per callJSONOct 30, 2026
Brave$0.0075 per callJSONOct 30, 2026
Brave$0.0075 per callJSONOct 30, 2026
Brave$0.0075 per callJSONOct 30, 2026

Questions

FAQ

How do I use the Brave LLM Context API?

Send a POST request to https://api.sandbase.ai/v1/api/brave/llm-context with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

How much does the Brave LLM Context API cost?

$0.0075 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.

What parameters does the Brave LLM Context API accept?

Required: q (string). Optional: context_threshold_mode (one of disabled, strict, lenient, balanced), count (integer), country (one of AR, AU, AT, BE, BR, CA, CL, DK, FI, FR, DE, GR, HK, IN, ID, IT, JP, KR, MY, MX, NL, NZ, NO, CN, PL, PT, PH, RU, SA, ZA, ES, SE, CH, TW, TR, GB, US, ALL), enable_local (boolean), enable_source_metadata (boolean) and freshness (string) and 9 more. The Parameters table and the Playground on this page list every field.

What does the Brave LLM Context API return?

A JSON response returned in the same HTTP request (synchronous).

Do I need a Brave developer account or API key?

No. Brave LLM Context runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Brave API access separately.