This project is not covered by Drupal’s security advisory policy.
LatentKit AI Provider connects Drupal AI to the route assigned to a LatentKit app key. Drupal uses one logical latentkit-route model. LatentKit selects the live provider and model and can apply fallback, policy, credit, and analytics controls.
The module provides non-streaming text chat to existing Drupal AI consumers. It does not add a separate editor, chatbot, or content-generation interface.
Features
- Provides a LatentKit chat provider for the Drupal AI ecosystem.
- Exposes one route-controlled model instead of provider-specific model configuration.
- Stores credentials through Drupal Key or server environment variables.
- Shows connection status, remaining credits, assigned route, ordered route models, and the provider and model used by the latest request.
- Supports system prompts, message history, maximum tokens, temperature, and LatentKit response profiles.
- Reports safe request IDs without logging API keys, prompts, generated content, or provider response bodies.
Post-installation
- Create a Key containing your LatentKit app API key under Configuration → System → Keys.
- Open Configuration → AI → AI Infrastructure → AI Platform Providers → LatentKit.
- Select the Drupal Key and save the provider configuration.
- Select LatentKit assigned route when a compatible Drupal AI feature asks for a chat provider and model.
Provider selection, fallback order, and policy are managed through the route assigned to the app in the LatentKit console.
Additional requirements
- Drupal 10.5 or later, or Drupal 11.2 or later.
- Drupal AI 1.4.x.
- Drupal Key 1.22 or later.
- A LatentKit account, app API key, and published route assignment.
- Outbound HTTPS access to
https://ai.latentkit.com, unless a trusted self-hosted gateway is configured by the server operator.
Composer installs the LatentKit PHP SDK dependency automatically.
External service and privacy
This module connects to LatentKit at https://ai.latentkit.com. It sends the selected API key for authentication. Chat requests send the system prompt, message history, and supported generation settings. The connection-status request retrieves workspace, app, credit, route, model, and recent request metadata.
The module does not automatically send the Drupal site URL, administrator email, or unrelated Drupal content. Review the LatentKit privacy policy and terms before connecting a production site.
Similar projects and how they are different
- OpenAI Provider connects Drupal AI directly to OpenAI and exposes OpenAI models and capabilities.
- Acquia AI Provider connects Drupal AI to Acquia AI Gateway for eligible Acquia customers.
LatentKit exposes one logical route across supported providers. Provider selection, fallback, and policy remain in the LatentKit app route instead of Drupal configuration.
Community documentation
Project information
- Project categories: Artificial Intelligence (AI), Integrations
- Ecosystem: AI (Artificial Intelligence)
- Created by amirehman on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.

