# API

API Key service provides users with exclusive authentication keys, enabling seamless integration with the [data analysis](https://marketplace.dify.ai/plugins/digitforce/data_analysis) tool on the Dify. Get started with your data analysis journey through simple configuration.

## Key Features

### Exclusive API Key Generation

- Generate up to **10 API Keys** per user account
- Each API Key is unique, ensuring your data security
- Support for generating new API Keys or deleting unused keys anytime

### Transparent Billing Model

- **10 credits** consumed per API call
- Real-time display of credits usage

### Flexible Credit Management

- **Customizable monthly credit limits** for each API Key
- Set spending caps to prevent unexpected charges
- Automatic suspension when monthly limit is reached
- Reset limits at the beginning of each month

### Dify Platform Integration

- Optimized for [data analysis](https://marketplace.dify.ai/plugins/digitforce/data_analysis) tool on Dify
- One-click configuration for instant use
- Stable and reliable service guarantee

## Quick Start

### Step 1: Generate API Key

1. Log into your account
2. Navigate to the "API" page
3. Click "Generate API Key"
4. Set an easily identifiable name for your API Key
5. Set monthly credit limit (optional, defaults to unlimited)
6. Securely save the generated API Key

### Step 2: Configure on Dify

1. Open the Dify platform
2. Access the [data analysis](https://marketplace.dify.ai/plugins/digitforce/data_analysis) tool settings
3. Paste your key in the API Key configuration field
4. Save the configuration

### Step 3: Start Using

Once configured, you can use the data analysis tool on the Dify platform for data analysis. Each call will automatically deduct 10 credits from your account.

## Usage Limits

| Item                            | Limit                          |
|---------------------------------|--------------------------------|
| Maximum API Keys per account    | 10                             |
| Cost per API call               | 10 credits                     |
| Monthly credits usage            | Customizable                   |
| API Key validity                 | Permanent (unless manually deleted) |

## Security Guidelines

⚠️ **Important Reminders**  
- Keep your API Keys secure and do not share them with others  
- Consider rotating API Keys regularly to ensure account security  
- If you suspect an API Key has been compromised, delete it immediately and generate a new one
