General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results.
Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video.
GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Overview - Z.AI DEVELOPER DOCUMENT","description":"Use GLM models like GLM-5.3 \u0026 GLM-5.3-FLASH for AI coding in Claude Code, Kilo Code, Cline, OpenCode, Clawdbot/OpenClaw and more. Plans from $18/month—fast, reliable code generation and tool use for daily dev work.","colors":{"primary":"#141618","light":"#9fa0a0","dark":"#141618"},"logo":{"light":"https://mintcdn.com/zhipu-32152247/B_E8wI-eiNa1QlPV/logo/dark.svg?fit=max\u0026auto=format\u0026n=B_E8wI-eiNa1QlPV\u0026q=85\u0026s=75deefa9dea5bdbc84d4da68885c267f","dark":"https://mintcdn.com/zhipu-32152247/B_E8wI-eiNa1QlPV/logo/light.svg?fit=max\u0026auto=format\u0026n=B_E8wI-eiNa1QlPV\u0026q=85\u0026s=c1ecf1af358fa8eeab8c06052337f8f6","href":"https://z.ai/model-api"},"favicon":"https://mintcdn.com/zhipu-32152247/ZWmez2h5N6TCeIMS/favicon.svg?fit=max\u0026auto=format\u0026n=ZWmez2h5N6TCeIMS\u0026q=85\u0026s=f41adc4aa1fc28f2be33d46791810b1f","api":{"openapi":["openapi.json"],"params":{"expanded":"all"},"playground":{"display":"interactive","proxy":false},"examples":{"defaults":"all","languages":["bash","python","javascript","java"],"prefill":true}},"appearance":{"default":"dark","strict":false},"navbar":{"links":[{"href":"https://z.ai/manage-apikey/apikey-list","label":"API Keys"},{"href":"https://z.ai/manage-apikey/billing","label":"Payment Method"}]},"footer":{"socials":{"x":"https://x.com/Zai_org","github":"https://github.com/zai-org","discord":"https://discord.gg/QR7SARHRxK","linkedin":"https://www.linkedin.com/company/zdotai"}},"contextual":{"options":["copy","view"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"zhipu-32152247","hasAudioNarration":false,"actualSubdomain":"zhipu-32152247","customDomains":["docs.z.ai"],"gitSource":{"type":"github","owner":"zai-doc","repo":"zai-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae867131795b614d9d61588","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"Guides","count":25},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Coding Plan","count":18},{"language":"default","tag":"Get Started","count":10},{"language":"default","tag":"Guide","count":8},{"language":"default","tag":"Capabilities","count":7},{"language":"default","tag":"SDKs Guide","count":5},{"language":"default","tag":"Agent API","count":4},{"language":"default","tag":"Tool API","count":4},{"language":"default","tag":"GLM Coding Plan","count":4}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"#footer div:last-child{display:none}.md\\:h-10{height:3rem}.prose-dark :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900}.prose-dark :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900}"}],"page":{"pagePath":"api-reference/agents/agent","slug":"/api-reference/agents/agent","pageMetadata":{"title":"Agent Chat","openapi":"POST /v1/agents","description":"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. \n\n Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: `French Kiss`, `Body Shake Dance`, and `Sexy Me`. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. \n\n GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.","href":"/api-reference/agents/agent"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: \", _jsx(_components.code, {\n children: \"French Kiss\"\n }), \", \", _jsx(_components.code, {\n children: \"Body Shake Dance\"\n }), \", and \", _jsx(_components.code, {\n children: \"Sexy Me\"\n }), \". After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\"\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Agent Chat","openapi":"POST /v1/agents","description":"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. \n\n Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: `French Kiss`, `Body Shake Dance`, and `Sexy Me`. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. \n\n GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.","href":"/api-reference/agents/agent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"description":"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. \n\n Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: `French Kiss`, `Body Shake Dance`, and `Sexy Me`. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. \n\n GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.","parameters":["4f2f2f5a-1981-40d3-bced-c2c5212b66b3"],"requestBody":"79dfffb4-c21f-42c9-9011-45892252ff58","responses":{"200":"d4a86d2a-7870-46ca-98de-5459e5c74f48","default":"64711289-0397-4f1d-a0b2-3306c205bd58"},"method":"post","type":"path","servers":["44e4d08f-f7aa-4799-a098-7f934b19b150"],"security":["0d10cd38-a9de-41b0-b59a-512787920e01"],"path":"/v1/agents","baseUrlOptions":["https://api.z.ai/api"],"title":"","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","java"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.oneOf.0.agent_id":"general_translation","body.oneOf.0.messages.items.0.role":"user","body.oneOf.0.messages.items.0.content.items.0.type":"text","body.oneOf.0.messages.items.0.content.items.0.text":"\u003cstring>","body.oneOf.0.stream":true,"body.oneOf.0.custom_variables.glossary":"\u003cstring>","body.oneOf.0.custom_variables.strategy_config.general.suggestion":"\u003cstring>"}],"disableProxy":true},"dependencies":{"parameters":{"4f2f2f5a-1981-40d3-bced-c2c5212b66b3":{"name":"Accept-Language","in":"header","schema":{"type":"string","description":"Config desired response language for HTTP requests.","default":"en-US,en","example":"en-US,en","enum":["en-US,en"],"isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"required":false}},"requestBody":{"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"General Translation","required":["agent_id","messages"],"properties":{"agent_id":{"type":"string","description":"Agent ID: `general_translation`.","enum":["general_translation"],"isRequired":true,"uniqueKey":"oneOf.0.agent_id","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","description":"Session message body.","items":{"type":"object","properties":{"role":{"type":"string","description":"User input role: `user`","example":"user","default":"user","enum":["user"],"isRequired":true,"uniqueKey":"oneOf.0.messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","description":"Content list.","items":{"type":"object","properties":{"type":{"type":"string","description":"Supported type: `text`.","default":"text","enum":["text"],"isRequired":true,"uniqueKey":"oneOf.0.messages.items.[INDEX].content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"User text input.","isRequired":true,"uniqueKey":"oneOf.0.messages.items.[INDEX].content.items.[INDEX].text","typeLabel":"string"}},"required":["type","text"],"uniqueKey":"oneOf.0.messages.items.[INDEX].content.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.messages.items.[INDEX].content","typeLabel":"object[]"}},"required":["role","content"],"uniqueKey":"oneOf.0.messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.0.messages","typeLabel":"object[]"},"stream":{"type":"boolean","description":"False for sync calls (default). True for streaming.","uniqueKey":"oneOf.0.stream","typeLabel":"boolean"},"custom_variables":{"type":"object","properties":{"source_lang":{"type":"string","description":"Supported language codes (default: `auto`):\n- `auto`: Auto Detect\n- `zh-CN`: Simplified Chinese\n- `zh-TW`: Traditional Chinese\n- `wyw`: Classical Chinese\n- `yue`: Cantonese\n- `en`: English\n- `ja`: Japanese\n- `ko`: Korean\n- `fr`: French\n- `de`: German\n- `es`: Spanish\n- `ru`: Russian\n- `pt`: Portuguese\n- `it`: Italian\n- `ar`: Arabic\n- `hi`: Hindi\n- `bg`: Bulgarian\n- `cs`: Czech\n- `da`: Danish\n- `el`: Greek\n- `et`: Estonian\n- `fi`: Finnish\n- `hu`: Hungarian\n- `id`: Indonesian\n- `lt`: Lithuanian\n- `lv`: Latvian\n- `nl`: Dutch\n- `no`: Norwegian Bokmål\n- `pl`: Polish\n- `ro`: Romanian\n- `sk`: Slovak\n- `sl`: Slovenian\n- `sv`: Swedish\n- `th`: Thai\n- `tr`: Turkish\n- `uk`: Ukrainian\n- `vi`: Vietnamese\n- `my`: Burmese\n- `ms`: Malay\n- `Pinyin`: Pinyin\n- `IPA`: International Phonetic Alphabet\n","enum":["auto","zh-CN","zh-TW","wyw","yue","en","ja","ko","fr","de","es","ru","pt","it","ar","hi","bg","cs","da","el","et","fi","hu","id","lt","lv","nl","no","pl","ro","sk","sl","sv","th","tr","uk","vi","my","ms","Pinyin","IPA"],"uniqueKey":"oneOf.0.custom_variables.source_lang","typeLabel":"enum\u003cstring>"},"target_lang":{"type":"string","description":"Target language code (default: `zh-CN`):\n- `zh-CN`: Simplified Chinese\n- `zh-TW`: Traditional Chinese\n- `wyw`: Classical Chinese\n- `yue`: Cantonese\n- `en`: English\n- `en-GB`: English (British)\n- `en-US`: English (American)\n- `ja`: Japanese\n- `ko`: Korean\n- `fr`: French\n- `de`: German\n- `es`: Spanish\n- `ru`: Russian\n- `pt`: Portuguese\n- `it`: Italian\n- `ar`: Arabic\n- `hi`: Hindi\n- `bg`: Bulgarian\n- `cs`: Czech\n- `da`: Danish\n- `el`: Greek\n- `et`: Estonian\n- `fi`: Finnish\n- `hu`: Hungarian\n- `id`: Indonesian\n- `lt`: Lithuanian\n- `lv`: Latvian\n- `nl`: Dutch\n- `no`: Norwegian Bokmål\n- `pl`: Polish\n- `ro`: Romanian\n- `sk`: Slovak\n- `sl`: Slovenian\n- `sv`: Swedish\n- `th`: Thai\n- `tr`: Turkish\n- `uk`: Ukrainian\n- `vi`: Vietnamese\n- `my`: Burmese\n- `ms`: Malay\n- `Pinyin`: Pinyin\n- `IPA`: International Phonetic Alphabet\n.","enum":["zh-CN","zh-TW","wyw","yue","en","en-GB","en-US","ja","ko","fr","de","es","ru","pt","it","ar","hi","bg","cs","da","el","et","fi","hu","id","lt","lv","nl","no","pl","ro","sk","sl","sv","th","tr","uk","vi","my","ms","Pinyin","IPA"],"uniqueKey":"oneOf.0.custom_variables.target_lang","typeLabel":"enum\u003cstring>"},"glossary":{"type":"string","description":"Glossary ID.","uniqueKey":"oneOf.0.custom_variables.glossary","typeLabel":"string"},"strategy":{"type":"string","description":"Translation strategy (default: `general`),Optional:\n- `general`: General Translation\n- `paraphrase`: Paraphrase Translation\n- `two_step`: Two-Step Translation\n- `three_step`: Three-Stage Translation\n- `reflection`: Reflection Translation; cot: COT Translation","enum":["general","paraphrase","two_step","three_step","reflection"],"uniqueKey":"oneOf.0.custom_variables.strategy","typeLabel":"enum\u003cstring>"},"strategy_config":{"type":"object","description":"Strategy parameters.","properties":{"general":{"type":"object","properties":{"suggestion":{"type":"string","description":"Translation suggestions or style requirements (e.g., terminology mapping, style guidelines).","uniqueKey":"oneOf.0.custom_variables.strategy_config.general.suggestion","typeLabel":"string"}},"uniqueKey":"oneOf.0.custom_variables.strategy_config.general","typeLabel":"object"},"cot":{"type":"object","description":"Parameters when strategy is `cot`.","properties":{"reason_lang":{"type":"string","description":"Language for translation reasoning, values: [`from`|`to`], default: `to`.","enum":["from","to"],"uniqueKey":"oneOf.0.custom_variables.strategy_config.cot.reason_lang","typeLabel":"enum\u003cstring>"}},"uniqueKey":"oneOf.0.custom_variables.strategy_config.cot","typeLabel":"object"}},"uniqueKey":"oneOf.0.custom_variables.strategy_config","typeLabel":"object"}},"uniqueKey":"oneOf.0.custom_variables","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"General Translation · object"},{"type":"object","title":"Popular Special Effects Videos","required":["agent_id","messages"],"properties":{"agent_id":{"type":"string","description":"Agent ID: `vidu_template_agent`.","enum":["vidu_template_agent"],"isRequired":true,"uniqueKey":"oneOf.1.agent_id","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","description":"Session message body.","items":{"type":"object","properties":{"role":{"type":"string","description":"User input role: `user`","example":"user","default":"user","enum":["user"],"isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","description":"Content list.","items":{"oneOf":[{"type":"object","title":"text","required":["type","text"],"properties":{"type":{"type":"string","description":"Specifies that this content is text.","enum":["text"],"isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"User text input.","isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.0.text","typeLabel":"string"}},"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.0","typeLabel":"text · object"},{"type":"object","title":"image_url","required":["type","image_url"],"properties":{"type":{"type":"string","description":"Specifies that this content is an image URL.","enum":["image_url"],"isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"image_url":{"type":"string","format":"uri","description":"Image URL input.","isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.1.image_url","typeLabel":"string\u003curi>"}},"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX].oneOf.1","typeLabel":"image_url · object"}],"uniqueKey":"oneOf.1.messages.items.[INDEX].content.items.[INDEX]","typeLabel":"text · object | image_url · object"},"isRequired":true,"uniqueKey":"oneOf.1.messages.items.[INDEX].content","typeLabel":"(text · object | image_url · object)[]"}},"required":["role","content"],"uniqueKey":"oneOf.1.messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.1.messages","typeLabel":"object[]"},"request_id":{"type":"string","description":"User-defined unique ID; used to distinguish requests. Auto-generated if omitted.","uniqueKey":"oneOf.1.request_id","typeLabel":"string"},"custom_variables":{"type":"object","description":"Agent extension parameters.","properties":{"template":{"type":"string","description":"Effect template: `french_kiss`, `bodyshake`, or `sexy_me`.","enum":["french_kiss","bodyshake","sexy_me"],"isRequired":true,"uniqueKey":"oneOf.1.custom_variables.template","typeLabel":"enum\u003cstring>"}},"required":["template"],"uniqueKey":"oneOf.1.custom_variables","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Popular Special Effects Videos · object"},{"type":"object","title":"GLM Slide/Poster","required":["agent_id","messages"],"properties":{"agent_id":{"type":"string","description":"Agent ID.","enum":["slides_glm_agent"],"isRequired":true,"uniqueKey":"oneOf.2.agent_id","typeLabel":"enum\u003cstring>"},"messages":{"type":"array","description":"Message body.","items":{"type":"object","properties":{"role":{"type":"string","description":"User input role: `user`","example":"user","default":"user","enum":["user"],"isRequired":true,"uniqueKey":"oneOf.2.messages.items.[INDEX].role","typeLabel":"enum\u003cstring>"},"content":{"type":"array","description":"Content list.","items":{"type":"object","title":"text","required":["type","text"],"properties":{"type":{"type":"string","description":"Specifies that this content is text.","enum":["text"],"isRequired":true,"uniqueKey":"oneOf.2.messages.items.[INDEX].content.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"User text input.","isRequired":true,"uniqueKey":"oneOf.2.messages.items.[INDEX].content.items.[INDEX].text","typeLabel":"string"}},"uniqueKey":"oneOf.2.messages.items.[INDEX].content.items.[INDEX]","typeLabel":"text · object"},"isRequired":true,"uniqueKey":"oneOf.2.messages.items.[INDEX].content","typeLabel":"text · object[]"}},"required":["role","content"],"uniqueKey":"oneOf.2.messages.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"oneOf.2.messages","typeLabel":"object[]"},"stream":{"type":"boolean","default":true,"description":"False for sync calls (default). True for streaming.","uniqueKey":"oneOf.2.stream","typeLabel":"boolean"},"conversation_id":{"type":"string","description":"Conversation Id.","uniqueKey":"oneOf.2.conversation_id","typeLabel":"string"},"request_id":{"type":"string","description":"User-defined unique ID; used to distinguish requests. Auto-generated if omitted.","uniqueKey":"oneOf.2.request_id","typeLabel":"string"}},"uniqueKey":"oneOf.2","typeLabel":"GLM Slide/Poster · object"}],"uniqueKey":"","typeLabel":"General Translation · object | Popular Special Effects Videos · object | GLM Slide/Poster · object"},"examples":{"Example":{"title":"Example","value":{"agent_id":"general_translation","messages":[{"role":"user","content":[{"type":"text","text":"\u003cstring>"}]}],"stream":true,"custom_variables":{"glossary":"\u003cstring>","strategy_config":{"general":{"suggestion":"\u003cstring>"},"cot":{}}}}}},"exampleType":"generated"}},"required":true,"exampleType":"generated"},"responses":{"d4a86d2a-7870-46ca-98de-5459e5c74f48":{"description":"Processing successful","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"General Translation","properties":{"id":{"description":"Task ID.","type":"string","uniqueKey":"oneOf.0.id","typeLabel":"string"},"agent_id":{"type":"string","description":"Agent ID.","uniqueKey":"oneOf.0.agent_id","typeLabel":"string"},"status":{"type":"string","description":"Task status.","uniqueKey":"oneOf.0.status","typeLabel":"string"},"choices":{"type":"array","description":"Model output content.","items":{"type":"object","properties":{"index":{"type":"integer","description":"Result index.","uniqueKey":"oneOf.0.choices.items.[INDEX].index","typeLabel":"integer"},"finish_reason":{"type":"string","description":"Termination reason: `stop` (normal completion), `tool_calls` (model calls), `length` (token limit exceeded), `sensitive` (content flagged), `network_error` (model inference error).","uniqueKey":"oneOf.0.choices.items.[INDEX].finish_reason","typeLabel":"string"},"messages":{"type":"object","description":"Model response message.","properties":{"role":{"type":"string","description":"Dialog role (default: `assistant`).","uniqueKey":"oneOf.0.choices.items.[INDEX].messages.role","typeLabel":"string"},"content":{"type":"object","description":"Inference result","properties":{"type":{"type":"string","description":"Result type.","uniqueKey":"oneOf.0.choices.items.[INDEX].messages.content.type","typeLabel":"string"},"text":{"type":"string","description":"Result content.","uniqueKey":"oneOf.0.choices.items.[INDEX].messages.content.text","typeLabel":"string"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].messages.content","typeLabel":"object"}},"uniqueKey":"oneOf.0.choices.items.[INDEX].messages","typeLabel":"object"}},"uniqueKey":"oneOf.0.choices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.0.choices","typeLabel":"object[]"},"usage":{"type":"object","description":"Token usage statistics.","properties":{"prompt_tokens":{"type":"integer","description":"Input tokens count.","uniqueKey":"oneOf.0.usage.prompt_tokens","typeLabel":"integer"},"completion_tokens":{"type":"integer","description":"Output tokens count.","uniqueKey":"oneOf.0.usage.completion_tokens","typeLabel":"integer"},"total_tokens":{"type":"integer","description":"Total tokens count.","uniqueKey":"oneOf.0.usage.total_tokens","typeLabel":"integer"},"total_calls":{"type":"integer","description":"Total number of calls","uniqueKey":"oneOf.0.usage.total_calls","typeLabel":"integer"}},"uniqueKey":"oneOf.0.usage","typeLabel":"object"}},"uniqueKey":"oneOf.0","typeLabel":"General Translation · object"},{"type":"object","title":"Popular Special Effects Videos","properties":{"async_id":{"type":"string","description":"Asynchronous task ID.","uniqueKey":"oneOf.1.async_id","typeLabel":"string"},"status":{"type":"string","description":"Status: `pending` (task created), `failed` (task creation failed).","uniqueKey":"oneOf.1.status","typeLabel":"string"},"agent_id":{"type":"string","description":"Agent ID","uniqueKey":"oneOf.1.agent_id","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","description":"Error message.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Popular Special Effects Videos · object"},{"type":"object","title":"GLM Slide/Poster","properties":{"id":{"description":"Request ID","type":"string","uniqueKey":"oneOf.2.id","typeLabel":"string"},"conversation_id":{"type":"string","description":"Conversation ID","uniqueKey":"oneOf.2.conversation_id","typeLabel":"string"},"agent_id":{"type":"string","description":"Agent ID","uniqueKey":"oneOf.2.agent_id","typeLabel":"string"},"choices":{"type":"array","description":"Agent output.","items":{"type":"object","properties":{"index":{"type":"integer","description":"Result index.","uniqueKey":"oneOf.2.choices.items.[INDEX].index","typeLabel":"integer"},"finish_reason":{"type":"string","description":"Reason for model inference termination. Can be ‘stop’, ‘tool_calls’, ‘length’, ‘sensitive’, or ‘network_error’.","uniqueKey":"oneOf.2.choices.items.[INDEX].finish_reason","typeLabel":"string"},"message":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string","description":"Role: fixed as `assistant`.","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].role","typeLabel":"string"},"phase":{"type":"string","description":"Current role type: thinking、tool、answer","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].phase","typeLabel":"string"},"content":{"type":"array","description":"Content metadata","items":{"type":"object","properties":{"type":{"type":"string","description":"Response Content type: text、object","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].type","typeLabel":"string"},"tag_cn":{"type":"string","description":"CN Tag.","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].tag_cn","typeLabel":"string"},"tag_en":{"type":"string","description":"EN Tag.","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].tag_en","typeLabel":"string"},"text":{"type":"string","description":"Output string content when type is text","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].text","typeLabel":"string"},"object":{"type":"object","description":"Output object content when type is object","properties":{"tool_name":{"type":"string","description":"Tool name eg: search、insert_page","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object.tool_name","typeLabel":"string"},"input":{"type":"string","description":"Tool input content","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object.input","typeLabel":"string"},"output":{"type":"string","description":"Tool output content, will output html when generate slide","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object.output","typeLabel":"string"},"position":{"type":"array","description":"If the tool involves operations on a PPT file, the position field specifies which slides are being manipulated.\n If the user says, “Insert a slide after the second slide,” then position = [3], and the output is the HTML content of the third slide.\n If the user says, “Please delete slides 4, 5, and 6,” then position = [4, 5, 6].","items":{"type":"number","uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object.position.items.[INDEX]","typeLabel":"number"},"uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object.position","typeLabel":"number[]"}},"uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX].object","typeLabel":"object"}},"uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX].content","typeLabel":"object[]"}},"uniqueKey":"oneOf.2.choices.items.[INDEX].message.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.choices.items.[INDEX].message","typeLabel":"object[]"}},"uniqueKey":"oneOf.2.choices.items.[INDEX]","typeLabel":"object"},"uniqueKey":"oneOf.2.choices","typeLabel":"object[]"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code.","uniqueKey":"oneOf.2.error.code","typeLabel":"string"},"message":{"type":"string","description":"Error message.","uniqueKey":"oneOf.2.error.message","typeLabel":"string"}},"uniqueKey":"oneOf.2.error","typeLabel":"object"}},"uniqueKey":"oneOf.2","typeLabel":"GLM Slide/Poster · object"}],"uniqueKey":"","typeLabel":"General Translation · object | Popular Special Effects Videos · object | GLM Slide/Poster · object"},"examples":{"General Translation":{"title":"General Translation","value":{"id":"\u003cstring>","agent_id":"\u003cstring>","choices":[{"index":123,"finish_reason":"\u003cstring>","messages":[{"role":"\u003cstring>","content":{"text":"\u003cstring>","type":"\u003cstring>"}}]}],"usage":{"prompt_tokens":123,"completion_tokens":123,"total_tokens":123,"total_calls":123}}},"Popular Special Effects Videos":{"title":"Popular Special Effects Videos","value":{"status":"\u003cstring>","agent_id":"\u003cstring>","async_id":"\u003cstring>"}}},"exampleType":"examples"}},"exampleType":"examples"},"64711289-0397-4f1d-a0b2-3306c205bd58":{"description":"The request has failed.","content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"General Translation","description":"The request has failed.","required":["code","message"],"properties":{"code":{"type":"integer","format":"int32","description":"Error code.","isRequired":true,"uniqueKey":"oneOf.0.code","typeLabel":"integer\u003cint32>"},"message":{"type":"string","description":"Error message.","isRequired":true,"uniqueKey":"oneOf.0.message","typeLabel":"string"}},"uniqueKey":"oneOf.0","typeLabel":"General Translation · object"},{"type":"object","title":"Popular Special Effects Videos","properties":{"status":{"type":"string","description":"Status: `pending` (task created), `failed` (task creation failed).","uniqueKey":"oneOf.1.status","typeLabel":"string"},"agent_id":{"type":"string","description":"Agent ID","uniqueKey":"oneOf.1.agent_id","typeLabel":"string"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Error code.","uniqueKey":"oneOf.1.error.code","typeLabel":"string"},"message":{"type":"string","description":"Error message.","uniqueKey":"oneOf.1.error.message","typeLabel":"string"}},"uniqueKey":"oneOf.1.error","typeLabel":"object"}},"uniqueKey":"oneOf.1","typeLabel":"Popular Special Effects Videos · object"}],"uniqueKey":"","typeLabel":"General Translation · object | Popular Special Effects Videos · object"},"examples":{"General Translation":{"title":"General Translation","value":{"code":123,"message":"\u003cstring>"}},"Popular Special Effects Videos":{"title":"Popular Special Effects Videos","value":{"status":"\u003cstring>","agent_id":"\u003cstring>","error":{"code":"\u003cstring>","message":"\u003cstring>"}}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"0d10cd38-a9de-41b0-b59a-512787920e01":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Use the following format for authentication: Bearer [\u003cyour api key>](https://z.ai/manage-apikey/apikey-list)","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"44e4d08f-f7aa-4799-a098-7f934b19b150":{"url":"https://api.z.ai/api","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Use the following format for authentication: Bearer [\u003cyour api key>](https://z.ai/manage-apikey/apikey-list)","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Use the following format for authentication: Bearer [\u003cyour api key>](https://z.ai/manage-apikey/apikey-list)","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"zhipu-32152247","siteName":"Overview - Z.AI DEVELOPER DOCUMENT","title":"Agent Chat - Overview - Z.AI DEVELOPER DOCUMENT","navMaps":{"firstHrefInVersion":{"English":{"href":"/api-reference/agents/agent","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2026-01-28T15:46:24.795Z","originalFileLocation":"api-reference/agents/agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Overview - Z.AI DEVELOPER DOCUMENT\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Agent Chat - Overview - Z.AI DEVELOPER DOCUMENT\">\u003cmeta data-mint-head property=\"og:description\" content=\"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Overview - Z.AI DEVELOPER DOCUMENT\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.z.ai/api-reference/agents/agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://zhipu-32152247.mintlify.site/_mintlify/api/og/v2?division=Agent+API\u0026amp;title=Agent+Chat\u0026amp;description=General+Translation%3A+General+Translation+API+provides+large+model-based+multilingual+translation+services%2C+including+general+translation%2C+paraphrase+translation\u0026amp;theme=28cd11ffa578495b9d6a62e8\u0026amp;signature=9de1a621f4976cba4859d2d1bb3c7a81afdecb5ba21555d474db086537634690\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Agent Chat - Overview - Z.AI DEVELOPER DOCUMENT\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://zhipu-32152247.mintlify.site/_mintlify/api/og/v2?division=Agent+API\u0026amp;title=Agent+Chat\u0026amp;description=General+Translation%3A+General+Translation+API+provides+large+model-based+multilingual+translation+services%2C+including+general+translation%2C+paraphrase+translation\u0026amp;theme=28cd11ffa578495b9d6a62e8\u0026amp;signature=9de1a621f4976cba4859d2d1bb3c7a81afdecb5ba21555d474db086537634690\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/zhipu-32152247/ksfquWFAc8TQf_Hb/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Overview - Z.AI DEVELOPER DOCUMENT\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#141618\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.z.ai/api-reference/agents/agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/agents/agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.z.ai/#organization\",\"name\":\"Overview - Z.AI DEVELOPER DOCUMENT\",\"url\":\"https://docs.z.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/zhipu-32152247/B_E8wI-eiNa1QlPV/logo/dark.svg?fit=max\u0026auto=format\u0026n=B_E8wI-eiNa1QlPV\u0026q=85\u0026s=75deefa9dea5bdbc84d4da68885c267f\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.z.ai#website\",\"name\":\"Overview - Z.AI DEVELOPER DOCUMENT\",\"url\":\"https://docs.z.ai\",\"publisher\":{\"@id\":\"https://docs.z.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.z.ai/api-reference/agents/agent#webpage\",\"url\":\"https://docs.z.ai/api-reference/agents/agent\",\"name\":\"Agent Chat\",\"description\":\"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\",\"dateModified\":\"2026-01-28T15:46:24.795Z\",\"isPartOf\":{\"@id\":\"https://docs.z.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.z.ai/api-reference/agents/agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.z.ai/api-reference/agents/agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Overview - Z.AI DEVELOPER DOCUMENT\",\"item\":\"https://docs.z.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Agent Chat\",\"item\":\"https://docs.z.ai/api-reference/agents/agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.z.ai/api-reference/agents/agent#apireference\",\"headline\":\"Agent Chat\",\"name\":\"Agent Chat\",\"description\":\"General Translation: General Translation API provides large model-based multilingual translation services, including general translation, paraphrase translation, two-step translation, and three-pass translation strategies. It supports automatic language detection, glossary customization, translation suggestions, and streaming output. Users only need to call the Translation API, input the text to be processed, specify the source language (auto-detection supported) and target language to receive high-quality translation results. Popular Special Effects Videos: Popular special effects videos are intelligent templates launched based on trending features from pan-entertainment platforms, designed to precisely adapt to short video creative production needs. Currently, three effect templates are available: French Kiss, Body Shake Dance, and Sexy Me. After selecting a template, users only need to upload an image and enter corresponding prompts to generate a special effects video. GLM Slide/Poster Agent: An intelligent creation agent built for working people and creators. It goes beyond traditional engineering-style assembly tools—supporting one-click generation of slides or posters from natural language instructions. By natively integrating content generation with layout aesthetics and design conventions, it helps you quickly produce polished, professional-grade materials while lowering design barriers and boosting creative efficiency.\",\"url\":\"https://docs.z.ai/api-reference/agents/agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.z.ai/api-reference/agents/agent#webpage\"},\"dateModified\":\"2026-01-28T15:46:24.795Z\",\"publisher\":{\"@id\":\"https://docs.z.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.z.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Overview - Z.AI DEVELOPER DOCUMENT\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Overview - Z.AI DEVELOPER DOCUMENT","nav":{"global":null,"versions":[{"version":"English","tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/overview/quick-start"}]},{"tab":"API Reference","groups":[{"group":"Using the APIs","pages":[{"title":"Introduction","href":"/api-reference/introduction"},{"title":"Errors","href":"/api-reference/api-code"},{"title":"Rate Limits","url":"https://z.ai/manage-apikey/rate-limits","href":"/api-reference/rate-limit"}]},{"group":"Model API","pages":[{"title":"Chat Completion","openapi":"POST /paas/v4/chat/completions","href":"/api-reference/llm/chat-completion"}]},{"group":"Image API","pages":[{"title":"Generate Image","openapi":"POST /paas/v4/images/generations","href":"/api-reference/image/generate-image"},{"title":"Generate Image(Async)","openapi":"POST /paas/v4/async/images/generations","href":"/api-reference/image/generate-image-async"},{"title":"Retrieve Result","openapi":"GET /paas/v4/async-result/{id}","href":"/api-reference/image/get-image-status"}]},{"group":"Video API","pages":[{"title":"Generate Video(Async)","openapi":"POST /paas/v4/videos/generations","href":"/api-reference/video/generate-video"},{"title":"Retrieve Result","openapi":"GET /paas/v4/async-result/{id}","href":"/api-reference/video/get-video-status"}]},{"group":"Audio API","pages":[{"title":"Audio Transcriptions","openapi":"POST /paas/v4/audio/transcriptions","href":"/api-reference/audio/audio-transcriptions"}]},{"group":"Tool API","pages":[{"title":"Tokenizer","openapi":"POST /paas/v4/tokenizer","href":"/api-reference/tools/tokenizer"},{"title":"Layout Parsing","openapi":"POST /paas/v4/layout_parsing","href":"/api-reference/tools/layout-parsing"},{"title":"Web Search","openapi":"POST /paas/v4/web_search","href":"/api-reference/tools/web-search"},{"title":"Web Reader","openapi":"POST /paas/v4/reader","description":"Reads and parses the content of the specified URL. Supports selectable return formats, cache control, image retention, and summary options.","href":"/api-reference/tools/web-reader"}]},{"group":"Agent API","pages":[{"title":"Agent Chat","openapi":"POST /v1/agents","href":"/api-reference/agents/agent"},{"title":"File Upload","openapi":"POST /paas/v4/files","description":"This API is designed for uploading auxiliary files (such as glossaries, terminology lists) to support the translation service. It allows users to upload reference materials that can enhance translation accuracy and consistency.","href":"/api-reference/agents/file-upload"},{"title":"Retrieve Result","openapi":"POST /v1/agents/async-result","href":"/api-reference/agents/get-async-result"},{"title":"Conversation History","openapi":"POST /v1/agents/conversation","href":"/api-reference/agents/agent-conversation"}]}]},{"tab":"Coding Plan","pages":[{"title":"Coding Plan","href":"/devpack/overview"}]},{"tab":"Released Notes","pages":[{"title":"Released Notes","href":"/release-notes/new-released"}]},{"tab":"Terms and Policy","pages":[{"title":"Terms and Policy","href":"/legal-agreement/privacy-policy"}]},{"tab":"Help Center","pages":[{"title":"Help Center","href":"/help/faq"}]}]}]},"basePath":"","title":"Agent Chat - Overview - Z.AI DEVELOPER DOCUMENT","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}