GLM API Documentation
Welcome to the GLM (Zhipu AI) API proxy service. This documentation provides detailed instructions for all available API endpoints, including request parameters, response formats, and code examples.
Base URL
https://your-proxy-domain.com/v1All API requests should be sent to the base URL above, followed by the specific endpoint path.
Authentication
All API requests require a valid Bearer Token in the request header:
Authorization: Bearer YOUR_API_KEYPlease keep your API key secure and do not expose it in client-side code.
API Modules
Text Generation
Chat Completions
GLM-4 series large language model conversational interface, fully compatible with OpenAI format
Multimodal Understanding
Vision
GLM-4V series supporting image understanding and visual question answering
Image Generation
CogView
CogView series AI image generation models
Video Generation
CogVideoX
CogVideoX AI video generation from text prompts
Voice Model
GLM-4-Voice
GLM-4-Voice end-to-end voice dialogue model
Embedding
Embedding
Text embedding interface for semantic search and similarity computation
Web Search
Web Search & Tools
Built-in web search and tool calling capabilities
Need Help?
If you encounter any issues or need technical support, please contact us through the information provided in the documentation.