Functions Usage
The AI Gateway supports the OpenAI signature to define functions. Pass the tools parameter to models that support function/tool calling.
OpenAI NodeJS
OpenAI Python
cURL
On completion, the request logs in Strata Cloud Manager where tools and functions are visible. The AI Gateway automatically formats the JSON blocks in the input and output for easier debugging.
Supported Providers and Models
The AI Gateway provides native function calling support across all major AI providers.
Cookbook
See the detailed cookbook on function calling.Last modified on September 28, 2026