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). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Release: Change Requests 2.1.9 Minor update available for module change_requests (2.1.9). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

OpenAI Compatible Provider

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

This module allows Drupal to connect with various AI services that use the OpenAI API format. It provides a flexible way to configure different AI models and their capabilities, enabling functionalities like chat, embeddings, and more, while securely storing API keys.

This module provides a flexible AI provider for OpenAI compatible APIs, Including

  • DeepSeek
  • SiliconFlow
  • Zhipu AI (BigModel)
  • Alibaba Cloud (Tongyi Qianwen)
  • 01.AI (Yi)
  • Moonshot AI (Kimi)
  • other services that follow the OpenAI API specification

Features

  • OpenAI API Compatibility: Works with any service that implements the OpenAI API specification
  • DeepSeek Support: Built-in support for DeepSeek models with example configurations
  • Flexible Model Configuration: Define custom models via YAML configuration
  • Dynamic Capabilities: Model capabilities are configurable per model
  • Key Module Integration: Uses Drupal's Key module for secure API key storage

Post-Installation

1. API Key Setup

  • 1. Create a new key in the Key module (`/admin/config/system/keys/add`)
  • 2. Select "Authentication" as the key type
  • 3. Enter your API key in the "Key value" field
  • 4. Save the key

2. Provider Configuration

Navigate to `/admin/config/ai/providers/openai-compatible` and configure:

  • API Key: Select the key you created
  • API Endpoint: Enter the base URL (e.g., `https://api.deepseek.com`)
  • Models Configuration: Optional YAML configuration for custom models

Configuration Fields

  • label: Human-readable name for the model
  • operation_types: Array of supported operation types (`chat`, `embeddings`, etc.)
  • capabilities: Array of model capabilities (see below)
  • parameters: Model-specific parameters (temperature, max_tokens, etc.)

Supported Capabilities

The module supports all capabilities defined in the AI module's `AiModelCapability` enum:

  • `chat_with_image_vision`: Chat with image vision support
  • `chat_with_audio`: Chat with audio support
  • `chat_with_video`: Chat with video support
  • `chat_system_role`: Chat with system role support
  • `chat_json_output`: Chat with JSON output support
  • `chat_structured_response`: Chat with structured response support
  • `chat_tools`: Chat with tools/function calling support
  • `chat_combined_tools_and_structured_response`: Chat with both tools and structured response

Usage with DeepSeek

DeepSeek Configuration Example

Available DeepSeek Models

  • `deepseek-chat`: General chat model
  • `deepseek-reasoner`: Advanced reasoning model with structured response support

Extending for Other Providers

To add support for other OpenAI compatible providers:

  • 1. Update the YAML configuration with your provider's models
  • 2. Adjust the API endpoint to your provider's URL
  • 3. Configure model capabilities based on what your provider supports

Additional Requirements

Depends on

Dependencies of the latest stable release

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Feb 2026
Latest release
4 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
1.2.1 Stable 10–11 Apr 7, 2026
1.2.0 Stable 10–11 Feb 12, 2026
1.0.0 Stable 10–11 Feb 12, 2026