curl --request POST \
--url https://api.acedata.cloud/aichat2/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-4"
}
'import requests
url = "https://api.acedata.cloud/aichat2/conversations"
payload = { "model": "gpt-4" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'gpt-4'})
};
fetch('https://api.acedata.cloud/aichat2/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "f2f4b3e8-0c0a-4d3a-aaa2-7ff80c0a1c44",
"answer": "Hi! I'm an AI assistant. How can I help you today?"
}{
"error": {
"code": "bad_request",
"message": "model is required"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "not_found",
"message": "conversation not found"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "chat_error",
"message": "upstream LLM returned an error"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Conversations
Next-generation AI conversation endpoint. Generalises the v1 /aichat/conversations API with multi-modal user content, agentic tool calling (built-in tools + connection-bound MCP), SSE/NDJSON streaming and conversation-store CRUD actions (chat, retrieve, retrieve_batch, update, delete). Drop-in compatible with v1’s question/model/stateful/references shape — same response when callers stick to the v1 fields and accept: application/json.
curl --request POST \
--url https://api.acedata.cloud/aichat2/conversations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gpt-4"
}
'import requests
url = "https://api.acedata.cloud/aichat2/conversations"
payload = { "model": "gpt-4" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: 'gpt-4'})
};
fetch('https://api.acedata.cloud/aichat2/conversations', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "f2f4b3e8-0c0a-4d3a-aaa2-7ff80c0a1c44",
"answer": "Hi! I'm an AI assistant. How can I help you today?"
}{
"error": {
"code": "bad_request",
"message": "model is required"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "not_found",
"message": "conversation not found"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}{
"error": {
"code": "chat_error",
"message": "upstream LLM returned an error"
},
"trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}Autoryzacje
API token from https://platform.acedata.cloud
Nagłówki
Aichat2 Conversations Param Accept
application/json, application/x-ndjson, text/event-stream Treść
Aichat2 Conversations Model
gpt-4, gpt-4.1, gpt-4.1-mini, gpt-4.1-nano, gpt-4o, gpt-4o-2024-05-13, gpt-4o-all, gpt-4o-image, gpt-4o-mini, gpt-5-all, gpt-5.1-all, gpt-5.2-pro, gpt-5.4-mini, gpt-5.4-nano, gpt-image-1, claude-3-5-haiku-20241022, claude-3-5-sonnet-20240620, claude-3-5-sonnet-20241022, claude-3-7-sonnet-20250219, claude-3-haiku-20240307, claude-3-opus-20240229, claude-3-sonnet-20240229, claude-haiku-4-5-20251001, claude-opus-4-1-20250805, claude-opus-4-20250514, claude-opus-4-5-20251101, claude-opus-4-6, claude-opus-4-8, claude-opus-4-7, claude-sonnet-4-20250514, claude-sonnet-4-5-20250929, claude-sonnet-4-6, gemini-2.0-flash-lite, gemini-2.5-flash-lite, gemini-3-pro-preview, gemini-3.1-flash-image-preview, gemini-3.1-flash-lite-preview, gemini-3.1-pro, gemini-3.1-pro-preview, grok-3, grok-3-fast, grok-4, grok-4-0709, deepseek-chat, deepseek-r1, deepseek-r1-0528, deepseek-reasoner, deepseek-v3, deepseek-v3-250324, deepseek-v3.2-exp, deepseek-v4-flash, kimi-k2-0711-preview, kimi-k2-0905-preview, kimi-k2-instruct-0905, kimi-k2-thinking, kimi-k2-thinking-turbo, kimi-k2-turbo-preview, kimi-k2.5, glm-3-turbo, glm-4.5, glm-4.5v, glm-4.6, glm-4.7, glm-5, glm-5-turbo, glm-5.2, glm-5.1, o1, o1-mini, o1-pro, o3, o3-mini, o3-pro, o4-mini Aichat2 Conversations Action
chat, retrieve, retrieve_batch, update, delete Aichat2 Conversations Id
Aichat2 Conversations Question
Aichat2 Conversations Message
Aichat2 Conversations Stateful
Aichat2 Conversations References
Aichat2 Conversations Preset
Aichat2 Conversations Max Turns
x >= 1Aichat2 Conversations Async
Aichat2 Conversations Callback Url
Aichat2 Conversations Allowed Skills
Aichat2 Conversations Allowed Mcp Servers
Aichat2 Conversations Unattended Policy
Show child attributes
Show child attributes
Aichat2 Conversations Tool Results
Show child attributes
Show child attributes
Aichat2 Conversations Messages
Aichat2 Conversations Title
Aichat2 Conversations User Id
Aichat2 Conversations Application Id
Aichat2 Conversations Model Group
chatgpt, claude, gemini, grok, kimi, glm, deepseek Aichat2 Conversations Offset
x >= 0Aichat2 Conversations Limit
1 <= x <= 100Czy ta strona była pomocna?

