Download the PHP package aisdk/zai without Composer
On this page you can find all versions of the php package aisdk/zai. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor aisdk
Package zai
Short Description Official ZAI provider for the PHP AI SDK.
License MIT
Homepage https://github.com/phpaisdk/zai
Package zai
Short Description Official ZAI provider for the PHP AI SDK.
License MIT
Homepage https://github.com/phpaisdk/zai
Please rate this library. Is it a good library?
Informations about the package zai
aisdk/zai
Official ZAI provider for the PHP AI SDK. Uses ZAI's OpenAI-compatible API.
Basic Usage
Configuration
| Variable | Description | Default |
|---|---|---|
ZAI_API_KEY |
API key for authentication | Required |
ZAI_BASE_URL |
General API root | https://api.z.ai/api/paas/v4 |
Use https://api.z.ai/api/coding/paas/v4 as baseUrl only for ZAI's coding API when that is required by the selected account and model.
Supported Capabilities
| Capability | Support |
|---|---|
| Text generation and streaming | Native OpenAI-compatible chat |
| Tool calling, structured output, reasoning | Passed through for supported models |
| Image input | Passed through for compatible vision models |
Provider Options
Use providerOptions('zai', ['raw' => [...]]) for documented ZAI chat-completions fields outside the portable SDK surface. Model IDs are opaque strings and are validated by ZAI.
Documentation
All versions of zai with dependencies
PHP Build Version
Package Version
The package aisdk/zai contains the following files
Loading the files please wait ...