Retrieve the list of LLM chats
March 7, 2025
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 token
is required, see Setup useapi.net for details.
Query Parameters
-
account
is optional when only one LLM chat.minimax.io account configured. However, if you have multiple accounts configured, this parameter becomes required. -
limit
is optional, specify the number of records to return. Default 20. -
lastChatID
is optional, specify the chatID from where to start.
Responses
-
{ "hasMore": true, "limit": 2, "items": [ { "chatID": "123467890", "createTime": 1741385047356, "updateTime": 1741385047356, "chatTitle": "hola", "chatDescription": "hola", "requestStatus": 0, "isTop": false, "chatStyle": "pro", "robotID": 1, "robotName": "HiloAI", "robotAvatar": { "small": "https://cdn.yingshi-ai.com/….png", "medium": "https://cdn.yingshi-ai.com/….png", "large": "https://cdn.yingshi-ai.com/….png", "oversize": "https://cdn.yingshi-ai.com/….png" }, "isPhoneMode": false, "type": 0, "attachments": [], "abstractContent": "¡Hola! ¿Cómo estás hoy? Estoy aquí para ayudarte con cualquier cosa que necesites.", "canSearch": true, "favoriteStatus": 0, "model": "mm-01" }, { "chatID": "9876543210", "createTime": 1741385031166, "updateTime": 1741385031166, "chatTitle": "hola", "chatDescription": "hola", "requestStatus": 0, "isTop": false, "chatStyle": "pro", "robotID": 1, "robotName": "HiloAI", "robotAvatar": { "small": "https://cdn.yingshi-ai.com/….png", "medium": "https://cdn.yingshi-ai.com/….png", "large": "https://cdn.yingshi-ai.com/….png", "oversize": "https://cdn.yingshi-ai.com/….png" }, "isPhoneMode": false, "type": 0, "attachments": [], "abstractContent": "<think>\nOkay, the user said \"hola\". That's Spanish for \"hello\". I should respond in Spanish to match their language.\n\nI need to make sure my response is friendly and welcoming. Maybe say \"¡Hola! ¿En qué puedo ayudarte hoy?\" which means \"Hello! How can I assist you today?\"\n\nWait, does the user need help with something specific? They might be testing if I understand Spanish. I'll keep it open-ended and ask how I can help them. That way they can proceed with their actual request.\n\nAlternatively, maybe they just want a greeting back. But it's better to prompt them to ask for assistance. So the response should be welcoming and encourage them to ask their question.\n</think>\n\n¡Hola! ¿En qué puedo ayudarte hoy?", "canSearch": true, "favoriteStatus": 0, "model": "ds-r1" } ] }
-
{ "error": "<Error message>", "code": 400 }
-
{ "error": "Unauthorized", "code": 401 }
Model
{ // TypeScript, all fields are optional
hasMore: boolean
limit: number
items: {
chatID: string
createTime: number
updateTime: number
chatTitle: string
chatDescription: string
requestStatus: number
isTop: boolean
chatStyle: string
robotID: number
robotName: string
robotAvatar: {
small: string
medium: string
large: string
oversize: string
}
isPhoneMode: boolean
type: number
attachments: {
id: string
type: string
fileID: string
fileType: string
fileName: string
img: string
link: string
sceneId: string
text: string
title: string
content: string
}[]
abstractContent: string
canSearch: boolean
favoriteStatus: number
model: string
}[]
}
Examples
-
curl "https://api.useapi.net/v1/minimax/llm/?account=account" \ -H "Accept: application/json" \ -H "Authorization: Bearer …"
-
const token = "API token"; const account = "Previously configured account"; const apiUrl = `https://api.useapi.net/v1/minimax/llm/?account=${account}`; const response = await fetch(apiUrl, { headers: { "Authorization": `Bearer ${token}`, }, }); const result = await response.json(); console.log("response", {response, result});
-
import requests token = "API token" account = "Previously configured account" apiUrl = f"https://api.useapi.net/v1/minimax/llm/?account={account}" headers = { "Content-Type": "application/json", "Authorization" : f"Bearer {token}" } response = requests.get(apiUrl, headers=headers) print(response, response.json())