Chat completions
Retrieve a chat completion
Returns an LLM completion your account created. A completion from a retired model reads back from its kept answer.
GET
/
v1
/
chat
/
completions
/
{completion_id}
Retrieve a chat completion
curl --request GET \
--url https://api.abstract.inc/v1/chat/completions/{completion_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abstract.inc/v1/chat/completions/{completion_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "resp_abc123",
"object": "chat.completion",
"created": 1790000000,
"model": "glm-5.3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "RFC 8628 defines the OAuth 2.0 device authorization grant."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 14,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens": 96,
"total_tokens": 110
}
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}Authorizations
Headers
The API version your client was written for. 2026-10-27 is the only version. Without this header the request is answered under the newest version; a version the API does not answer is refused with 400 unsupported_api_version before anything runs.
Available options:
2026-10-27 Path Parameters
⌘I
Retrieve a chat completion
curl --request GET \
--url https://api.abstract.inc/v1/chat/completions/{completion_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abstract.inc/v1/chat/completions/{completion_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "resp_abc123",
"object": "chat.completion",
"created": 1790000000,
"model": "glm-5.3",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "RFC 8628 defines the OAuth 2.0 device authorization grant."
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 14,
"prompt_tokens_details": {
"cached_tokens": 0
},
"completion_tokens": 96,
"total_tokens": 110
}
}{
"error": {
"message": "Invalid API key.",
"type": "invalid_request_error",
"code": "invalid_api_key"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>",
"retryable": true,
"retry_after_s": 123,
"request_id": "<string>",
"param": "<string>"
}
}