Send a prompt to Google's AI Mode and get a structured conversational reply with citation links. Continue the conversation across multiple calls using a session token.
curl "https://apidirect.io/v1/web/ai-mode?prompt=How%20do%20I%20make%20pizza%3F" \
-H "X-API-Key: YOUR_API_KEY"
{
"reply_parts": [
{
"type": "paragraph",
"text": "Making pizza at home involves preparing the dough, sauce, and toppings, then baking at high heat."
},
{
"type": "heading",
"text": "1. Prepare the Dough"
},
{
"type": "list",
"ordered": false,
"list": [
{
"title": "Activate Yeast:",
"text": "Mix warm water with yeast and a pinch of sugar. Let it sit for 5-10 minutes until foamy."
},
{
"title": "Mix and Knead:",
"text": "Combine the yeast mixture with flour and salt. Knead for 5-10 minutes until smooth and elastic."
}
]
}
],
"reference_links": [
{
"title": "Best Homemade Pizza Dough (photo tutorial)",
"link": "https://www.crunchycreamysweet.com/the-best-homemade-pizza-dough-photo-tutorial/",
"snippet": "Instructions. Place water and sugar in a large mixing bowl...",
"source": "Crunchy Creamy Sweet",
"favicon": "https://encrypted-tbn1.gstatic.com/faviconV2?url=https://www.crunchycreamysweet.com&size=128",
"date": "Jul 6, 2012"
}
],
"session_token": "Q21vd1lUZHFaMjlNYWtOTWREQndWRmRyV1RNemFqRnViak01Ym1FeE1tdFZVemhFVGxCeFQxZE9RV1o0..."
}