Delete LLM chats and/or messages
March 7, 2025 (November 24, 2025)
This version of MiniMax LLM has been decommissioned and will be replaced with upcoming Google AI and Gemini support.
Table of contents
Equivalent of chat.minimax.io.
Use your chat.minimax.io account for this endpoint, see Setup MiniMax for details.
https://api.useapi.net/v1/minimax/llm/?…
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Query Parameters
-
accountis optional when only one LLM chat.minimax.io account configured. However, if you have multiple accounts configured, this parameter becomes required. -
chatIDsis optional, specify comma-separated list of chatID values that you want to delete. Set it toallto delete all chats for your account. -
msgIDsis optional, specify a comma-separated list of msgID values that you want to delete.
Responses
-
{ "error": "<Error message>", "code": 400 } -
{ "error": "Unauthorized", "code": 401 }
Examples
-
curl "https://api.useapi.net/v1/minimax/llm/?account=<account>&msgID=<msgID>" \ -H "Accept: application/json" \ -H "Authorization: Bearer …" -
const token = "API token"; const account = "Previously configured account"; const msgID = "Message msgID you want to delete"; const apiUrl = `https://api.useapi.net/v1/minimax/llm/?account=${account}&msgID=${msgID}`; const response = await fetch(apiUrl, { method: 'DELETE', headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result}); -
import requests token = "API token" account = "Previously configured account" msgID = "Message msgID you want to delete" apiUrl = f"https://api.useapi.net/v1/minimax/llm/?account={account}&msgID={msgID}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response, response.json())