POST
/
v1
/
agents
/
async-result
cURL
curl --request POST \
  --url https://api.z.ai/api/v1/agents/async-result \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "agent_id": "<string>",
  "async_id": "<string>"
}'
{
  "status": "<string>",
  "agent_id": "<string>",
  "async_id": "<string>",
  "choices": [
    {
      "index": 123,
      "finish_reason": "<string>",
      "message": [
        {
          "role": "<string>",
          "content": [
            {
              "type": "<string>",
              "video_url": "<string>"
            }
          ]
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

Use the following format for authentication: Bearer <your api key>

Headers

Accept-Language
enum<string>
default:en-US,en

Config desired response language for HTTP requests.

Available options:
en-US,en
Example:

"en-US,en"

Body

application/json

Response

Processing successful

The response is of type object.