OpenRouter ejecuta la herramienta durante la solicitud y devuelve el resultado al modelo, por lo que no se necesita un bucle de herramientas del lado del cliente.
API compatibles: Chat Completions, Responses, and Anthropic Messages.
curl https://dynamicsinfo.com/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:web_fetch"
}
],
"messages": [
{
"role": "user",
"content": "Summarize the page at https://dynamicsinfo.com/docs/guides/features/server-tools"
}
]
}'