Next Word Prediction APIs

Predict the next word / autocomplete of a given sentence

Free during the Beta

cowboy-removebg-preview.png

Next Sentence Prediction API

Gladia.io's Next Word Prediction API allows you to add contextually appropriate next word prediction capabilities to any text editing application.

test it live below (free Signup needded):


Here is an example of input text:

Sentence
I think therefore I

curl command
curl -X 'POST' \
  'https://v2-api.gladia.io/text/text/next-word-prediction/' \
  -H 'accept: application/json' \
  -H 'x-gladia-key: MY_API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'sentence=I think therefore I'
Results
{
   prediction: "am",
   prediction_raw: [
      [
         "am",
         0.10172808915376663
      ],
      [
         "shall",
         0.07562003284692764
      ],
      [
         ".",
         0.059710849076509476
      ]
   ]
}

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.