Go to example tasks

Call a model with a custom tool

Ask a chat model to request get_weather for Belgrade. The Actor returns a tool_calls row; it does not execute the tool.

Try for free
OpenRouter for Agents - Tools & Fallbacks
OpenRouter for Agents - Tools & Fallbacksautoma-flow/openrouter-agent-gateway
Request id
Status
Model used
Finish reason
+2 fields
Text
Number
Boolean
List
Object

Input

Agent requests(required)
Request id(required):weather-belgrade
Primary model:openai/gpt-4o-mini
Chat messages(required)
Tools
Tool choice:auto
Max tokens:256
Provider routing

Output fields

Request id
Status
Model used
Finish reason
Tool calls
Assistant message

How it works

Sign up on Apify or log in

The OpenRouter for Agents - Tools & Fallbacks Actor is ready to run with the inputs already set for "Call a model with a custom tool". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Call a model with a custom tool" task

The OpenRouter for Agents - Tools & Fallbacks Actor will start running based on the input automatically. You can also change all the input fields, like agent requests, to match your specific use case.

Receive the "Call a model with a custom tool" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as request id, status, model used, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Call a model with a custom tool" task via API.

Image

Integrate "Call a model with a custom tool" into your workflow

Connect "Call a model with a custom tool" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay