Chat Result
Retrieve the status/result of an async chat inference request.
post
Retrieve an asynchronous chat task status or final result.
Authorizations
Body
idstringRequiredPattern:
^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[89abAB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}$
Responses
200
Standard OpenAI chat completion response containing the generated message and metadata.
application/json
404
Default Response
application/json
500
Default Response
application/json
post
POST /async/chat/result HTTP/1.1
Host: api.distribute.ai
authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 13
{
"id": "text"
}
{
"id": "text",
"status": "CREATED",
"created": 1,
"finished": 1,
"model": "text",
"service_tier": "text",
"usage": {
"completion_tokens": 1,
"prompt_tokens": 1,
"total_tokens": 1
},
"choices": [
{
"finish_reason": "stop",
"index": 1,
"message": {
"content": "text",
"tool_calls": [
{
"id": "text",
"type": "function",
"function": {
"name": "text",
"arguments": "text"
}
}
],
"role": "system",
"name": "text"
}
}
]
}
Last updated