Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

OpenRouter Provider

116 sites No security coverage Drupal 10–11 AI ecosystem
View on drupal.org

This module integrates OpenRouter into Drupal's AI capabilities, providing access to over 300 AI models for chat, completions, embeddings, and image generation. It dynamically discovers new models as they become available on OpenRouter and allows administrators to curate which models are offered to keep interfaces lean.

Adds OpenRouter to Drupal AI: 300 + models with chat/completions/embeddings/text-to-image, dynamic model discovery, key-based setup, optional curated model lists for lean UIs.

Features

  • One-click gateway to 367 LLMs – instantly tap every model available on OpenRouter (GPT models, Claude models, Reasoning models, Embedding models, Gemini, Grok, etc.).
  • Always up-to-date model list – the provider queries OpenRouter's /models and /embeddings/models endpoints on demand, so new models appear in Drupal as soon as OpenRouter lists them.
  • Curated model selection – administrators may whitelist a smaller subset of models to keep drop-downs manageable for editors and automated workflows. Also select models according to price.
  • Full support for Chat, Completions, Embeddings, and Text-to-Image operations – generate images from text prompts using Gemini, GPT-5, and other multimodal models.
  • 21 dedicated embedding models – with automatic vector size detection (384-3072 dimensions) for seamless integration with vector databases.
  • Batch embeddings processing – process multiple texts in a single API call for improved performance.
  • Advanced multimodal support – chat with images, PDFs, and videos. Models can "watch" video content and analyze visual information.
  • Reasoning model controls – fine-tune o1/o3/GPT-5 reasoning models with effort parameters (minimal to extra-high).
  • Streaming responses – real-time output with token usage, reasoning tokens, and finish reason tracking.
  • Function Calling/Tools – full support for tool calls and agentic workflows.
  • Site builders can use OpenRouter models anywhere the AI module exposes providers: text formats, CKEditor AI, content moderation, custom automations, and more.

Post-Installation

  1. Install the module (and its dependencies) via Composer or the Extend page.
  2. Add your OpenRouter API key
    • Navigate to Configuration » System » Keys (provided by the Key module).
    • Create a new key of type “Authentication” and paste your OpenRouter key.
  3. Enable OpenRouter provider
    • Go to Configuration » AI » Provider Settings.
    • Select “OpenRouter”, choose the key you just created, and (optionally) pick which models to expose.
    • If you leave the model list blank, every available model (300 +) will be offered.
  4. Use it anywhere the AI module appears – in text formats, CKEditor AI buttons, custom plugins, or your own code via \Drupal::service('ai_provider_openrouter.client').

Additional Requirements

  • AI module (core provider framework)
  • Key module ≥ 1.18 – secure storage for your API token
  • openai-php/client ^0.10.1 – installed automatically when you run
    composer require drupal/ai_provider_openrouter

Community Documentation

Documentation Link: Coming soon.

Depends on

Dependencies of the latest stable release

  • ai Drupal core
  • key Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
8
Tracked since
Jun 2025
Latest release
2 months ago
Releases (12 mo)
6 ▲ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.1.6 Stable 10–11 Jun 26, 2026
1.1.5 Stable 10–11 Jun 26, 2026
1.1.4 Stable 10–11 Mar 21, 2026
1.1.3 Stable 10–11 Mar 1, 2026
1.1.2 Stable 10–11 Feb 2, 2026
1.1.1 Stable 10–11 Nov 13, 2025
1.0.0 Stable 10–11 Jun 25, 2025
1.0.x-dev Dev 10–11 Jun 21, 2025