Hi and welcome to the Forum!
A couple of points:
-
You don’t buy a license to use the API. You simply add credits, i.e. money, to your developer acccount and that then enables you to consume the different models via API.
-
The API does not natively come with the functionality to browse the web. What you can do is to implement in your script a web search API, such as Bing Search. Based on a given user input, you would pass a query to the search API, which in turn would then return a number of relevant search results, which you can then incorporate in the final response back to the user. You can easily achieve this “workflow” with the use of function calling.