> ## Documentation Index
> Fetch the complete documentation index at: https://gasdocs-en.gasstation.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Integration Guide

This guide will help you complete the integration of the Gas Station platform API, including API creation, key retrieval, and parameter encryption.

## Step 1: Create an API on the Gas Station Platform

1. Log in to the Gas Station platform.
2. In the left navigation bar, select **API Management**.
3. Click the **Create API** button, fill in the relevant information, and submit.

   ![API Creation Example](https://mintcdn.com/gas-en/r23bcRjFTJtH8GZu/images/apis/gas-station-api-add.png?fit=max\&auto=format\&n=r23bcRjFTJtH8GZu\&q=85\&s=ced4e53f0406490e77a1360a6d9c4ee6)
4. After successful creation, the API will appear in the API list.

## Step 2: View the API's app\_id and Key

1. On the **API Management** page, find the API you just created.
2. Click the API to enter the details page.

   ![API Details Example](https://mintcdn.com/gas-en/r23bcRjFTJtH8GZu/images/apis/gas-station-api-detail.png?fit=max\&auto=format\&n=r23bcRjFTJtH8GZu\&q=85\&s=c979ff36df8d760e33acd44281fc907f)
3. On the details page, you can see the `app_id`. To view the `key`, you need to verify your identity through signature verification before it is displayed (please keep the key safe and do not disclose it).

   ![API Signature Verification Example](https://mintcdn.com/gas-en/r23bcRjFTJtH8GZu/images/apis/gas-station-api-sign.png?fit=max\&auto=format\&n=r23bcRjFTJtH8GZu\&q=85\&s=4ed82575e36dee6e7da4d68276b3897d)

   ![Key Viewing Example](https://mintcdn.com/gas-en/r23bcRjFTJtH8GZu/images/apis/gas-station-api-key.png?fit=max\&auto=format\&n=r23bcRjFTJtH8GZu\&q=85\&s=4bf85573da08c0126845b180c13f7047)

## Step 3: Encrypt API Request Parameters with the Key Using AES

When calling the API, you need to encrypt the request parameters using the key with AES encryption. Common AES modes include ECB, CBC, CFB, OFB, and CTR, and PKCS7 is a commonly used padding method. Please confirm the required encryption mode and padding method with the platform before encrypting.

![AES Encryption Example](https://mintcdn.com/gas-en/r23bcRjFTJtH8GZu/images/apis/gas-station-ase.png?fit=max\&auto=format\&n=r23bcRjFTJtH8GZu\&q=85\&s=5068f2b270d62db9fe7661b5f22c5b19)

> **Note:**
>
> * The key length must match the encryption algorithm (e.g., 16 bytes for AES-128, 24 bytes for AES-192, 32 bytes for AES-256).
> * The plaintext must be padded before encryption, commonly using PKCS7 padding.
> * Implementations may vary in different programming languages. Please refer to the official documentation or SDK.
> * Keep your key safe and do not disclose it.

For more information on AES encryption modes, padding methods, and online encryption/decryption tools, see [AES Encryption Tool](https://anycript.com/crypto)（You are about to leave Gas Station, please pay attention to the safety of your account and property）.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.