Question Answering APIs

Find the answer for a given question in a given context

Free during the Beta

cowboy-removebg-preview.png

Question Answering API

Find the answer for a given question in a given context

Gladia.io's Question Answering API enables developers to automatically generate factual, detailed and accurate answers to any question asked.

test it live below (free Signup needed):


Here is an example of input text:

Context
My name is Clara and I live in Berkeley.
Question
What's my name?

curl command
curl -X 'POST' \
  'https://v2-api.gladia.io/text/text/question-answering/' \
  -H 'accept: application/json' \
  -H 'x-gladia-key: MY_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'context=My name is Clara and I live in Berkeley.&question=What'\''s my name?'
Results
{
   prediction: "Clara",
   prediction_raw: [
      {
         answer: "Clara",
         score: 0.996519148349762,
         start: 11,
         end: 16
      }
   ]
}

Test is live with you own text below

We use cookies and analytics services to provide you with a better browsing experience, personalized content and ads. They also help us monitor the traffic on our website and the impact of our marketing campaigns.

Cookie Settings

We use cookies to improve user experience. Choose what cookie categories you allow us to use. You can read more about our Cookie Policy by clicking on Cookie Policy below.

These cookies enable strictly necessary cookies for security, language support and verification of identity. These cookies can’t be disabled.

These cookies collect data to remember choices users make to improve and give a better user experience. Disabling can cause some parts of the site to not work properly.

These cookies help us to understand how visitors interact with our website, help us measure and analyze traffic to improve our service.

These cookies help us to better deliver marketing content and customized ads.