
Overview
This tutorial explains how to configure your DGrid service API Key in popular AI front‑end tools so that you can call DGrid’s AI model services directly inside these products.
We will cover:
- How to obtain your DGrid API Key
- General principles for integrating DGrid with third‑party AI front‑ends
- Step‑by‑step configuration examples for Cherry Studio
- How to verify that DGrid has been successfully connected
Scope note
This document uses Cherry Studio as examples. The logic, however, can be applied to other AI front‑end tools with similar configuration patterns.
Prerequisites: Getting Your DGrid API Key
Before configuring any front‑end tool, you must obtain a valid DGrid service API Key from your DGrid account.
Sign in to DGrid
- Open your browser and navigate to the DGrid console (
https://dgrid.ai/api-keys). - Connect your wallet with your DGrid account.
Navigate to the API Keys Section
- After logging in, open the Dashboard.
- On the credits page, select Keys.
- You should now see a list of existing API keys or an empty state if none exists.
Create a New API Key
- Click Create New Key.
- Enter a name/label that indicates the target tool.
- (Optional but recommended) Enter the credit limit and/or expiration date.
- Confirm by clicking Create.
Copy and Store the API Key Securely
- Once generated, the API Key string will be displayed once in full.
- Click “Copy” and paste it into a secure location (e.g., password manager, secure note).
- Do not share this key publicly or commit it into version control systems like Git.
Important
Treat the DGrid API Key as a secret credential*, similar to a password. Anyone who has it can spend your DGrid quota and potentially access your data, depending on scopes.*
Example: Configuring DGrid in Cherry Studio
Open Cherry Studio’s Model Service Setting
- Launch Cherry Studio on your device.
- In the top-right corner, click the Settings icon.
- On the Settings page, select the Model Provider tab.
Add DGrid as a Custom Provider
- On the “Model Provider” page, scroll to the bottom of the existing provider list and click the + Add button.
- A pop-up window titled “Add Provider” will appear. Fill in the following fields:
- Provider Name: Enter a recognizable name (e.g.,
DGrid). - Provider Type: Select
OpenAIfrom the dropdown menu (DGrid is compatible with OpenAI’s API protocol). - Click OK to save the basic provider configuration.
Configure DGrid’s API Key and add some Models
- In the provider list, find the
DGridentry you just created. - Under the API Key field: Paste your DGrid API Key.
- Click the Check button to verify the key’s validity (a green checkmark indicates success; red warning means the key is invalid or expired).
- Under the API Host (Base URL) field: Enter DGrid’s official Base URL (
https://api.dgrid.ai/api). - In the models configuration section, click the + Add button. An “Add Model” pop-up will appear. Fill in the model details: (e.g.,
gpt-3.5-turbo,gemini-pro, etc). - To edit or delete a model later, click the Manage button next to the model entry.
Verify and Use DGrid Models in Cherry Studio
- Navigate to Cherry Studio’s main Chat Interface.
- Use the Model Dropdown to select your desired DGrid model (e.g.,
gpt-3.5-turbo). - Type a test prompt (e.g., “Explain quantum computing in simple terms”) and click Send. If the configuration is correct, DGrid’s model will return a response.
Summary
By following these steps, you can seamlessly integrate DGrid’s AI services into Cherry Studio. This configuration unlocks DGrid’s powerful models within a user-friendly frontend, combining flexibility, security, and ease of use. For more advanced use cases, refer to DGrid’s Documentation and Cherry Studio’s Advanced Settings guide .
You can apply the same step‑by‑step logic and configuration concepts to almost any OpenAI‑compatible or custom AI provider integration interface. Once configured, your users can seamlessly access and utilize DGrid’s AI model services directly from the front‑end tools they already work with.