The API reference describes the RESTful APIs you can use to interact with the Z.AI platform.
Authentication
The Z.AI API uses the standard HTTP Bearer for authentication. An API key is required, which you can create or manage on the API Keys Page. API keys should be provided via HTTP Bearer Authentication in HTTP Request Headers.Playground
The API Playground allows developers to quickly try out API calls. Simply click Try it on the API details page to get started.- On the API details page, there are many interactive options, such as switching input types, switching tabs, and adding new content.
- You can click Add an item or Add new property to add more properties the API need.
- Note that when switching the tabs, the previous properties value you need re-input or re-switch.
Call Examples
- cURL
- Official Python SDK
- Official Java SDK
- OpenAI Python SDK
- OpenAI NodeJs SDK
- OpenAI Java SDK