🚀 GLM Coding Plan — built for devs: 3× usage, 1/7 cost • Limited-Time Offer ➞
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>" } ] } ] } ] }
This endpoint is used to query the result of an asynchronous request.
Use the following format for authentication: Bearer
Config desired response language for HTTP requests.
en-US,en
"en-US,en"
Agent ID: vidu_template_agent.
vidu_template_agent
Task ID from async response.
Processing successful
pending (processing), success (completed), failed (failed).
pending
success
failed
Agent ID
Asynchronous task ID.
Agent output.
Hide child attributes
Result index.
Reason for model inference termination. Can be ‘stop’, ‘tool_calls’, ‘length’, ‘sensitive’, or ‘network_error’.
Role: fixed as assistant.
assistant
Video file metadata
object type: video_url.
video_url
MP4 video URL.
Was this page helpful?