Unleash the true power of AI

Get started

const request = await fetch("", {
headers: { Authorization: "Bearer <YOUR_API_KEY>" },
method: "POST",
body: JSON.stringify({ input: "Who won the world cup last year?" }),
const response = await request.json();
To start interfacing with Google's Bard API, you need to fill in`<YOUR_API_KEY>`that could be found if you click on your profile in the top right corner of this page. Fill in your API key and you're ready to go!

Example response

"Argentina won the 2022 FIFA World Cup in Qatar. They defeated France in the final on penalties after the match was tied 3-3 after extra time. It was Argentina's third World Cup title, and their first since 1986. Lionel Messi was named the player of the tournament.",
That simple, try it out in your apps. Happy hacking!