Skip to content
  • Models
  • Rankings
  • Ori
Sign Up
Sign Up
OpenRouterOpenRouter
© 2026 OpenRouter, Inc

Product

  • Chat
  • Rankings
  • Benchmarks
  • Apps
  • Discover
  • Models
  • Collections
  • Providers
  • Tools
  • Pricing
  • Business
  • Enterprise
  • Labs

Company

  • About
  • Blog
  • Careers
    Hiring
  • Privacy
  • Terms of Service
  • Trust Center
  • Support
  • Works With OR
  • Data
  • Brand

Developer

  • Documentation
  • API Reference
  • Developer Platform
  • Status

Connect

  • Discord
  • GitHub
  • LinkedIn
  • X
  • YouTube
All server tools

Datetime

openrouter:datetime

DocsTry this tool

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.

DocsTry this tool
How it worksProviders and pricingUsing this toolRelated tools

How it works

For prompts that depend on the current date or time, like scheduling and deadlines.

  1. 1

    Your model calls the tool when it needs today’s date or the time.

  2. 2

    OpenRouter returns the current datetime, in UTC or the timezone you set.

  3. 3

    Your model answers from the real date instead of guessing from its training data.

Providers and pricing

  • Favicon for https://openrouter.ai

    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?"
    }
  ]
}'

Setup, parameters, and examples in the docs.

Read the integration guide

Related tools

Utilities

  • Tool search

    Load tool definitions on demand instead of up front

    Utilities