LLM integration placeholder
curl --request POST \
--url https://apistable.ai/api/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{}
],
"stream": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', messages: [{}], stream: false})
};
fetch('https://apistable.ai/api/v1/chat/completions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/chat/completions"
payload = {
"model": "<string>",
"messages": [{}],
"stream": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}Common APIs and guides
LLM integration
Chat Completions integration boundary.
POST
/
api
/
v1
/
chat
/
completions
LLM integration placeholder
curl --request POST \
--url https://apistable.ai/api/v1/chat/completions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"messages": [
{}
],
"stream": false
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({model: '<string>', messages: [{}], stream: false})
};
fetch('https://apistable.ai/api/v1/chat/completions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/chat/completions"
payload = {
"model": "<string>",
"messages": [{}],
"stream": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}Operations are enabled individually by server configuration. Disabled operations return 503 without a task. Music credit deduction is currently disabled.
Current behavior
The endpoint validates the API key and returns HTTP 503 with code 50301 because no real LLM supplier is configured. It does not create an SSE stream or fabricate text. Future request/response compatibility must be verified per model. Do not send media output_count or fallback fields here.Authorizations
Every valid key can submit and query its own account. Revoked keys are rejected.