Go to example tasks
Call a model with a custom tool
Created by
Vadim Bezrukov
Ask a chat model to request get_weather for Belgrade. The Actor returns a tool_calls row; it does not execute the tool.
OpenRouter for Agents - Tools & Fallbacksautoma-flow/openrouter-agent-gateway
Request id
Status
Model used
Finish reason
+2 fieldsTextNumberBooleanListObject
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
Sign up on Apify01
Create your Apify account to access the OpenRouter for Agents - Tools & Fallbacks.
Start the run02
The Actor will start running based on the input automatically.
Receive the output03
Monitor the progress in real-time. You will be notified as soon as your dataset is complete and ready for review.
Integrate into your workflow04
The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow.
