Gives the model reliable temporal context. When a prompt depends on today’s date or the current time, the model calls the tool and OpenRouter returns the current datetime, optionally in a configured timezone.
For prompts that depend on the current date or time, like scheduling and deadlines.
1
Your model calls the tool when it needs today’s date or the time.
2
OpenRouter returns the current datetime, in UTC or the timezone you set.
3
Your model answers from the real date instead of guessing from its training data.
Providers and pricing
OpenRouter
Free
Runs in-process on OpenRouter during the request.
Standard model token costs apply to every request.
Using this tool
OpenRouter runs the tool during the request and returns the result to the model, so no client-side tool loop is needed.
Supported APIs: Chat Completions, Responses, and Anthropic Messages.
shell
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.2",
"tools": [
{
"type": "openrouter:datetime"
}
],
"messages": [
{
"role": "user",
"content": "How many days are left until the end of this quarter?"
}
]
}'