# Does openai API support google search grounding?

**URL:** <https://discuss.ai.google.dev/t/does-openai-api-support-google-search-grounding/107542>\
**Category:** Gemini API\
**Tags:** openai\_compatibility, api\
**Created:** [October 16, 2025, 9:20am UTC](https://discuss.ai.google.dev/t/does-openai-api-support-google-search-grounding/107542 "2025-10-16T09:20:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erki\_Ehtla](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/erki_ehtla/32/68106_2.png) [@Erki\_Ehtla](https://discuss.ai.google.dev/u/Erki_Ehtla)\
**Post date:** [October 16, 2025, 9:20am UTC](https://discuss.ai.google.dev/t/does-openai-api-support-google-search-grounding/107542/1 "2025-10-16T09:20:38Z")

</div>

I see that the tools element is supported in the openai API, but the docs only mention function calling.  
When I add

“tools”: [  
{“google\_search”: {}}  
]

to my payload, I get

Invalid JSON payload received. Unknown name “google\_search” at ‘tools[0]’: Cannot find field.

Is there any way to use the google\_search grounding?

> **[OpenAI compatibility  |  Gemini API  |  Google AI for...](https://ai.google.dev/gemini-api/docs/openai#function-calling)**

---

<div class="post-metadata">

**Author:** ![Shivam\_Singh2](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/shivam_singh2/32/31553_2.png) [@Shivam\_Singh2](https://discuss.ai.google.dev/u/Shivam_Singh2)\
**Post date:** [October 16, 2025, 9:47am UTC](https://discuss.ai.google.dev/t/does-openai-api-support-google-search-grounding/107542/2 "2025-10-16T09:47:01Z")

</div>

Hi @Erki_Ehtla  
Welcome to the AI Forum!!!

Grounding with Google search is not available when using OpenAI compatibility mode.  
If you’re looking to implement similar functionality, you might consider integrating the Google [Custom Search API](https://developers.google.com/custom-search/v1/overview) directly into your application to perform web searches.
