Skip to content

Installation

Requirements

Install the module

composer require drupal/ai_provider_dxpr
drush en ai_provider_dxpr

Composer pulls in the openai-php/client library automatically.

Get your API key

  1. Register for a free account at dxpr.com/user/free-registration
  2. Copy the API key from the DXPR dashboard

Every account includes 10,000 free monthly credits. See AI usage tracking for how credits are counted.

Create a Key entity

DXPR AI Provider stores the API key through Drupal's Key module, keeping credentials out of configuration exports.

  1. Navigate to /admin/config/system/keys
  2. Click Add key
  3. Set the label to something containing "DXPR" (for example, "DXPR AI API Key")
  4. Choose Authentication as the key type
  5. Paste your API key as the key value
  6. Save

On module installation, DXPR AI Provider auto-detects any Key entity whose label contains "DXPR" and selects it automatically.

Configure the provider

Visit /admin/config/ai/providers/dxpr to open the settings form. The form validates your API key against the Kavya model listing when you save, confirming the connection works.

See the Configuration guide for details on model selection, provider failover, and the em-dash processor.

Verify

If the key is valid, saving the configuration displays your available models and current credit balance on the settings page.

Next steps