NeuralBridge
Sign in Download IDE
NeuralBridge

Web Answer

response with links

An answer to a question based on fresh information from the internet, with links to sources: search, page reading and a short answer in one request.

Specifications

Context window
—
Max tokens in response
—
Vendor
NeuralBridge
Release
—
Login
text
Output
text

Description

What it is

Web Answer answers a question using fresh information from the internet and shows where it came from. The service searches the internet itself, reads a few of the most relevant pages, and a language model writes a short answer based on them. The answer text contains source numbers, and the sources with links come as a separate list.

The answer is built only from the sources found. If they do not contain the answer, the service says so instead of making something up.

Use it when you need to:

  • answer a reference question where being up to date matters;
  • make a chatbot answer with links to sources;
  • get a short summary of recent news on a topic.

How it works

  1. The service searches the internet for the question.
  2. It reads the first few pages found. If a page does not open, its search excerpt is used instead.
  3. The model writes an answer in the language of the question and adds source numbers.

For news questions (for example, "top space news today") the service uses a set of news feeds maintained by the platform instead of regular search, so the answer is built from recent publications. If no suitable news is found, it falls back to regular search.

What you need

  • An API key. Create it in your account dashboard. Send the key with every request in the Authorization: Bearer YOUR_API_KEY header, replacing YOUR_API_KEY with your key. Do not publish the key or share it with anyone: requests made with it are paid from your balance.
  • Money on your balance. Every request is paid; the price is shown on this page.
  • A program that sends HTTP requests. The command line (curl), Python with the requests library or any API testing tool will do. Ready-made examples are in the "Code examples" block below: copy one, put in your key and run it.

How a request is built

  • The method and address are in the "Endpoints" block on this page.
  • Headers: Authorization: Bearer YOUR_API_KEY and Content-Type: application/json.
  • The request body is JSON: "name": value pairs in curly braces, separated by commas. Text goes in double quotes; numbers and true / false go without quotes.

Request example

A regular question:

{"query": "Why is the sky blue?"}

A news summary:

{"query": "artificial intelligence news", "mode": "news", "lang": "en", "time_range": "day"}

Request parameters

  • query — required. The question in plain language, as you would ask a person.
  • mode — where to take information from: auto — the service decides (default), news — from news feeds, web — from regular search. In auto mode a question counts as a news question if it contains words like "news", "headlines", "breaking" or their Russian equivalents.
  • lang — news only: the feed language, ru or en. Without it, all languages.
  • category — news only: the feed topic — ai, tech, science, business, world or general. The set of topics depends on the language.
  • time_range — news only: the period of publications — hour, day, week or month. Default: one day.

What the response contains

{
  "object": "web_answer",
  "answer": "The sky looks blue because air scatters the blue part of sunlight more strongly [1]…",
  "sources": [
    {
      "index": 1,
      "title": "Title of the source page",
      "url": "https://…",
      "snippet": "An excerpt of the page…"
    }
  ],
  "usage": {"prompt_tokens": 2400, "completion_tokens": 180}
}
  • answer — the answer text. It may contain simple Markdown such as **bold text**. The numbers in the text point to the sources in sources.
  • sources — the sources used for the answer, in order. index is the number the answer refers to; title and url are the page title and address; snippet is a short excerpt (up to 300 characters).
  • usage — how many tokens (pieces of text) the model read (prompt_tokens) and wrote (completion_tokens). Part of the price depends on them.

If nothing is found, answer says that no sources were found for the query (in Russian), and sources is an empty list.

Time and limits

  • An answer usually takes 5–30 seconds: the service has to search, read pages and write the text. Set your program to wait for a response for at least 2 minutes.
  • The answer is short — a few sentences or paragraphs. For a detailed analysis of one page, read it with Web Scrape and pass the text to your own model.
  • The model can make mistakes or retell a source inaccurately. Check important facts using the links in sources.
  • The service does not remember previous questions: each request stands alone. If a question continues an earlier one, write it out in full.

Pricing

The price of one question consists of the search, reading each page and the model work by the number of tokens (usage). That is why an answer costs more than a plain search. Prices are shown on this page; the amount charged is visible in your account dashboard.

If you get an error

The server replies with an HTTP status code. 200 means everything is fine; any other code means an error:

  • 401 — the key is missing or wrong. Check the header: the word Bearer, a space and the whole key.
  • 402 — not enough money on your balance. Top it up in your account dashboard.
  • 403 — this key is not allowed to use the tool. Check the key permissions in your dashboard.
  • 429 — too many requests per minute. Wait a little and try again.
  • 503 — the service is temporarily unavailable. Try again in a minute.
  • Other codes usually mean the request is malformed: a required field is missing or the JSON has a mistake (an extra or missing comma, single quotes instead of double). Compare your request with the example on this page.

Endpoints

POSThttps://api.neuralbridge.ru/v1/answerprimary
Answer — Answer a question with sources: search, page reading and synthesis.

Code examples

python
import requests

response = requests.post(
    "https://api.neuralbridge.ru/v1/answer",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"query": "Почему небо голубое?"},
    timeout=180,  # поиск, чтение страниц и ответ модели занимают до минуты
)
response.raise_for_status()
result = response.json()
print(result["answer"])
print()
for source in result["sources"]:
    print(f'[{source["index"]}] {source["title"]} — {source["url"]}')
For OpenAI SDK, specify /v1 in base_url. For Anthropic SDK — without /v1.
Prices
Login / 1M tokens45,50 ₽
Output / 1M tokens97,50 ₽
The request cost in rubles — in the response, field usage.cost
Identifier
neuralbridge/web-answer-00527
Get API key