Skip to main content

Overview

Function calling (also called tool use) allows models to request external function execution. The model decides when and how to call functions based on user input.
Function calling is available on the OpenAI-compatible API (/v1/chat/completions). Models that support tools include qwen3-coder:480b, deepseek-v3.2, gemma3:27b, and other instruction-tuned models.

Basic Example


Multiple Tools


tool_choice Options


Parallel Tool Calls

Models can call multiple tools simultaneously: