> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.ecylt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 免费GPT-4o-mini

> 调用WZH团队提供的免费GPT接口

<Note>
  本项目仅用于学习和研究目的，请勿用于商业用途
</Note>

### API接口（x-www-form-urlencoded）

接口默认模型有且仅有`GPT-4o-mini`

传参格式：`x-www-form-urlencoded`

#### **发起新的对话**

* URL: `https://api.ecylt.top/v1/free_gpt/chat.php`
* Method: POST
* Data:
  * `action`: `new`
  * `system_prompt`: 系统提示，可选

#### **继续对话**

* URL: `https://api.ecylt.top/v1/free_gpt/chat.php`
* Method: POST
* Data:
  * `action`: `continue`
  * `message`: 用户输入的消息
  * `conversation_id`: 对话ID，由服务器生成

#### **删除历史**

* URL: `https://api.ecylt.top/v1/free_gpt/chat.php`
* Method: POST
* Data:
  * `action`: `delete`

***

### API接口（json）

接口默认模型有且仅有`GPT-4o-mini`

传参格式：`json`

#### **发起新的对话**

* URL: `https://api.ecylt.top/v1/free_gpt/chat_json.php`
* Method: POST
* Body:

```json theme={null}
{
    "action": "new",
    "system_prompt": "系统提示，可选"
}
```

#### **继续对话**

* URL: `https://api.ecylt.top/v1/free_gpt/chat_json.php`
* Method: POST
* Body:

```json theme={null}
{
    "action": "continue",
    "message": "用户输入的消息",
    "conversation_id": "对话ID，由服务器生成"
}
```

#### **删除历史**

* 要删除对话历史，请使用以下请求：
  * URL: `https://api.ecylt.top/v1/free_gpt/chat_json.php`
  * Method: POST
  * Body:

```json theme={null}
{
    "action": "delete",
    "conversation_id": "对话ID"
}
```

***

### 注意事项

* 对话历史将保存在云端，每次对话结束后会自动保存，删除对话后云端也将同步删除
