> ## 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.

# Free GPT-4o-mini

> Call the free GPT API provided by the WZH Team

<Note>
  This project is for learning and research purposes only. Do not use it for commercial purposes.
</Note>

### API endpoint (x-www-form-urlencoded)

The API default model is exclusively `GPT-4o-mini`

Parameter format: `x-www-form-urlencoded`

#### **Start a new conversation**

* URL: `https://api.ecylt.top/v1/free_gpt/chat.php`
* Method: POST
* Data:
  * `action`: `new`
  * `system_prompt`: System prompt, optional

#### **Continue a conversation**

* URL: `https://api.ecylt.top/v1/free_gpt/chat.php`
* Method: POST
* Data:
  * `action`: `continue`
  * `message`: User input message
  * `conversation_id`: Conversation ID, generated by the server

#### **Delete history**

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

***

### API endpoint (json)

The API default model is exclusively `GPT-4o-mini`

Parameter format: `json`

#### **Start a new conversation**

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

```json theme={null}
{
    "action": "new",
    "system_prompt": "System prompt, optional"
}
```

#### **Continue a conversation**

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

```json theme={null}
{
    "action": "continue",
    "message": "User input message",
    "conversation_id": "Conversation ID, generated by the server"
}
```

#### **Delete history**

* To delete conversation history, use the following request:
  * URL: `https://api.ecylt.top/v1/free_gpt/chat_json.php`
  * Method: POST
  * Body:

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

***

### Important notes

* Conversation history is saved in the cloud. It is automatically saved after each conversation and synced for deletion when you delete a conversation.
