
Provider ZhiPuAI
CertifiedUse ZhiPu AI models
Provider ZhiPuAI
Use ZhiPu AI models
Calls ZhiPu’s OpenAI-compatible chat/embedding/image APIs with API key and model name. Supports stop tokens, retry count, and max tokens per request.
type: io.kestra.plugin.ai.provider.ZhiPuAIExamples
Chat completion with ZhiPu AI
id: chat_completion
namespace: company.ai
inputs:
- id: prompt
type: STRING
tasks:
- id: chat_completion
type: io.kestra.plugin.ai.completion.ChatCompletion
provider:
type: io.kestra.plugin.ai.provider.ZhiPuAI
apiKey: "{{ secret('ZHIPU_API_KEY') }}"
modelName: glm-4.5-flash
messages:
- type: SYSTEM
content: You are a helpful assistant, answer concisely, avoid overly casual language or unnecessary verbosity.
- type: USER
content: "{{ inputs.prompt }}"
Installation
Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:
kestractl plugins get io.kestra.plugin:plugin-ai --compatible-for $KESTRA_VERSION For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.
For Kestra CLI, replace LATEST with a specific version or version range to pin the plugin version.
Properties
apiKey *string
API Key
ZhiPu AI API key used to authenticate requests. Store it as a Kestra secret rather than inline. No default: this property is required.
baseUrl string
https://open.bigmodel.cn/API base URL
Base URL of the ZhiPu AI API. Defaults to https://open.bigmodel.cn/.
caPem string
CA PEM certificate content
PEM-encoded certificate authority chain, as text, used to verify the TLS certificate presented by a custom endpoint. Not set by default, in which case the JVM's default trust store is used.
clientPem string
Client PEM certificate content
PEM-encoded client certificate and private key, as text, used for mutual-TLS authentication against enterprise AI endpoints. Not set by default, in which case the default HTTP client is used.
maxRetries integerstring
Maximum retries
Number of times a failed request is retried before the task fails. Defaults to 3.
maxToken integerstring
Maximum output tokens
Maximum number of tokens returned by a single request. Ignored when configuration.maxToken is set. Defaults to 512.
modelName string
Model name
stops array
Stop sequences
Strings that stop generation as soon as the model is about to produce one of them. The stop sequence itself is not included in the output. Not set by default (no stop sequence).