APIScrapers

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 / APIs
1 / 1
Requests · 30d
—Loading...
Success rate · 30d
—Loading...
USE THIS API

Brave AI Mode

Prepare your request, then continue with your agent.

Selected price

$0.00015 / call

Provider
Pricing
Connect your agent
On this page

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Get Brave AI answers with citations.
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.

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.0
  },
  "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"
    }
  ]
}

Response result

Response structure

Inferred from examples
  • answerstring
  • continuation_tokenstring
  • follow_up_questionsstring[]
  • referencesobject[]
    • indexinteger
    • linkstring
    • titlestring
  • search_metadataobject
    • brave_ai_mode_urlstring
    • created_atstring
    • idstring
    • json_endpointstring
    • processed_atstring
    • statusstring
    • total_time_takennumber
  • search_parametersobject
    • countrystring
    • languagestring
    • qstring
    • safeSearchstring
    • units_of_measurementstring
  • submit_feedback_for_this_response_herestring
  • text_blocksobject[]
    • reference_indexesinteger[]
    • snippetstring
    • typestring

Sellers

SellerPricingRequests · 30dPerformanceAccess
litescrapeCurrent
Brave AI Mode · POST · View API reference
$0.00015 / call—
—successP50—
Loading...
Selected pricing · litescrapeUSD / call
Unit price
$0.00015

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.

calls

Total $0.015

API

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.

ParameterLocationTypeRequiredDescription
timeoutURL query parametersquerynumberNoTotal 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_tokenJSON request bodybodystring | nullNoToken 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.
countryJSON request bodybodystringNoTwo-letter country preference, or all for all regions. Brave determines regional availability.

pattern: ^(?:[a-z]{2}|all)$

languageJSON request bodybodystringNoSearch 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})?$

latJSON request bodybodynumber | nullNoLatitude from -90 to 90. Supply with lon; explicit coordinates take precedence over location.
locationJSON request bodybodystring | nullNoCity 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.
lonJSON request bodybodynumber | nullNoLongitude from -180 to 180. Supply with lat.
qJSON request bodybodystringYesQuestion for Brave AI Mode. Required for both a new conversation and each follow-up.

minLength: 1 · maxLength: 2048

safeSearchJSON request bodybodystringNoAdult-content filtering preference: off, moderate or strict.

enum: "off", "moderate", "strict"

units_of_measurementJSON request bodybodystringNoUnit 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.

Official example
{
  "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.0
  },
  "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
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/apis/15dae969-80d3-4017-af88-ff101cc583be
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.0
        },
        "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

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

Official example

Example from the provider's documentation. Field values in your results will differ.

  1. 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 / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. 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 · cURL
    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"
    }'
  3. 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.0
      },
      "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.