Skip to main content
A server tool is a tool Eden AI runs for the model while it answers, so you get the final answer in one response, with no tool call for you to run and send back. Server tools work on every model, on Chat Completions, Responses and Messages (/v3/v1/messages).

Available Server Tools

How It Works

1

You declare the tool

Add {"type": "edenai:<tool>"} to tools, with its settings under parameters.
2

The model calls it

The model decides when it needs the tool, and with what input.
3

The tool runs

Eden AI runs the call, or the provider runs its own version of the tool when it has one, and the result goes back to the model.
4

The model answers

The model calls the tool again or answers. The response holds the answer and the calls that led to it.

Declare a Server Tool

The tool object is the same on all three endpoints:
A model name starting with ~ names no provider: Eden AI picks the one that serves it (Provider Routing), and the tool works whichever it picks. Each tool’s page lists its parameters. A parameter the tool does not know is ignored.

With Your Own Tools

Server tools and your own function tools can share a request. When the model calls one of yours, the response returns that call as usual, for you to run. Server tool calls the model made before it have already run.

In the Response

The response keeps its endpoint’s usual shape, and shows each server tool call the way that endpoint shows its own: for example, a web_search_call item on Responses or a server_tool_use block on Messages. usage.server_tool_use counts Eden AI’s calls on all three endpoints. A streamed request gets the same events. When Eden AI runs the tool, the stream starts once the whole answer is ready, the tool calls first. When the provider runs its own version, the stream comes as the provider generates it, unless the tool’s page says otherwise.

Billing

  • The tool’s runs, at that tool’s price, given on its page.
  • The model calls. After each round of tool calls, the model is called again with the results in its prompt, so every call’s tokens are billed.

Limits

  • 5 model calls per request when Eden AI runs the tool. The last one answers from the results it has, without calling a tool again.
  • When the provider runs its own version, the provider’s limits apply.
  • Each tool has its own limits on its page.

Next Steps

Web Search

Let any model search the web while it answers

Chat Completions

Send messages to any LLM