Brave AI Mode
Provider operation: POST /api/brave/ai-mode. Supply a search query. Sample fields include answers and creation times. Use it in content discovery, monitoring, or research. The POST request schema also lists timeout.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / implementations
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
litescrapeCurrent Brave AI Mode · POST | $0.00015 / call | — | —successP50— |
Run sends a real API request. Charges follow the published API contract.
Response structure
answerstringcontinuation_tokenstringfollow_up_questionsstring[]referencesobject[]indexintegerlinkstringtitlestring
search_metadataobjectbrave_ai_mode_urlstringcreated_atstringidstringjson_endpointstringprocessed_atstringstatusstringtotal_time_takeninteger
search_parametersobjectcountrystringlanguagestringqstringsafeSearchstringunits_of_measurementstring
submit_feedback_for_this_response_herestringtext_blocksobject[]reference_indexesinteger[]snippetstringtypestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
answer?: string;
continuation_token?: string;
follow_up_questions?: Array<string>;
references?: Array<{
index?: number;
link?: string;
title?: string;
}>;
search_metadata?: {
brave_ai_mode_url?: string;
created_at?: string;
id?: string;
json_endpoint?: string;
processed_at?: string;
status?: string;
total_time_taken?: number;
};
search_parameters?: {
country?: string;
language?: string;
q?: string;
safeSearch?: string;
units_of_measurement?: string;
};
submit_feedback_for_this_response_here?: string;
text_blocks?: Array<{
reference_indexes?: Array<number>;
snippet?: string;
type?: string;
}>;
};- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
continuation_token | JSON request bodybody | string | null | No | Token from the previous response. Send with a new q to continue that conversation. Omitted preferences carry over from the token; supplied preferences override them. Use the latest token returned by each successful response. Treat this token as a conversation credential and keep it private. Prefer JSON POST for follow-ups. Tokens expire after one hour and require the same API key and endpoint; omit the token to start again. |
country | JSON request bodybody | string | No | Two-letter country preference, or all for all regions. Brave determines regional availability. pattern: ^(?:[a-z]{2}|all)$ |
language | JSON request bodybody | string | No | Search language preference such as en, de or de-de. Brave also considers the language of your question when generating its answer. pattern: ^[a-z]{2}(?:-[a-z]{2})?$ |
lat | JSON request bodybody | number | null | No | Latitude from -90 to 90. Supply with lon; explicit coordinates take precedence over location. |
location | JSON request bodybody | string | null | No | City or postal code from the location catalog, such as Berlin, Germany or Austin, Texas, United States. Qualify ambiguous names with a state or country. Unknown locations fail; lat and lon take precedence when supplied together. On follow-ups, a supplied location replaces inherited coordinates. Send location: null in JSON to clear an inherited location. Resolved coordinates are returned in search_parameters. |
lon | JSON request bodybody | number | null | No | Longitude from -180 to 180. Supply with lat. |
q | JSON request bodybody | string | Yes | Question for Brave AI Mode. Required for both a new conversation and each follow-up. minLength: 1 · maxLength: 2048 |
safeSearch | JSON request bodybody | string | No | Adult-content filtering preference: off, moderate or strict. enum: "off", "moderate", "strict" |
units_of_measurement | JSON request bodybody | string | No | Unit preference: us for US customary units or metric for metric units. enum: "us", "metric" |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"answer": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.",
"continuation_token": "<opaque token returned by a successful request>",
"follow_up_questions": [
"Why are the colors in that order?"
],
"references": [
{
"index": 1,
"link": "https://www.nesdis.noaa.gov/about/k-12-education/optical-phenomena/what-causes-rainbow",
"title": "What Causes a Rainbow?"
}
],
"search_metadata": {
"brave_ai_mode_url": "https://search.brave.com/ask?q=How+do+rainbows+form%3F",
"created_at": "2026-10-09T12:00:00+00:00",
"id": "brave-ai-example",
"json_endpoint": "https://api.litescrape.com/api/brave/ai-mode",
"processed_at": "2026-10-09T12:00:05+00:00",
"status": "Success",
"total_time_taken": 5
},
"search_parameters": {
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"text_blocks": [
{
"reference_indexes": [
1
],
"snippet": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.",
"type": "text"
}
]
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Brave AI Mode
Provider operation: POST /api/brave/ai-mode. Supply a search query. Sample fields include answers and creation times. Use it in content discovery, monitoring, or research. The POST request schema also lists timeout.
## Available implementations
litescrape · Brave AI Mode: https://openany.si/markets/apis/capabilities/brave-ai-mode?offering=15dae969-80d3-4017-af88-ff101cc583be · $0.00015 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/brave-ai-mode
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode
Price: $0.00015 / call
Provider: litescrape
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Brave AI Mode",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Get Brave AI answers with citations.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
}
],
"properties": {
"continuation_token": {
"anyOf": [
{
"maxLength": 4096,
"minLength": 1,
"pattern": "^ct2_[A-Za-z0-9_-]{100,}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Token from the previous response. Send with a new q to continue that conversation.\n\nOmitted preferences carry over from the token; supplied preferences override them. Use the latest token returned by each successful response. Treat this token as a conversation credential and keep it private. Prefer JSON POST for follow-ups. Tokens expire after one hour and require the same API key and endpoint; omit the token to start again.",
"title": "Continuation Token",
"x-litescrape": {
"group": 0,
"label": "Continuation token",
"notes": [
"Omitted preferences carry over from the token; supplied preferences override them. Use the latest token returned by each successful response.",
"Treat this token as a conversation credential and keep it private. Prefer JSON POST for follow-ups. Tokens expire after one hour and require the same API key and endpoint; omit the token to start again."
],
"summary": "Token from the previous response. Send with a new q to continue that conversation."
}
},
"country": {
"default": "us",
"description": "Two-letter country preference, or all for all regions. Brave determines regional availability.",
"pattern": "^(?:[a-z]{2}|all)$",
"title": "Country",
"type": "string",
"x-litescrape": {
"group": 1,
"label": "Country",
"summary": "Two-letter country preference, or all for all regions. Brave determines regional availability."
}
},
"language": {
"default": "en",
"description": "Search language preference such as en, de or de-de. Brave also considers the language of your question when generating its answer.",
"pattern": "^[a-z]{2}(?:-[a-z]{2})?$",
"title": "Language",
"type": "string",
"x-litescrape": {
"group": 1,
"label": "Language",
"summary": "Search language preference such as en, de or de-de. Brave also considers the language of your question when generating its answer."
}
},
"lat": {
"anyOf": [
{
"maximum": 90,
"minimum": -90,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"description": "Latitude from -90 to 90. Supply with lon; explicit coordinates take precedence over location.",
"title": "Lat",
"x-litescrape": {
"group": 1,
"label": "Latitude",
"summary": "Latitude from -90 to 90. Supply with lon; explicit coordinates take precedence over location."
}
},
"location": {
"anyOf": [
{
"maxLength": 256,
"minLength": 1,
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "City or postal code from the location catalog, such as Berlin, Germany or Austin, Texas, United States.\n\nQualify ambiguous names with a state or country. Unknown locations fail; lat and lon take precedence when supplied together. On follow-ups, a supplied location replaces inherited coordinates. Send location: null in JSON to clear an inherited location. Resolved coordinates are returned in search_parameters.",
"title": "Location",
"x-litescrape": {
"group": 1,
"label": "Location",
"notes": [
"Qualify ambiguous names with a state or country. Unknown locations fail; lat and lon take precedence when supplied together.",
"On follow-ups, a supplied location replaces inherited coordinates. Send location: null in JSON to clear an inherited location. Resolved coordinates are returned in search_parameters."
],
"summary": "City or postal code from the location catalog, such as Berlin, Germany or Austin, Texas, United States."
}
},
"lon": {
"anyOf": [
{
"maximum": 180,
"minimum": -180,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"description": "Longitude from -180 to 180. Supply with lat.",
"title": "Lon",
"x-litescrape": {
"group": 1,
"label": "Longitude",
"summary": "Longitude from -180 to 180. Supply with lat."
}
},
"q": {
"description": "Question for Brave AI Mode. Required for both a new conversation and each follow-up.",
"maxLength": 2048,
"minLength": 1,
"title": "Q",
"type": "string",
"x-litescrape": {
"group": 0,
"label": "Question",
"summary": "Question for Brave AI Mode. Required for both a new conversation and each follow-up."
}
},
"safeSearch": {
"default": "moderate",
"description": "Adult-content filtering preference: off, moderate or strict.",
"enum": [
"off",
"moderate",
"strict"
],
"title": "Safesearch",
"type": "string",
"x-litescrape": {
"group": 2,
"label": "Safe search",
"summary": "Adult-content filtering preference: off, moderate or strict."
}
},
"units_of_measurement": {
"default": "us",
"description": "Unit preference: us for US customary units or metric for metric units.",
"enum": [
"us",
"metric"
],
"title": "Units Of Measurement",
"type": "string",
"x-litescrape": {
"group": 2,
"label": "Units of measurement",
"summary": "Unit preference: us for US customary units or metric for metric units."
}
}
},
"required": [
"q"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"answer": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.",
"continuation_token": "<opaque token returned by a successful request>",
"follow_up_questions": [
"Why are the colors in that order?"
],
"references": [
{
"index": 1,
"link": "https://www.nesdis.noaa.gov/about/k-12-education/optical-phenomena/what-causes-rainbow",
"title": "What Causes a Rainbow?"
}
],
"search_metadata": {
"brave_ai_mode_url": "https://search.brave.com/ask?q=How+do+rainbows+form%3F",
"created_at": "2026-10-09T12:00:00+00:00",
"id": "brave-ai-example",
"json_endpoint": "https://api.litescrape.com/api/brave/ai-mode",
"processed_at": "2026-10-09T12:00:05+00:00",
"status": "Success",
"total_time_taken": 5
},
"search_parameters": {
"country": "us",
"language": "en",
"q": "How do rainbows form?",
"safeSearch": "moderate",
"units_of_measurement": "us"
},
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"text_blocks": [
{
"reference_indexes": [
1
],
"snippet": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.",
"type": "text"
}
]
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Get Brave AI answers with citations.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/brave/ai-mode' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "country": "us", "language": "en", "q": "How do rainbows form?", "safeSearch": "moderate", "units_of_measurement": "us" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "answer": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.", "continuation_token": "<opaque token returned by a successful request>", "follow_up_questions": [ "Why are the colors in that order?" ], "references": [ { "index": 1, "link": "https://www.nesdis.noaa.gov/about/k-12-education/optical-phenomena/what-causes-rainbow", "title": "What Causes a Rainbow?" } ], "search_metadata": { "brave_ai_mode_url": "https://search.brave.com/ask?q=How+do+rainbows+form%3F", "created_at": "2026-10-09T12:00:00+00:00", "id": "brave-ai-example", "json_endpoint": "https://api.litescrape.com/api/brave/ai-mode", "processed_at": "2026-10-09T12:00:05+00:00", "status": "Success", "total_time_taken": 5 }, "search_parameters": { "country": "us", "language": "en", "q": "How do rainbows form?", "safeSearch": "moderate", "units_of_measurement": "us" }, "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token", "text_blocks": [ { "reference_indexes": [ 1 ], "snippet": "Rainbows form when sunlight is refracted, reflected and dispersed by water droplets.", "type": "text" } ] }
Common questions
Do I need a separate key for every provider?
Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.
Are these providers interchangeable?
No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.
How is this API billed?
API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.
Where do the price and contract come from?
The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.
How do OpenAny Balance and x402 differ?
OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.
Does Playground send a paid request?
Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.
Use Brave AI Mode with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.