- AbstractClientBaseService - Class in ai.z.openapi.service
-
Abstract base service class that provides common functionality for API client
implementations.
- AbstractClientBaseService() - Constructor for class ai.z.openapi.service.AbstractClientBaseService
-
- AgentAsyncResultRetrieveParams - Class in ai.z.openapi.service.agents
-
Parameters for retrieving agent asynchronous task results.
- AgentAsyncResultRetrieveParams() - Constructor for class ai.z.openapi.service.agents.AgentAsyncResultRetrieveParams
-
- agents() - Method in class ai.z.openapi.ZaiClient
-
Returns the agent service for AI agent management.
- AgentsApi - Interface in ai.z.openapi.api.agents
-
Agents API for intelligent agent capabilities based on GLM-4 All Tools Provides AI
agents with automatic tool calling, function execution, and complex task automation
Features include web browsing, code interpreter, image generation, and multi-tool
coordination Supports streaming and synchronous agent interactions with real-time task
planning
- AgentsCompletionRequest - Class in ai.z.openapi.service.agents
-
Request parameters for agent completion API calls.
- AgentsCompletionRequest() - Constructor for class ai.z.openapi.service.agents.AgentsCompletionRequest
-
- agentsCompletionStream(AgentsCompletionRequest) - Method in interface ai.z.openapi.api.agents.AgentsApi
-
Create a streaming agent completion with GLM-4 All Tools Returns agent responses in
real-time through Server-Sent Events (SSE) Automatically selects and calls
appropriate tools (web search, code execution, image generation)
- agentsCompletionSync(AgentsCompletionRequest) - Method in interface ai.z.openapi.api.agents.AgentsApi
-
Create a synchronous agent completion with GLM-4 All Tools Waits for the agent to
complete complex task execution and returns the final result Supports automatic
tool selection including CogView3 image generation, Python code interpreter, and
web browsing
- AgentService - Interface in ai.z.openapi.service.agents
-
Agent completion service interface
- AgentServiceImpl - Class in ai.z.openapi.service.agents
-
Agent completion service implementation
- AgentServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.agents.AgentServiceImpl
-
- ai.z.openapi - package ai.z.openapi
-
- ai.z.openapi.api.agents - package ai.z.openapi.api.agents
-
- ai.z.openapi.api.assistant - package ai.z.openapi.api.assistant
-
- ai.z.openapi.api.audio - package ai.z.openapi.api.audio
-
- ai.z.openapi.api.batches - package ai.z.openapi.api.batches
-
- ai.z.openapi.api.chat - package ai.z.openapi.api.chat
-
- ai.z.openapi.api.embedding - package ai.z.openapi.api.embedding
-
- ai.z.openapi.api.file - package ai.z.openapi.api.file
-
- ai.z.openapi.api.images - package ai.z.openapi.api.images
-
- ai.z.openapi.api.tools - package ai.z.openapi.api.tools
-
- ai.z.openapi.api.videos - package ai.z.openapi.api.videos
-
- ai.z.openapi.api.web_search - package ai.z.openapi.api.web_search
-
- ai.z.openapi.core - package ai.z.openapi.core
-
- ai.z.openapi.core.cache - package ai.z.openapi.core.cache
-
- ai.z.openapi.core.config - package ai.z.openapi.core.config
-
- ai.z.openapi.core.model - package ai.z.openapi.core.model
-
- ai.z.openapi.core.response - package ai.z.openapi.core.response
-
- ai.z.openapi.core.token - package ai.z.openapi.core.token
-
- ai.z.openapi.service - package ai.z.openapi.service
-
- ai.z.openapi.service.agents - package ai.z.openapi.service.agents
-
- ai.z.openapi.service.assistant - package ai.z.openapi.service.assistant
-
- ai.z.openapi.service.assistant.conversation - package ai.z.openapi.service.assistant.conversation
-
- ai.z.openapi.service.assistant.message - package ai.z.openapi.service.assistant.message
-
- ai.z.openapi.service.assistant.message.tools - package ai.z.openapi.service.assistant.message.tools
-
- ai.z.openapi.service.assistant.message.tools.code_interpreter - package ai.z.openapi.service.assistant.message.tools.code_interpreter
-
- ai.z.openapi.service.assistant.message.tools.drawing_tool - package ai.z.openapi.service.assistant.message.tools.drawing_tool
-
- ai.z.openapi.service.assistant.message.tools.function - package ai.z.openapi.service.assistant.message.tools.function
-
- ai.z.openapi.service.assistant.message.tools.retrieval - package ai.z.openapi.service.assistant.message.tools.retrieval
-
- ai.z.openapi.service.assistant.message.tools.web_browser - package ai.z.openapi.service.assistant.message.tools.web_browser
-
- ai.z.openapi.service.assistant.query_support - package ai.z.openapi.service.assistant.query_support
-
- ai.z.openapi.service.audio - package ai.z.openapi.service.audio
-
- ai.z.openapi.service.batches - package ai.z.openapi.service.batches
-
- ai.z.openapi.service.chat - package ai.z.openapi.service.chat
-
- ai.z.openapi.service.deserialize - package ai.z.openapi.service.deserialize
-
- ai.z.openapi.service.deserialize.assistant - package ai.z.openapi.service.deserialize.assistant
-
- ai.z.openapi.service.deserialize.assistant.message - package ai.z.openapi.service.deserialize.assistant.message
-
- ai.z.openapi.service.embedding - package ai.z.openapi.service.embedding
-
- ai.z.openapi.service.file - package ai.z.openapi.service.file
-
- ai.z.openapi.service.image - package ai.z.openapi.service.image
-
- ai.z.openapi.service.model - package ai.z.openapi.service.model
-
- ai.z.openapi.service.model.params - package ai.z.openapi.service.model.params
-
- ai.z.openapi.service.realtime - package ai.z.openapi.service.realtime
-
- ai.z.openapi.service.realtime.client - package ai.z.openapi.service.realtime.client
-
- ai.z.openapi.service.realtime.object - package ai.z.openapi.service.realtime.object
-
- ai.z.openapi.service.realtime.server - package ai.z.openapi.service.realtime.server
-
- ai.z.openapi.service.tools - package ai.z.openapi.service.tools
-
- ai.z.openapi.service.videos - package ai.z.openapi.service.videos
-
- ai.z.openapi.service.web_search - package ai.z.openapi.service.web_search
-
- ai.z.openapi.utils - package ai.z.openapi.utils
-
- apiKey(String) - Method in class ai.z.openapi.ZaiClient.Builder
-
Config the apikey
- AssistantApi - Interface in ai.z.openapi.api.assistant
-
Assistant API for intelligent conversational AI Provides advanced assistant
capabilities with streaming and synchronous responses Supports conversation management
and usage tracking for AI assistants
- AssistantApiResponse - Class in ai.z.openapi.service.assistant
-
Response wrapper for Assistant API calls that supports both synchronous and streaming
responses.
- AssistantApiResponse() - Constructor for class ai.z.openapi.service.assistant.AssistantApiResponse
-
Default constructor.
- AssistantApiResponse(int, String) - Constructor for class ai.z.openapi.service.assistant.AssistantApiResponse
-
Constructor with code and message.
- AssistantAttachments - Class in ai.z.openapi.service.assistant
-
This class represents an attachment with a file ID.
- AssistantAttachments() - Constructor for class ai.z.openapi.service.assistant.AssistantAttachments
-
- AssistantChoice - Class in ai.z.openapi.service.assistant
-
Represents an assistant's choice output in conversation responses.
- AssistantChoice() - Constructor for class ai.z.openapi.service.assistant.AssistantChoice
-
- AssistantChoice(ObjectNode) - Constructor for class ai.z.openapi.service.assistant.AssistantChoice
-
- AssistantChoiceDeserializer - Class in ai.z.openapi.service.deserialize.assistant
-
- AssistantChoiceDeserializer() - Constructor for class ai.z.openapi.service.deserialize.assistant.AssistantChoiceDeserializer
-
- assistantCompletion(AssistantParameters) - Method in interface ai.z.openapi.api.assistant.AssistantApi
-
Generate assistant response with complete output Creates conversational responses
and returns the complete assistant reply
- AssistantCompletion - Class in ai.z.openapi.service.assistant
-
This class represents the completion data returned by an assistant.
- AssistantCompletion() - Constructor for class ai.z.openapi.service.assistant.AssistantCompletion
-
- assistantCompletion(AssistantParameters) - Method in interface ai.z.openapi.service.assistant.AssistantService
-
Creates a non-streaming assistant completion.
- assistantCompletion(AssistantParameters) - Method in class ai.z.openapi.service.assistant.AssistantServiceImpl
-
- assistantCompletionStream(AssistantParameters) - Method in interface ai.z.openapi.api.assistant.AssistantApi
-
Generate assistant response with streaming output Creates real-time conversational
responses with streaming delivery
- assistantCompletionStream(AssistantParameters) - Method in interface ai.z.openapi.service.assistant.AssistantService
-
Creates a streaming assistant completion.
- assistantCompletionStream(AssistantParameters) - Method in class ai.z.openapi.service.assistant.AssistantServiceImpl
-
- AssistantExtraParameters - Class in ai.z.openapi.service.assistant
-
Extra parameters for assistant configuration.
- AssistantExtraParameters() - Constructor for class ai.z.openapi.service.assistant.AssistantExtraParameters
-
- AssistantParameters - Class in ai.z.openapi.service.assistant
-
This class represents the parameters for an assistant, including optional fields.
- AssistantParameters() - Constructor for class ai.z.openapi.service.assistant.AssistantParameters
-
- assistants() - Method in class ai.z.openapi.ZaiClient
-
Returns the assistant service for AI assistant functionality.
- AssistantService - Interface in ai.z.openapi.service.assistant
-
Assistant service interface
- AssistantServiceImpl - Class in ai.z.openapi.service.assistant
-
Implementation of AssistantService
- AssistantServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.assistant.AssistantServiceImpl
-
- AssistantSupport - Class in ai.z.openapi.service.assistant.query_support
-
This class represents the details of an assistant.
- AssistantSupport() - Constructor for class ai.z.openapi.service.assistant.query_support.AssistantSupport
-
- AssistantSupportResponse - Class in ai.z.openapi.service.assistant.query_support
-
Response for assistant support query API calls.
- AssistantSupportResponse() - Constructor for class ai.z.openapi.service.assistant.query_support.AssistantSupportResponse
-
- AssistantSupportResponse(int, String) - Constructor for class ai.z.openapi.service.assistant.query_support.AssistantSupportResponse
-
- AssistantSupportStatus - Class in ai.z.openapi.service.assistant.query_support
-
This class represents the response containing a list of assistant supports.
- AssistantSupportStatus() - Constructor for class ai.z.openapi.service.assistant.query_support.AssistantSupportStatus
-
- asyncChatCompletion(ChatCompletionCreateParams) - Method in interface ai.z.openapi.service.chat.ChatService
-
Creates an asynchronous chat completion.
- asyncChatCompletion(ChatCompletionCreateParams) - Method in class ai.z.openapi.service.chat.ChatServiceImpl
-
- AsyncResultRetrieveParams - Class in ai.z.openapi.service.model
-
- AsyncResultRetrieveParams() - Constructor for class ai.z.openapi.service.model.AsyncResultRetrieveParams
-
- Audio - Class in ai.z.openapi.service.model
-
- Audio() - Constructor for class ai.z.openapi.service.model.Audio
-
- audio() - Method in class ai.z.openapi.ZaiClient
-
Returns the audio service for audio processing.
- AudioApi - Interface in ai.z.openapi.api.audio
-
Audio API for advanced speech processing capabilities Powered by GLM-4-Voice for
end-to-end speech understanding and generation Provides text-to-speech, speech-to-text,
voice customization, and real-time conversation Supports emotion control, tone
adjustment, speed variation, and dialect generation Features real-time audio
processing, voice cloning, and multilingual ASR capabilities
- audioCustomization(Map<String, RequestBody>, MultipartBody.Part) - Method in interface ai.z.openapi.api.audio.AudioApi
-
Voice cloning and customization using advanced neural models Creates custom voice
models from provided audio samples with high fidelity Enables personalized speech
synthesis preserving unique voice characteristics and speaking style Supports
fine-tuning of voice parameters including pitch, timbre, and speaking patterns
- AudioCustomizationRequest - Class in ai.z.openapi.service.audio
-
Request parameters for audio customization API calls.
- AudioCustomizationRequest() - Constructor for class ai.z.openapi.service.audio.AudioCustomizationRequest
-
- AudioCustomizationResponse - Class in ai.z.openapi.service.audio
-
Response wrapper for audio customization API calls.
- AudioCustomizationResponse() - Constructor for class ai.z.openapi.service.audio.AudioCustomizationResponse
-
- AudioService - Interface in ai.z.openapi.service.audio
-
Audio service interface
- AudioServiceImpl - Class in ai.z.openapi.service.audio
-
Audio service implementation
- AudioServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.audio.AudioServiceImpl
-
- audioSpeech(AudioSpeechRequest) - Method in interface ai.z.openapi.api.audio.AudioApi
-
Text-to-Speech (TTS) conversion using GLM-4-Voice Converts text input into
natural-sounding speech audio with emotion and tone control Supports multiple
voices, languages, speed adjustment, and various audio formats Features advanced
voice synthesis with customizable emotional expressions and dialects
- AudioSpeechRequest - Class in ai.z.openapi.service.audio
-
- AudioSpeechRequest() - Constructor for class ai.z.openapi.service.audio.AudioSpeechRequest
-
- AudioSpeechResponse - Class in ai.z.openapi.service.audio
-
- AudioSpeechResponse() - Constructor for class ai.z.openapi.service.audio.AudioSpeechResponse
-
- audioTranscription(Map<String, RequestBody>, MultipartBody.Part) - Method in interface ai.z.openapi.api.audio.AudioApi
-
Speech-to-text transcription using GLM ASR models Converts audio files to text with
high accuracy and multilingual support Features advanced noise reduction, speaker
recognition, and punctuation restoration Supports multiple languages with automatic
language detection capabilities
- AudioTranscriptionChunk - Class in ai.z.openapi.service.audio
-
- AudioTranscriptionChunk() - Constructor for class ai.z.openapi.service.audio.AudioTranscriptionChunk
-
- AudioTranscriptionRequest - Class in ai.z.openapi.service.audio
-
- AudioTranscriptionRequest() - Constructor for class ai.z.openapi.service.audio.AudioTranscriptionRequest
-
- AudioTranscriptionResponse - Class in ai.z.openapi.service.audio
-
- AudioTranscriptionResponse() - Constructor for class ai.z.openapi.service.audio.AudioTranscriptionResponse
-
- AudioTranscriptionResult - Class in ai.z.openapi.service.audio
-
- AudioTranscriptionResult() - Constructor for class ai.z.openapi.service.audio.AudioTranscriptionResult
-
- audioTranscriptionStream(Map<String, RequestBody>, MultipartBody.Part) - Method in interface ai.z.openapi.api.audio.AudioApi
-
Streaming speech-to-text transcription using GLM ASR Converts audio files to text
with real-time streaming results and low latency Returns transcription results
incrementally as they become available for immediate processing Optimized for
real-time applications requiring immediate text feedback
- AuthenticationInterceptor - Class in ai.z.openapi.core.token
-
OkHttp Interceptor that adds an authorization token header
- AuthenticationInterceptor(ZaiConfig) - Constructor for class ai.z.openapi.core.token.AuthenticationInterceptor
-
- BaseNodeDeserializer<T extends com.fasterxml.jackson.databind.JsonNode> - Class in ai.z.openapi.service.deserialize
-
Base class for all actual JsonNode deserializer implementations
- BaseNodeDeserializer(Class<T>, Boolean) - Constructor for class ai.z.openapi.service.deserialize.BaseNodeDeserializer
-
- baseUrl(String) - Method in class ai.z.openapi.ZaiClient.Builder
-
Config the api service base url
- Batch - Class in ai.z.openapi.service.batches
-
- Batch() - Constructor for class ai.z.openapi.service.batches.Batch
-
- BatchCreateParams - Class in ai.z.openapi.service.batches
-
Parameters for creating batch processing requests.
- BatchCreateParams() - Constructor for class ai.z.openapi.service.batches.BatchCreateParams
-
- batches() - Method in class ai.z.openapi.ZaiClient
-
Returns the batch service for batch processing operations.
- BatchesApi - Interface in ai.z.openapi.api.batches
-
Batch Processing API for large-scale data operations Enables efficient processing of
millions of requests with cost-effective batch execution Provides up to 50% discount
compared to individual API calls with 24-hour completion guarantee Supports up to
50,000 requests per batch with maximum 200MB input file size Ideal for evaluation,
classification, and embedding tasks that don't require immediate responses
- batchesCancel(String) - Method in interface ai.z.openapi.api.batches.BatchesApi
-
Cancel a running batch job Stops the batch processing and marks the job as
cancelled (may take up to 10 minutes) Only works for batches in 'validating' or
'in_progress' status
- batchesCreate(BatchCreateParams) - Method in interface ai.z.openapi.api.batches.BatchesApi
-
Create a new batch processing job Submits a large number of requests for efficient
batch processing with JSONL format Each request must include a unique custom_id for
result mapping Supports /v1/chat/completions and /v1/embeddings endpoints
- batchesList(String, Integer) - Method in interface ai.z.openapi.api.batches.BatchesApi
-
List all batch jobs with pagination Retrieves a paginated list of all batch
processing jobs with filtering options Useful for monitoring multiple batch
operations and their completion status
- batchesRetrieve(String) - Method in interface ai.z.openapi.api.batches.BatchesApi
-
Retrieve details of a specific batch job Gets comprehensive information about batch
processing status and results Status can be: validating, failed, in_progress,
finalizing, completed, expired, cancelling, cancelled
- BatchPage - Class in ai.z.openapi.service.batches
-
- BatchPage() - Constructor for class ai.z.openapi.service.batches.BatchPage
-
- BatchRequest - Class in ai.z.openapi.service.batches
-
- BatchRequest() - Constructor for class ai.z.openapi.service.batches.BatchRequest
-
- BatchResponse - Class in ai.z.openapi.service.batches
-
- BatchResponse() - Constructor for class ai.z.openapi.service.batches.BatchResponse
-
- BatchService - Interface in ai.z.openapi.service.batches
-
Batch service interface
- BatchServiceImpl - Class in ai.z.openapi.service.batches
-
Batch service implementation
- BatchServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.batches.BatchServiceImpl
-
- BetaFieldObj - Class in ai.z.openapi.service.realtime.object
-
- BetaFieldObj() - Constructor for class ai.z.openapi.service.realtime.object.BetaFieldObj
-
- BiFlowableClientResponse<T,F> - Interface in ai.z.openapi.core.model
-
A client response that supports a reactive Flowable stream with separate body type and
stream item type.
- biStreamRequest(TReq, FlowableRequestSupplier<Param, Call<ResponseBody>>, Class<TResp>, Class<F>) - Method in class ai.z.openapi.service.AbstractClientBaseService
-
Executes a streaming API request and returns a Flowable-based response.
- biStreamRequest(TReq, FlowableRequestSupplier<Param, Call<ResponseBody>>, Class<TResp>, Class<F>) - Method in class ai.z.openapi.ZaiClient
-
Executes a streaming API request and returns a BiFlowableClientResponse where
response body and stream element type can differ.
- build() - Method in class ai.z.openapi.ZaiClient.Builder
-
Builds and returns a new ZaiClient instance with the configured settings.
- builder() - Static method in class ai.z.openapi.ZaiClient
-
Creates a new Builder instance for constructing ZaiClient.
- Builder() - Constructor for class ai.z.openapi.ZaiClient.Builder
-
- Builder(String) - Constructor for class ai.z.openapi.ZaiClient.Builder
-
Creates a new builder with the specified API key.
- Builder(String, String) - Constructor for class ai.z.openapi.ZaiClient.Builder
-
Creates a new builder with a custom base URL and API secret key.
- cancelBatch(BatchRequest) - Method in interface ai.z.openapi.service.batches.BatchService
-
Cancels a batch request.
- cancelBatch(String) - Method in interface ai.z.openapi.service.batches.BatchService
-
Cancels a batch request by ID.
- cancelBatch(BatchRequest) - Method in class ai.z.openapi.service.batches.BatchServiceImpl
-
- cancelBatch(String) - Method in class ai.z.openapi.service.batches.BatchServiceImpl
-
- changeState(OkHttpRealtimeClient.ConnectivityState) - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityMonitor
-
- changeStateOn(OkHttpRealtimeClient.ConnectivityState, OkHttpRealtimeClient.ConnectivityState) - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityMonitor
-
- changeStateOnAnyOf(EnumSet<OkHttpRealtimeClient.ConnectivityState>, OkHttpRealtimeClient.ConnectivityState) - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityMonitor
-
- chat() - Method in class ai.z.openapi.ZaiClient
-
Returns the chat service for conversational AI operations.
- ChatApi - Interface in ai.z.openapi.api.chat
-
Chat Completions API for advanced GLM-4 series models Provides synchronous,
asynchronous, and streaming chat completion capabilities Supports complex reasoning,
long context processing (up to 128K tokens), and ultra-fast inference Features
GLM-4-Plus, GLM-4-Air, GLM-4-Flash, and GLM-4-AllTools with specialized capabilities
Optimized for Chinese and multilingual conversations with superior performance
- ChatCompletionCreateParams - Class in ai.z.openapi.service.model
-
- ChatCompletionCreateParams() - Constructor for class ai.z.openapi.service.model.ChatCompletionCreateParams
-
- ChatCompletionResponse - Class in ai.z.openapi.service.model
-
- ChatCompletionResponse() - Constructor for class ai.z.openapi.service.model.ChatCompletionResponse
-
- ChatError - Class in ai.z.openapi.service.model
-
Represents an error that occurred during API operations.
- ChatError() - Constructor for class ai.z.openapi.service.model.ChatError
-
- ChatFunction - Class in ai.z.openapi.service.model
-
- ChatFunction() - Constructor for class ai.z.openapi.service.model.ChatFunction
-
- ChatFunctionCall - Class in ai.z.openapi.service.model
-
Represents a function call generated by the chat model.
- ChatFunctionCall() - Constructor for class ai.z.openapi.service.model.ChatFunctionCall
-
- ChatFunctionParameters - Class in ai.z.openapi.service.model
-
- ChatFunctionParameters() - Constructor for class ai.z.openapi.service.model.ChatFunctionParameters
-
- ChatFunctionParameters(JsonNodeFactory, Map<String, JsonNode>) - Constructor for class ai.z.openapi.service.model.ChatFunctionParameters
-
- ChatMessage - Class in ai.z.openapi.service.model
-
- ChatMessage(String, Object) - Constructor for class ai.z.openapi.service.model.ChatMessage
-
- ChatMessageRole - Enum in ai.z.openapi.service.model
-
- ChatMeta - Class in ai.z.openapi.service.model
-
Meta information for hyper-realistic conversations.
- ChatMeta() - Constructor for class ai.z.openapi.service.model.ChatMeta
-
- ChatService - Interface in ai.z.openapi.service.chat
-
Chat completion service interface
- ChatServiceImpl - Class in ai.z.openapi.service.chat
-
Chat completion service implementation
- ChatServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.chat.ChatServiceImpl
-
- ChatTool - Class in ai.z.openapi.service.model
-
- ChatTool() - Constructor for class ai.z.openapi.service.model.ChatTool
-
- ChatToolType - Enum in ai.z.openapi.service.model
-
- Choice - Class in ai.z.openapi.service.model
-
- Choice() - Constructor for class ai.z.openapi.service.model.Choice
-
- ChoiceDelta - Class in ai.z.openapi.service.tools
-
- ChoiceDelta() - Constructor for class ai.z.openapi.service.tools.ChoiceDelta
-
- ChoiceDeltaToolCall - Class in ai.z.openapi.service.tools
-
- ChoiceDeltaToolCall() - Constructor for class ai.z.openapi.service.tools.ChoiceDeltaToolCall
-
- ClientRequest<T> - Interface in ai.z.openapi.core.model
-
- ClientResponse<T> - Interface in ai.z.openapi.core.model
-
- close() - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- close() - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient
-
- close() - Method in class ai.z.openapi.ZaiClient
-
Closes the ZAi client and releases all associated resources.
- code - Variable in exception ai.z.openapi.service.model.ZAiHttpException
-
ZAI error code, for example "invalid_api_key"
- CodeGeexContext - Class in ai.z.openapi.service.model.params
-
- CodeGeexContext() - Constructor for class ai.z.openapi.service.model.params.CodeGeexContext
-
- CodeGeexExtra - Class in ai.z.openapi.service.model.params
-
- CodeGeexExtra() - Constructor for class ai.z.openapi.service.model.params.CodeGeexExtra
-
- CodeGeexTarget - Class in ai.z.openapi.service.model.params
-
- CodeGeexTarget() - Constructor for class ai.z.openapi.service.model.params.CodeGeexTarget
-
- CodeInterpreter - Class in ai.z.openapi.service.assistant.message.tools.code_interpreter
-
This class represents a code interpreter that executes code and returns the results.
- CodeInterpreter() - Constructor for class ai.z.openapi.service.assistant.message.tools.code_interpreter.CodeInterpreter
-
- CodeInterpreterToolBlock - Class in ai.z.openapi.service.assistant.message.tools.code_interpreter
-
This class represents a block of code tool data.
- CodeInterpreterToolBlock() - Constructor for class ai.z.openapi.service.assistant.message.tools.code_interpreter.CodeInterpreterToolBlock
-
- CodeInterpreterToolOutput - Class in ai.z.openapi.service.assistant.message.tools.code_interpreter
-
This class represents the output result of a code tool.
- CodeInterpreterToolOutput() - Constructor for class ai.z.openapi.service.assistant.message.tools.code_interpreter.CodeInterpreterToolOutput
-
- CommonRequest - Class in ai.z.openapi.service
-
Common request base class with extra JSON fields.
- CommonRequest() - Constructor for class ai.z.openapi.service.CommonRequest
-
- CompletionUsage - Class in ai.z.openapi.service.assistant
-
This class represents the usage statistics for a completion.
- CompletionUsage() - Constructor for class ai.z.openapi.service.assistant.CompletionUsage
-
- ComputerToolCall() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.ComputerToolCall
-
- ConfigIntOrInfDeserializer() - Constructor for class ai.z.openapi.service.realtime.object.IntOrInfObj.ConfigIntOrInfDeserializer
-
- ConfigIntOrInfSerializer() - Constructor for class ai.z.openapi.service.realtime.object.IntOrInfObj.ConfigIntOrInfSerializer
-
- connectionPool(int, long, TimeUnit) - Method in class ai.z.openapi.ZaiClient.Builder
-
Configures the HTTP connection pool settings.
- ConnectivityMonitor() - Constructor for class ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityMonitor
-
- Constants - Class in ai.z.openapi.core
-
Constants class containing all the configuration values and model identifiers used
throughout the Z.AI OpenAPI SDK.
- contentFilter - Variable in class ai.z.openapi.service.model.ZAiError
-
- ContentFilter() - Constructor for class ai.z.openapi.service.model.ZAiError.ContentFilter
-
- ConversationCreated - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that a new conversation has been created.
- ConversationCreated() - Constructor for class ai.z.openapi.service.realtime.server.ConversationCreated
-
- ConversationItemCreate - Class in ai.z.openapi.service.realtime.client
-
Client event for creating a new item in the conversation.
- ConversationItemCreate() - Constructor for class ai.z.openapi.service.realtime.client.ConversationItemCreate
-
- ConversationItemCreated - Class in ai.z.openapi.service.realtime.server
-
- ConversationItemCreated() - Constructor for class ai.z.openapi.service.realtime.server.ConversationItemCreated
-
- ConversationItemDelete - Class in ai.z.openapi.service.realtime.client
-
Client event for deleting an item from the conversation history.
- ConversationItemDelete() - Constructor for class ai.z.openapi.service.realtime.client.ConversationItemDelete
-
- ConversationItemDeleted - Class in ai.z.openapi.service.realtime.server
-
- ConversationItemDeleted() - Constructor for class ai.z.openapi.service.realtime.server.ConversationItemDeleted
-
- ConversationItemInputAudioTranscriptionCompleted - Class in ai.z.openapi.service.realtime.server
-
- ConversationItemInputAudioTranscriptionCompleted() - Constructor for class ai.z.openapi.service.realtime.server.ConversationItemInputAudioTranscriptionCompleted
-
- ConversationItemInputAudioTranscriptionFailed - Class in ai.z.openapi.service.realtime.server
-
- ConversationItemInputAudioTranscriptionFailed() - Constructor for class ai.z.openapi.service.realtime.server.ConversationItemInputAudioTranscriptionFailed
-
- ConversationItemTruncate - Class in ai.z.openapi.service.realtime.client
-
- ConversationItemTruncate() - Constructor for class ai.z.openapi.service.realtime.client.ConversationItemTruncate
-
- ConversationItemTruncated - Class in ai.z.openapi.service.realtime.server
-
- ConversationItemTruncated() - Constructor for class ai.z.openapi.service.realtime.server.ConversationItemTruncated
-
- ConversationMessage - Class in ai.z.openapi.service.assistant
-
This class represents a conversation message body.
- ConversationMessage() - Constructor for class ai.z.openapi.service.assistant.ConversationMessage
-
- ConversationObj - Class in ai.z.openapi.service.realtime.object
-
- ConversationObj() - Constructor for class ai.z.openapi.service.realtime.object.ConversationObj
-
- ConversationParameters - Class in ai.z.openapi.service.assistant.conversation
-
This class represents the parameters for a conversation, including pagination.
- ConversationParameters() - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationParameters
-
- ConversationUsage - Class in ai.z.openapi.service.assistant.conversation
-
This class represents the usage data for a specific conversation.
- ConversationUsage() - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationUsage
-
- ConversationUsageList - Class in ai.z.openapi.service.assistant.conversation
-
This class represents a list of conversation usage data.
- ConversationUsageList() - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationUsageList
-
- ConversationUsageListResponse - Class in ai.z.openapi.service.assistant.conversation
-
Response for conversation usage list API calls.
- ConversationUsageListResponse() - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationUsageListResponse
-
- ConversationUsageListResponse(int, String) - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationUsageListResponse
-
- ConversationUsageListStatus - Class in ai.z.openapi.service.assistant.conversation
-
This class represents the response containing a list of conversation usage data.
- ConversationUsageListStatus() - Constructor for class ai.z.openapi.service.assistant.conversation.ConversationUsageListStatus
-
- create(ZaiConfig) - Static method in class ai.z.openapi.utils.OkHttps
-
Creates a configured OkHttpClient instance based on the provided configuration.
- createAgentCompletion(AgentsCompletionRequest) - Method in interface ai.z.openapi.service.agents.AgentService
-
Creates an agent completion, either streaming or non-streaming based on the request
configuration.
- createAgentCompletion(AgentsCompletionRequest) - Method in class ai.z.openapi.service.agents.AgentServiceImpl
-
- createBatch(BatchCreateParams) - Method in interface ai.z.openapi.service.batches.BatchService
-
Creates a batch request.
- createBatch(BatchCreateParams) - Method in class ai.z.openapi.service.batches.BatchServiceImpl
-
- createChatCompletion(ChatCompletionCreateParams) - Method in interface ai.z.openapi.api.chat.ChatApi
-
Create a synchronous chat completion with immediate response Waits for the GLM-4
model to complete execution and returns the final result Supports complex
reasoning, tool calling, function execution, and multi-modal understanding Features
advanced capabilities like web search integration, code interpretation, and image
analysis
- createChatCompletion(ChatCompletionCreateParams) - Method in interface ai.z.openapi.service.chat.ChatService
-
Creates a chat completion, either streaming or non-streaming based on the request
configuration.
- createChatCompletion(ChatCompletionCreateParams) - Method in class ai.z.openapi.service.chat.ChatServiceImpl
-
- createChatCompletionAsync(ChatCompletionCreateParams) - Method in interface ai.z.openapi.api.chat.ChatApi
-
Create an asynchronous chat completion for long-running tasks Submits the request
and returns immediately with a task ID for later result retrieval Ideal for complex
reasoning tasks, long document processing, or batch operations Supports advanced
GLM-4 models with extended context and computational requirements
- createChatCompletionStream(ChatCompletionCreateParams) - Method in interface ai.z.openapi.api.chat.ChatApi
-
Create a streaming chat completion with real-time response Returns response content
incrementally through Server-Sent Events (SSE) for immediate user feedback
Optimized for interactive applications requiring low latency and progressive
content delivery Supports all GLM-4 models with configurable streaming parameters
and token-by-token generation
- createCustomSpeech(AudioCustomizationRequest) - Method in interface ai.z.openapi.service.audio.AudioService
-
Creates customized speech with specific voice characteristics.
- createCustomSpeech(AudioCustomizationRequest) - Method in class ai.z.openapi.service.audio.AudioServiceImpl
-
- createEmbeddings(EmbeddingCreateParams) - Method in interface ai.z.openapi.api.embedding.EmbeddingApi
-
Create embeddings for input text using GLM embedding models Converts text strings
into numerical vector representations that capture semantic meaning Supports
customizable vector dimensions for different use cases and performance requirements
Optimized for both single text and batch processing scenarios
- createEmbeddings(EmbeddingCreateParams) - Method in interface ai.z.openapi.service.embedding.EmbeddingService
-
Creates embeddings for the given input text.
- createEmbeddings(EmbeddingCreateParams) - Method in class ai.z.openapi.service.embedding.EmbeddingServiceImpl
-
- createImage(CreateImageRequest) - Method in interface ai.z.openapi.api.images.ImagesApi
-
Generate images from text prompts using CogView-3-Plus Creates high-quality images
based on textual descriptions with advanced semantic understanding Supports complex
scene composition, lighting effects, and accurate Chinese character rendering
Optimized for both artistic creation and practical image generation needs
- createImage(CreateImageRequest) - Method in interface ai.z.openapi.service.image.ImageService
-
Creates an image based on the provided generation request.
- createImage(CreateImageRequest) - Method in class ai.z.openapi.service.image.ImageServiceImpl
-
- CreateImageRequest - Class in ai.z.openapi.service.image
-
A request for ZAi to create an image based on a prompt All fields except prompt are
optional
- CreateImageRequest() - Constructor for class ai.z.openapi.service.image.CreateImageRequest
-
- createSpeech(AudioSpeechRequest) - Method in interface ai.z.openapi.service.audio.AudioService
-
Creates speech from text using text-to-speech.
- createSpeech(AudioSpeechRequest) - Method in class ai.z.openapi.service.audio.AudioServiceImpl
-
- createTranscription(AudioTranscriptionRequest) - Method in interface ai.z.openapi.service.audio.AudioService
-
Creates audio transcription from audio files.
- createTranscription(AudioTranscriptionRequest) - Method in class ai.z.openapi.service.audio.AudioServiceImpl
-
- createWebSearch(WebSearchRequest) - Method in interface ai.z.openapi.service.web_search.WebSearchService
-
Creates a basic web search.
- createWebSearch(WebSearchRequest) - Method in class ai.z.openapi.service.web_search.WebSearchServiceImpl
-
- createWebSearchPro(WebSearchParamsRequest) - Method in interface ai.z.openapi.service.web_search.WebSearchService
-
Creates a web search with enhanced capabilities.
- createWebSearchPro(WebSearchParamsRequest) - Method in class ai.z.openapi.service.web_search.WebSearchServiceImpl
-
- createWebSearchProStream(WebSearchParamsRequest) - Method in interface ai.z.openapi.service.web_search.WebSearchService
-
Creates a streaming web search with enhanced capabilities.
- createWebSearchProStream(WebSearchParamsRequest) - Method in class ai.z.openapi.service.web_search.WebSearchServiceImpl
-
- Embedding - Class in ai.z.openapi.service.embedding
-
Represents an embedding returned by the embedding api
- Embedding() - Constructor for class ai.z.openapi.service.embedding.Embedding
-
- EmbeddingApi - Interface in ai.z.openapi.api.embedding
-
Embeddings API for text vectorization using GLM models Converts text into
high-dimensional vector representations for semantic similarity and search Supports
batch processing of multiple text inputs with configurable dimensions Ideal for RAG
applications, semantic search, text classification, and similarity matching Features
optimized performance for Chinese and multilingual text processing
- EmbeddingCreateParams - Class in ai.z.openapi.service.embedding
-
Creates an embedding vector representing the input text.
- EmbeddingCreateParams() - Constructor for class ai.z.openapi.service.embedding.EmbeddingCreateParams
-
- EmbeddingResponse - Class in ai.z.openapi.service.embedding
-
Response wrapper for embedding API calls.
- EmbeddingResponse() - Constructor for class ai.z.openapi.service.embedding.EmbeddingResponse
-
- EmbeddingResult - Class in ai.z.openapi.service.embedding
-
An object containing a response from the answer api
- EmbeddingResult() - Constructor for class ai.z.openapi.service.embedding.EmbeddingResult
-
- embeddings() - Method in class ai.z.openapi.ZaiClient
-
Returns the embedding service for text embeddings.
- EmbeddingService - Interface in ai.z.openapi.service.embedding
-
Embedding service interface
- EmbeddingServiceImpl - Class in ai.z.openapi.service.embedding
-
Embedding service implementation
- EmbeddingServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.embedding.EmbeddingServiceImpl
-
- enableTokenCache() - Method in class ai.z.openapi.ZaiClient.Builder
-
Enables token caching, allowing the client to use access tokens for requests.
- equals(Object) - Method in class ai.z.openapi.service.realtime.object.IntOrInfObj
-
- equals(Object) - Method in class ai.z.openapi.service.realtime.object.ToolChoiceObj
-
- equals(Object) - Method in class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolObj
-
- error - Variable in class ai.z.openapi.service.model.ZAiError
-
- ErrorInfo - Class in ai.z.openapi.service.assistant
-
This class represents error information.
- ErrorInfo() - Constructor for class ai.z.openapi.service.assistant.ErrorInfo
-
- ErrorObj - Class in ai.z.openapi.service.realtime.object
-
Represents an error object containing error details.
- ErrorObj() - Constructor for class ai.z.openapi.service.realtime.object.ErrorObj
-
- execute(Single<T>) - Static method in class ai.z.openapi.service.AbstractClientBaseService
-
Executes a Single API call synchronously and handles errors.
- executeRequest(TReq, RequestSupplier<Param, Data>, Class<TResp>) - Method in class ai.z.openapi.service.AbstractClientBaseService
-
Executes a synchronous API request.
- executeRequest(TReq, RequestSupplier<Param, Data>, Class<TResp>) - Method in class ai.z.openapi.ZaiClient
-
Executes a synchronous API request and returns the response.
- File - Class in ai.z.openapi.service.file
-
A file uploaded to ZAi
- File() - Constructor for class ai.z.openapi.service.file.File
-
- FileApi - Interface in ai.z.openapi.api.file
-
File Management API for document and data handling Provides file upload, retrieval,
deletion, and content access capabilities Supports various file formats for
fine-tuning, knowledge base, and other AI tasks
- FileApiResponse - Class in ai.z.openapi.service.file
-
- FileApiResponse() - Constructor for class ai.z.openapi.service.file.FileApiResponse
-
- fileContent(String) - Method in interface ai.z.openapi.api.file.FileApi
-
Download file content Streams the actual file content for download or processing
- FileDeleted - Class in ai.z.openapi.service.file
-
Represents the result of a file deletion operation.
- FileDeleted() - Constructor for class ai.z.openapi.service.file.FileDeleted
-
- FileDelResponse - Class in ai.z.openapi.service.file
-
- FileDelResponse() - Constructor for class ai.z.openapi.service.file.FileDelResponse
-
- FileListParams - Class in ai.z.openapi.service.file
-
Query file list
- FileListParams() - Constructor for class ai.z.openapi.service.file.FileListParams
-
- files() - Method in class ai.z.openapi.ZaiClient
-
Returns the file service for file operations.
- FileSearchResult() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.FileSearchResult
-
- FileSearchToolCall() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.FileSearchToolCall
-
- FileService - Interface in ai.z.openapi.service.file
-
File service interface
- FileServiceImpl - Class in ai.z.openapi.service.file
-
File service implementation
- FileServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.file.FileServiceImpl
-
- FileUploadParams - Class in ai.z.openapi.service.file
-
Create file upload request
- FileUploadParams() - Constructor for class ai.z.openapi.service.file.FileUploadParams
-
- FlowableClientResponse<T> - Interface in ai.z.openapi.core.model
-
Simplified client response with a Flowable stream where the body type and stream item
type are the same.
- FlowableRequestSupplier<Param,Data> - Interface in ai.z.openapi.utils
-
Functional interface for supplying flowable request operations.
- fromJsonToClientEvent(String) - Static method in class ai.z.openapi.service.realtime.JasonUtil
-
Converts JSON string to RealtimeClientEvent object.
- fromJsonToServerEvent(String) - Static method in class ai.z.openapi.service.realtime.JasonUtil
-
Converts JSON string to RealtimeServerEvent object.
- FunctionTool - Class in ai.z.openapi.service.assistant.message.tools.function
-
This class represents a function tool with a name, arguments, and outputs.
- FunctionTool() - Constructor for class ai.z.openapi.service.assistant.message.tools.function.FunctionTool
-
- FunctionToolBlock - Class in ai.z.openapi.service.assistant.message.tools.function
-
This class represents a block of function tool data.
- FunctionToolBlock() - Constructor for class ai.z.openapi.service.assistant.message.tools.function.FunctionToolBlock
-
- FunctionToolCall() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.FunctionToolCall
-
- FunctionToolOutput - Class in ai.z.openapi.service.assistant.message.tools.function
-
This class represents the output of a function tool, containing the generated content.
- FunctionToolOutput() - Constructor for class ai.z.openapi.service.assistant.message.tools.function.FunctionToolOutput
-
- get(String) - Method in interface ai.z.openapi.core.cache.ICache
-
Retrieves cached value by key.
- get(String) - Method in class ai.z.openapi.core.cache.LocalCache
-
- get() - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityMonitor
-
- get(Param) - Method in interface ai.z.openapi.utils.FlowableRequestSupplier
-
Executes the operation with the given parameters and returns the result.
- get(Param) - Method in interface ai.z.openapi.utils.RequestSupplier
-
Executes an asynchronous operation with the given parameters.
- getAlg() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets algorithm with system property and environment variable fallback.
- getApiId() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets API key with system property and environment variable fallback.
- getApiKey() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets API secret key with system property and environment variable fallback.
- getApiSecret() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets API secret with system property and environment variable fallback.
- getAuthToken() - Method in interface ai.z.openapi.service.realtime.OkHttpRealtimeClient.CommunicationProvider
-
- getBaseUrl() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets base URL with system property and environment variable fallback.
- getConnectionPoolKeepAliveDuration() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets connection pool keep alive duration with system property and environment
variable fallback.
- getConnectionPoolMaxIdleConnections() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets connection pool max idle connections with system property and environment
variable fallback.
- getConnectionPoolTimeUnit() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets connection pool time unit (always returns the set value or default).
- getConnectTimeout() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets connect timeout with system property and environment variable fallback.
- getContent() - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- getContent() - Method in class ai.z.openapi.service.assistant.message.TextContentBlock
-
- getData() - Method in interface ai.z.openapi.core.model.ClientResponse
-
- getData() - Method in class ai.z.openapi.service.model.SSE
-
- getDelta() - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- getDeserializer(Class<?>) - Static method in class ai.z.openapi.service.deserialize.assistant.AssistantChoiceDeserializer
-
- getEncoding() - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- getExpireMillis() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets expire millis with system property and environment variable fallback.
- getFileId() - Method in class ai.z.openapi.service.assistant.AssistantAttachments
-
- getFinishReason() - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- getFlowable() - Method in interface ai.z.openapi.core.model.BiFlowableClientResponse
-
- getIndex() - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- getInstance() - Static method in class ai.z.openapi.core.cache.LocalCache
-
Gets singleton instance of LocalCache.
- getInstance() - Static method in class ai.z.openapi.service.deserialize.ObjectDeserializer
-
- getMetadata() - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- getNullValue(DeserializationContext) - Method in class ai.z.openapi.service.deserialize.assistant.AssistantChoiceDeserializer
-
- getReadTimeout() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets read timeout with system property and environment variable fallback.
- getRequestTimeOut() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets request timeout with system property and environment variable fallback.
- getRole() - Method in class ai.z.openapi.service.assistant.message.TextContentBlock
-
- getRole() - Method in class ai.z.openapi.service.assistant.message.ToolsDeltaBlock
-
- getSource_channel() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets source channel with system property.
- getText() - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- getTimeOutTimeUnit() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets timeout time unit (always returns the set value or null).
- getToken(ZaiConfig) - Method in class ai.z.openapi.core.token.TokenManager
-
Gets valid JWT token, either from cache or generates new one.
- getTokenManagerV4() - Static method in class ai.z.openapi.core.token.GlobalTokenManager
-
Gets the global TokenManager instance.
- getToolCalls() - Method in class ai.z.openapi.service.assistant.message.ToolsDeltaBlock
-
- getWebSocketUrl() - Method in interface ai.z.openapi.service.realtime.OkHttpRealtimeClient.CommunicationProvider
-
- getWriteTimeout() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets write timeout with system property and environment variable fallback.
- GlobalTokenManager - Class in ai.z.openapi.core.token
-
Global token manager providing singleton access to TokenManager instance.
- GlobalTokenManager() - Constructor for class ai.z.openapi.core.token.GlobalTokenManager
-
- ICache - Interface in ai.z.openapi.core.cache
-
Token cache interface with default LocalCache implementation.
- Image - Class in ai.z.openapi.service.image
-
An object containing either a URL or a base 64 encoded image.
- Image() - Constructor for class ai.z.openapi.service.image.Image
-
- ImageResponse - Class in ai.z.openapi.service.image
-
Response wrapper for image generation API calls.
- ImageResponse() - Constructor for class ai.z.openapi.service.image.ImageResponse
-
- ImageResult - Class in ai.z.openapi.service.image
-
An object with a list of image results.
- ImageResult() - Constructor for class ai.z.openapi.service.image.ImageResult
-
- images() - Method in class ai.z.openapi.ZaiClient
-
Returns the image service for image generation and processing.
- ImagesApi - Interface in ai.z.openapi.api.images
-
Images API for AI-powered image generation Powered by CogView-3-Plus models using
advanced Transformer architecture Delivers high-quality text-to-image generation with
performance comparable to industry leaders Features optimized diffusion model with
enhanced noise planning for superior image quality Supports various image styles,
sizes, and generation parameters with Chinese text rendering capabilities
- ImageService - Interface in ai.z.openapi.service.image
-
Image service interface
- ImageServiceImpl - Class in ai.z.openapi.service.image
-
Image service implementation
- ImageServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.image.ImageServiceImpl
-
- inf() - Static method in class ai.z.openapi.service.realtime.object.IntOrInfObj
-
Creates an IntOrInfObj representing infinity.
- InputAudioBufferAppend - Class in ai.z.openapi.service.realtime.client
-
Client event for appending audio data to the input audio buffer.
- InputAudioBufferAppend() - Constructor for class ai.z.openapi.service.realtime.client.InputAudioBufferAppend
-
- InputAudioBufferClear - Class in ai.z.openapi.service.realtime.client
-
Client event for clearing the input audio buffer.
- InputAudioBufferClear() - Constructor for class ai.z.openapi.service.realtime.client.InputAudioBufferClear
-
- InputAudioBufferCleared - Class in ai.z.openapi.service.realtime.server
-
- InputAudioBufferCleared() - Constructor for class ai.z.openapi.service.realtime.server.InputAudioBufferCleared
-
- InputAudioBufferCommit - Class in ai.z.openapi.service.realtime.client
-
- InputAudioBufferCommit() - Constructor for class ai.z.openapi.service.realtime.client.InputAudioBufferCommit
-
- InputAudioBufferCommitted - Class in ai.z.openapi.service.realtime.server
-
- InputAudioBufferCommitted() - Constructor for class ai.z.openapi.service.realtime.server.InputAudioBufferCommitted
-
- InputAudioBufferPreCommit - Class in ai.z.openapi.service.realtime.client
-
- InputAudioBufferPreCommit() - Constructor for class ai.z.openapi.service.realtime.client.InputAudioBufferPreCommit
-
- InputAudioBufferSpeechStarted - Class in ai.z.openapi.service.realtime.server
-
- InputAudioBufferSpeechStarted() - Constructor for class ai.z.openapi.service.realtime.server.InputAudioBufferSpeechStarted
-
- InputAudioBufferSpeechStopped - Class in ai.z.openapi.service.realtime.server
-
- InputAudioBufferSpeechStopped() - Constructor for class ai.z.openapi.service.realtime.server.InputAudioBufferSpeechStopped
-
- InputAudioTranscriptionObj - Class in ai.z.openapi.service.realtime.object
-
- InputAudioTranscriptionObj() - Constructor for class ai.z.openapi.service.realtime.object.InputAudioTranscriptionObj
-
- InputVideoBufferAppend - Class in ai.z.openapi.service.realtime.client
-
- InputVideoBufferAppend() - Constructor for class ai.z.openapi.service.realtime.client.InputVideoBufferAppend
-
- intercept(Interceptor.Chain) - Method in class ai.z.openapi.core.token.AuthenticationInterceptor
-
- IntOrInfObj - Class in ai.z.openapi.service.realtime.object
-
Represents a value that can be either an integer or "inf" (infinity).
- IntOrInfObj.ConfigIntOrInfDeserializer - Class in ai.z.openapi.service.realtime.object
-
- IntOrInfObj.ConfigIntOrInfSerializer - Class in ai.z.openapi.service.realtime.object
-
- isCachable() - Method in class ai.z.openapi.service.deserialize.BaseNodeDeserializer
-
- isDisableTokenCache() - Method in class ai.z.openapi.core.config.ZaiConfig
-
Gets disable token cache flag with system property and environment variable
fallback.
- isDone() - Method in class ai.z.openapi.service.model.SSE
-
- isEmpty(String) - Static method in class ai.z.openapi.utils.StringUtils
-
Checks if a string is empty or null.
- isNotEmpty(String) - Static method in class ai.z.openapi.utils.StringUtils
-
Checks if a string is not empty and not null.
- ItemContent() - Constructor for class ai.z.openapi.service.realtime.object.ItemObj.ItemContent
-
- ItemObj - Class in ai.z.openapi.service.realtime.object
-
Represents a conversation item object containing message content.
- ItemObj() - Constructor for class ai.z.openapi.service.realtime.object.ItemObj
-
- ItemObj.ItemContent - Class in ai.z.openapi.service.realtime.object
-
Represents the content of an item, which can include text, audio, or transcript
data.
- iterBytes(int) - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- iterText(int) - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- mapper - Static variable in class ai.z.openapi.service.AbstractClientBaseService
-
- mapper - Static variable in class ai.z.openapi.service.audio.AudioServiceImpl
-
- MessageContent - Class in ai.z.openapi.service.assistant.message
-
- MessageContent() - Constructor for class ai.z.openapi.service.assistant.message.MessageContent
-
- MessageContentDeserializer - Class in ai.z.openapi.service.deserialize.assistant.message
-
- MessageContentDeserializer() - Constructor for class ai.z.openapi.service.deserialize.assistant.message.MessageContentDeserializer
-
- MessageDeserializeFactory - Class in ai.z.openapi.service.deserialize
-
- MessageDeserializeFactory() - Constructor for class ai.z.openapi.service.deserialize.MessageDeserializeFactory
-
- MessageTextContent - Class in ai.z.openapi.service.assistant
-
This class represents the text content of a message.
- MessageTextContent() - Constructor for class ai.z.openapi.service.assistant.MessageTextContent
-
- ModelCharGLM3 - Static variable in class ai.z.openapi.core.Constants
-
CharGLM-3 model - Anthropomorphic character interaction model.
- ModelChatGLM36B - Static variable in class ai.z.openapi.core.Constants
-
ChatGLM3 6B model - Open-source base model with 6 billion parameters.
- ModelChatGLM4 - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 standard model - Balanced performance and capability.
- ModelChatGLM40520 - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 model version 0520 - Specific version release.
- ModelChatGLM41VThinkingFlash - Static variable in class ai.z.openapi.core.Constants
-
GLM-4.1V Thinking Flash model - Visual reasoning model with thinking capabilities.
- ModelChatGLM49B - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 9B model - Open-source model with 9 billion parameters.
- ModelChatGLM4Air - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Air model - Lightweight version optimized for speed.
- ModelChatGLM4Air250414 - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Air 250414 model - Enhanced with reinforcement learning optimization.
- ModelChatGLM4Airx - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 AirX model - Extended Air model with additional features.
- ModelChatGLM4AllTools - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 AllTools model - Agent model for complex task planning and execution.
- ModelChatGLM4Assistant - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Assistant model - AI assistant for various business scenarios.
- ModelChatGLM4Flash - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Flash model - Ultra-fast response model.
- ModelChatGLM4Flash250414 - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Flash 250414 model - Latest free language model.
- ModelChatGLM4FlashX - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 FlashX model - Enhanced Flash version with ultra-fast inference speed.
- ModelChatGLM4Plus - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Plus model - Enhanced version with improved capabilities.
- ModelChatGLM4V - Static variable in class ai.z.openapi.core.Constants
-
GLM-4V standard model - Standard vision model for image analysis.
- ModelChatGLM4VFlash - Static variable in class ai.z.openapi.core.Constants
-
GLM-4V Flash model - Free and powerful image understanding model.
- ModelChatGLM4Voice - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Voice model - Specialized for voice-related tasks.
- ModelChatGLM4VPlus - Static variable in class ai.z.openapi.core.Constants
-
GLM-4V Plus model - Enhanced vision model for image understanding.
- ModelChatGLM4VPlus0111 - Static variable in class ai.z.openapi.core.Constants
-
GLM-4V Plus 0111 model - Variable resolution video and image understanding.
- ModelChatGLMLong - Static variable in class ai.z.openapi.core.Constants
-
GLM-4 Long model - Optimized for long-context conversations.
- ModelChatGLMZ1Air - Static variable in class ai.z.openapi.core.Constants
-
GLM-Z1 Air model - Optimized for mathematical and logical reasoning.
- ModelChatGLMZ1AirX - Static variable in class ai.z.openapi.core.Constants
-
GLM-Z1 AirX model - Fastest domestic inference model with 200 tokens/s.
- ModelChatGLMZ1Flash - Static variable in class ai.z.openapi.core.Constants
-
GLM-Z1 Flash model - Completely free reasoning model service.
- ModelCodeGeeX4 - Static variable in class ai.z.openapi.core.Constants
-
CodeGeeX-4 model - Code generation and completion model.
- ModelCogVideoX - Static variable in class ai.z.openapi.core.Constants
-
CogVideoX model - Video generation from text or images.
- ModelCogVideoX2 - Static variable in class ai.z.openapi.core.Constants
-
CogVideoX-2 model - New video generation model.
- ModelCogVideoXFlash - Static variable in class ai.z.openapi.core.Constants
-
CogVideoX Flash model - Free video generation model.
- ModelCogView - Static variable in class ai.z.openapi.core.Constants
-
CogView-3 standard model - Standard image generation model.
- ModelCogView3Flash - Static variable in class ai.z.openapi.core.Constants
-
CogView-3 Flash model - Free image generation model.
- ModelCogView3Plus - Static variable in class ai.z.openapi.core.Constants
-
CogView-3 Plus model - Enhanced image generation capabilities.
- ModelCogView4 - Static variable in class ai.z.openapi.core.Constants
-
CogView-4 model - Advanced image generation for precise and personalized AI image
expression.
- ModelCogView4250304 - Static variable in class ai.z.openapi.core.Constants
-
CogView-4 250304 model - Advanced image generation with text capabilities.
- ModelData - Class in ai.z.openapi.service.model
-
- ModelData() - Constructor for class ai.z.openapi.service.model.ModelData
-
- ModelEmbedding2 - Static variable in class ai.z.openapi.core.Constants
-
Embedding model version 2 - Text embedding generation.
- ModelEmbedding3 - Static variable in class ai.z.openapi.core.Constants
-
Embedding model version 3 - Latest text embedding generation.
- ModelGLMASR - Static variable in class ai.z.openapi.core.Constants
-
GLM-ASR model - Context-aware audio transcription model that converts audio to
fluent and readable text.
- ModelGLMRealtimeAir - Static variable in class ai.z.openapi.core.Constants
-
GLM-Realtime Air model - Real-time video call model with cross-modal reasoning
capabilities across text, audio, and video.
- ModelGLMRealtimeFlash - Static variable in class ai.z.openapi.core.Constants
-
GLM-Realtime Flash model - Fast real-time video call model with cross-modal
reasoning capabilities.
- ModelRerank - Static variable in class ai.z.openapi.core.Constants
-
Rerank model - Text reordering and relevance scoring.
- ModelTTS - Static variable in class ai.z.openapi.core.Constants
-
CogTTS model - Text-to-Speech synthesis model.
- ModelVidu2Image - Static variable in class ai.z.openapi.core.Constants
-
Vidu 2 Image model - Enhanced video generation from first frame image and text
description.
- ModelVidu2Reference - Static variable in class ai.z.openapi.core.Constants
-
Vidu 2 Reference model - Video generation with reference images of people, objects,
etc.
- ModelVidu2StartEnd - Static variable in class ai.z.openapi.core.Constants
-
Vidu 2 Start-End model - Enhanced video generation from first and last frame
images.
- ModelViduQ1Image - Static variable in class ai.z.openapi.core.Constants
-
Vidu Q1 Image model - Video generation from first frame image and text description.
- ModelViduQ1StartEnd - Static variable in class ai.z.openapi.core.Constants
-
Vidu Q1 Start-End model - Video generation from first and last frame images.
- ModelViduQ1Text - Static variable in class ai.z.openapi.core.Constants
-
Vidu Q1 Text model - High-performance video generation from text input.
- RateLimitObj - Class in ai.z.openapi.service.realtime.object
-
- RateLimitObj() - Constructor for class ai.z.openapi.service.realtime.object.RateLimitObj
-
- RateLimitsUpdated - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that rate limits have been updated.
- RateLimitsUpdated() - Constructor for class ai.z.openapi.service.realtime.server.RateLimitsUpdated
-
- RealtimeClientEvent - Class in ai.z.openapi.service.realtime
-
Base class for all realtime client events sent to the server.
- RealtimeClientEvent() - Constructor for class ai.z.openapi.service.realtime.RealtimeClientEvent
-
- RealtimeError - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that an error has occurred.
- RealtimeError() - Constructor for class ai.z.openapi.service.realtime.server.RealtimeError
-
- RealtimeHeartBeat - Class in ai.z.openapi.service.realtime.server
-
- RealtimeHeartBeat() - Constructor for class ai.z.openapi.service.realtime.server.RealtimeHeartBeat
-
- RealtimeServerEvent - Class in ai.z.openapi.service.realtime
-
Base class for all realtime server events received from the server.
- RealtimeServerEvent() - Constructor for class ai.z.openapi.service.realtime.RealtimeServerEvent
-
- Reasoning() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.Reasoning
-
- RequestSupplier<Param,Data> - Interface in ai.z.openapi.utils
-
Functional interface for supplying single request operations using RxJava.
- ResponseAudioDelta - Class in ai.z.openapi.service.realtime.server
-
- ResponseAudioDelta() - Constructor for class ai.z.openapi.service.realtime.server.ResponseAudioDelta
-
- ResponseAudioDone - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that model-generated audio is complete.
- ResponseAudioDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseAudioDone
-
- ResponseAudioTranscriptDelta - Class in ai.z.openapi.service.realtime.server
-
- ResponseAudioTranscriptDelta() - Constructor for class ai.z.openapi.service.realtime.server.ResponseAudioTranscriptDelta
-
- ResponseAudioTranscriptDone - Class in ai.z.openapi.service.realtime.server
-
- ResponseAudioTranscriptDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseAudioTranscriptDone
-
- ResponseBodyCallback - Class in ai.z.openapi.service.model
-
Callback to parse Server Sent Events (SSE) from raw InputStream and emit the events
with io.reactivex.FlowableEmitter to allow streaming of SSE.
- ResponseBodyCallback(FlowableEmitter<SSE>, boolean) - Constructor for class ai.z.openapi.service.model.ResponseBodyCallback
-
- ResponseCancel - Class in ai.z.openapi.service.realtime.client
-
Client event for canceling an ongoing response generation.
- ResponseCancel() - Constructor for class ai.z.openapi.service.realtime.client.ResponseCancel
-
- ResponseContentPartAdded - Class in ai.z.openapi.service.realtime.server
-
- ResponseContentPartAdded() - Constructor for class ai.z.openapi.service.realtime.server.ResponseContentPartAdded
-
- ResponseContentPartDone - Class in ai.z.openapi.service.realtime.server
-
- ResponseContentPartDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseContentPartDone
-
- ResponseContentPartObj - Class in ai.z.openapi.service.realtime.object
-
Represents a content part in a response from the realtime API.
- ResponseContentPartObj() - Constructor for class ai.z.openapi.service.realtime.object.ResponseContentPartObj
-
- ResponseCreate - Class in ai.z.openapi.service.realtime.client
-
Client event to trigger the server to create a response through model inference.
- ResponseCreate() - Constructor for class ai.z.openapi.service.realtime.client.ResponseCreate
-
- ResponseCreated - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that a new response has been created.
- ResponseCreated() - Constructor for class ai.z.openapi.service.realtime.server.ResponseCreated
-
- ResponseDone - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that response generation is complete.
- ResponseDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseDone
-
- ResponseFunctionCallArgumentsDelta - Class in ai.z.openapi.service.realtime.server
-
- ResponseFunctionCallArgumentsDelta() - Constructor for class ai.z.openapi.service.realtime.server.ResponseFunctionCallArgumentsDelta
-
- ResponseFunctionCallArgumentsDone - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that model-generated function call arguments are complete.
- ResponseFunctionCallArgumentsDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseFunctionCallArgumentsDone
-
- ResponseObj - Class in ai.z.openapi.service.realtime.object
-
Represents a response configuration object for realtime API responses.
- ResponseObj() - Constructor for class ai.z.openapi.service.realtime.object.ResponseObj
-
- ResponseOutputItemAdded - Class in ai.z.openapi.service.realtime.server
-
- ResponseOutputItemAdded() - Constructor for class ai.z.openapi.service.realtime.server.ResponseOutputItemAdded
-
- ResponseOutputItemDone - Class in ai.z.openapi.service.realtime.server
-
- ResponseOutputItemDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseOutputItemDone
-
- ResponseTextDelta - Class in ai.z.openapi.service.realtime.server
-
- ResponseTextDelta() - Constructor for class ai.z.openapi.service.realtime.server.ResponseTextDelta
-
- ResponseTextDone - Class in ai.z.openapi.service.realtime.server
-
- ResponseTextDone() - Constructor for class ai.z.openapi.service.realtime.server.ResponseTextDone
-
- Retrieval - Class in ai.z.openapi.service.model
-
- Retrieval() - Constructor for class ai.z.openapi.service.model.Retrieval
-
- RetrievalTool - Class in ai.z.openapi.service.assistant.message.tools.retrieval
-
This class represents the outputs of a retrieval tool.
- RetrievalTool() - Constructor for class ai.z.openapi.service.assistant.message.tools.retrieval.RetrievalTool
-
- RetrievalToolBlock - Class in ai.z.openapi.service.assistant.message.tools.retrieval
-
- RetrievalToolBlock() - Constructor for class ai.z.openapi.service.assistant.message.tools.retrieval.RetrievalToolBlock
-
- RetrievalToolOutput - Class in ai.z.openapi.service.assistant.message.tools.retrieval
-
This class represents the output of a retrieval tool.
- RetrievalToolOutput() - Constructor for class ai.z.openapi.service.assistant.message.tools.retrieval.RetrievalToolOutput
-
- retrieveAgentAsyncResult(AgentAsyncResultRetrieveParams) - Method in interface ai.z.openapi.service.agents.AgentService
-
Retrieves the result of an asynchronous agent operation.
- retrieveAgentAsyncResult(AgentAsyncResultRetrieveParams) - Method in class ai.z.openapi.service.agents.AgentServiceImpl
-
- retrieveAsyncResult(AsyncResultRetrieveParams) - Method in interface ai.z.openapi.service.chat.ChatService
-
Retrieves the result of an asynchronous model operation.
- retrieveAsyncResult(AsyncResultRetrieveParams) - Method in class ai.z.openapi.service.chat.ChatServiceImpl
-
- retrieveBatch(BatchRequest) - Method in interface ai.z.openapi.service.batches.BatchService
-
Retrieves a specific batch.
- retrieveBatch(String) - Method in interface ai.z.openapi.service.batches.BatchService
-
Retrieves a specific batch by ID.
- retrieveBatch(BatchRequest) - Method in class ai.z.openapi.service.batches.BatchServiceImpl
-
- retrieveBatch(String) - Method in class ai.z.openapi.service.batches.BatchServiceImpl
-
- retrieveFile(String) - Method in interface ai.z.openapi.api.file.FileApi
-
Retrieve file metadata and information Gets detailed information about a previously
uploaded file
- retrieveFileContent(String) - Method in interface ai.z.openapi.service.file.FileService
-
Retrieves the content of a specific file.
- retrieveFileContent(String) - Method in class ai.z.openapi.service.file.FileServiceImpl
-
- retrofit() - Method in class ai.z.openapi.ZaiClient
-
Returns the underlying Retrofit instance used for API communication.
- SearchChatMessage - Class in ai.z.openapi.service.tools
-
- SearchChatMessage() - Constructor for class ai.z.openapi.service.tools.SearchChatMessage
-
- SearchIntent - Class in ai.z.openapi.service.tools
-
Represents search intent information for web search operations.
- SearchIntent() - Constructor for class ai.z.openapi.service.tools.SearchIntent
-
- SearchIntentResp - Class in ai.z.openapi.service.web_search
-
- SearchIntentResp() - Constructor for class ai.z.openapi.service.web_search.SearchIntentResp
-
- SearchRecommend - Class in ai.z.openapi.service.tools
-
Represents search query recommendations.
- SearchRecommend() - Constructor for class ai.z.openapi.service.tools.SearchRecommend
-
- SearchResult - Class in ai.z.openapi.service.tools
-
Represents a search result item from web search operations.
- SearchResult() - Constructor for class ai.z.openapi.service.tools.SearchResult
-
- Segment - Class in ai.z.openapi.service.model
-
- Segment() - Constructor for class ai.z.openapi.service.model.Segment
-
- sendMessage(RealtimeClientEvent) - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient
-
- SensitiveWordCheckRequest - Class in ai.z.openapi.service.model
-
Request parameters for sensitive word checking.
- SensitiveWordCheckRequest() - Constructor for class ai.z.openapi.service.model.SensitiveWordCheckRequest
-
- serialize(IntOrInfObj, JsonGenerator, SerializerProvider) - Method in class ai.z.openapi.service.realtime.object.IntOrInfObj.ConfigIntOrInfSerializer
-
- serialize(ToolChoiceObj, JsonGenerator, SerializerProvider) - Method in class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolChoiceObjSerializer
-
- SessionCreated - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that a new session has been created.
- SessionCreated() - Constructor for class ai.z.openapi.service.realtime.server.SessionCreated
-
- SessionObj - Class in ai.z.openapi.service.realtime.object
-
Represents a session configuration object for the realtime API.
- SessionObj() - Constructor for class ai.z.openapi.service.realtime.object.SessionObj
-
- SessionUpdate - Class in ai.z.openapi.service.realtime.client
-
Client event for updating session configuration.
- SessionUpdate() - Constructor for class ai.z.openapi.service.realtime.client.SessionUpdate
-
- SessionUpdated - Class in ai.z.openapi.service.realtime.server
-
Server event indicating that the session configuration has been updated.
- SessionUpdated() - Constructor for class ai.z.openapi.service.realtime.server.SessionUpdated
-
- set(String, String, int, TimeUnit) - Method in interface ai.z.openapi.core.cache.ICache
-
Sets cache value with expiration time.
- set(String, String, int, TimeUnit) - Method in class ai.z.openapi.core.cache.LocalCache
-
- setApiKey(String) - Method in class ai.z.openapi.core.config.ZaiConfig
-
Sets API key and parses it into id and secret components.
- setCode(int) - Method in interface ai.z.openapi.core.model.ClientResponse
-
- setContent(String) - Method in class ai.z.openapi.service.assistant.message.TextContentBlock
-
- setData(T) - Method in interface ai.z.openapi.core.model.ClientResponse
-
- setDelta(MessageContent) - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- setError(ChatError) - Method in interface ai.z.openapi.core.model.ClientResponse
-
- setFileId(String) - Method in class ai.z.openapi.service.assistant.AssistantAttachments
-
- setFinishReason(String) - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- setFlowable(Flowable<F>) - Method in interface ai.z.openapi.core.model.BiFlowableClientResponse
-
- setIndex(int) - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- setInput(String) - Method in class ai.z.openapi.service.embedding.EmbeddingCreateParams
-
- setInput(List<String>) - Method in class ai.z.openapi.service.embedding.EmbeddingCreateParams
-
- setMetadata(Map<String, Object>) - Method in class ai.z.openapi.service.assistant.AssistantChoice
-
- setMsg(String) - Method in interface ai.z.openapi.core.model.ClientResponse
-
- setProperties(Object) - Method in class ai.z.openapi.service.model.ChatFunctionParameters
-
- setRequired(List<String>) - Method in class ai.z.openapi.service.model.ChatFunctionParameters
-
- setRole(String) - Method in class ai.z.openapi.service.assistant.message.TextContentBlock
-
- setRole(String) - Method in class ai.z.openapi.service.assistant.message.ToolsDeltaBlock
-
- setSuccess(boolean) - Method in interface ai.z.openapi.core.model.ClientResponse
-
- setTokenManager(TokenManager) - Static method in class ai.z.openapi.core.token.GlobalTokenManager
-
Sets custom TokenManager implementation.
- setToolCalls(List<ToolsType>) - Method in class ai.z.openapi.service.assistant.message.ToolsDeltaBlock
-
- setType(String) - Method in class ai.z.openapi.service.model.ChatFunctionParameters
-
- SSE - Class in ai.z.openapi.service.model
-
Simple Server Sent Event representation
- SSE(String) - Constructor for class ai.z.openapi.service.model.SSE
-
- SSEFormatException - Class in ai.z.openapi.service.model
-
Exception indicating a SSE format error
- SSEFormatException(String) - Constructor for class ai.z.openapi.service.model.SSEFormatException
-
- start() - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient
-
- statusCode - Variable in exception ai.z.openapi.service.model.ZAiHttpException
-
HTTP status code
- stop() - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient
-
- stream(Call<ResponseBody>, Class<T>) - Method in class ai.z.openapi.service.AbstractClientBaseService
-
Creates a streaming Flowable that maps SSE data to the specified class type.
- stream(Call<ResponseBody>) - Static method in class ai.z.openapi.service.AbstractClientBaseService
-
Creates a streaming Flowable of SSE events without emitting done events.
- stream(Call<ResponseBody>, boolean) - Static method in class ai.z.openapi.service.AbstractClientBaseService
-
Creates a streaming Flowable of SSE events with optional done event emission.
- streamRequest(TReq, FlowableRequestSupplier<Param, Call<ResponseBody>>, Class<TResp>, Class<T>) - Method in class ai.z.openapi.service.AbstractClientBaseService
-
Executes a streaming API request with the same type for response body and stream
element.
- streamRequest(TReq, FlowableRequestSupplier<Param, Call<ResponseBody>>, Class<TResp>, Class<Data>) - Method in class ai.z.openapi.ZaiClient
-
Executes a streaming API request and returns a FlowableClientResponse with stream
elements of type Data.
- streamToFile(String, int) - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-
- StringUtils - Class in ai.z.openapi.utils
-
Utility class providing common string manipulation operations.
- supportsUpdate(DeserializationConfig) - Method in class ai.z.openapi.service.deserialize.BaseNodeDeserializer
-
- TaskStatus - Enum in ai.z.openapi.service.model
-
- TextContentBlock - Class in ai.z.openapi.service.assistant.message
-
This class represents a block of text content in a conversation.
- TextContentBlock() - Constructor for class ai.z.openapi.service.assistant.message.TextContentBlock
-
- toBytes() - Method in class ai.z.openapi.service.model.SSE
-
- toJsonFromClientEvent(RealtimeClientEvent) - Static method in class ai.z.openapi.service.realtime.JasonUtil
-
Converts RealtimeClientEvent object to JSON string.
- toJsonFromServerEvent(RealtimeServerEvent) - Static method in class ai.z.openapi.service.realtime.JasonUtil
-
Converts RealtimeServerEvent object to JSON string.
- tokenExpire(int) - Method in class ai.z.openapi.ZaiClient.Builder
-
Sets the token expiration time in milliseconds.
- TokenManager - Class in ai.z.openapi.core.token
-
JWT token manager for handling token generation and caching.
- TokenManager(ICache) - Constructor for class ai.z.openapi.core.token.TokenManager
-
Constructs TokenManager with specified cache implementation.
- ToolCalls - Class in ai.z.openapi.service.model
-
Represents tool calls made by the model during conversation.
- ToolCalls() - Constructor for class ai.z.openapi.service.model.ToolCalls
-
- ToolChoiceObj - Class in ai.z.openapi.service.realtime.object
-
Represents tool choice configuration for controlling which tools the model can use.
- ToolChoiceObj.ToolChoiceObjDeserializer - Class in ai.z.openapi.service.realtime.object
-
- ToolChoiceObj.ToolChoiceObjSerializer - Class in ai.z.openapi.service.realtime.object
-
- ToolChoiceObj.ToolObj - Class in ai.z.openapi.service.realtime.object
-
Represents a specific tool that can be forced for use.
- ToolChoiceObjDeserializer() - Constructor for class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolChoiceObjDeserializer
-
- ToolChoiceObjSerializer() - Constructor for class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolChoiceObjSerializer
-
- ToolObj() - Constructor for class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolObj
-
- ToolObj - Class in ai.z.openapi.service.realtime.object
-
Represents a tool object that can be used by the AI model during conversations.
- ToolObj() - Constructor for class ai.z.openapi.service.realtime.object.ToolObj
-
- ToolsApi - Interface in ai.z.openapi.api.tools
-
Tools API for enhanced AI capabilities and intelligent agent functions Provides access
to external tools and services integrated with GLM-4 All Tools Enables AI models to
access real-time information, perform web searches, and execute complex tasks Features
intelligent tool selection, automatic parameter optimization, and result synthesis
Supports web browsing, code interpretation, image generation, and custom tool
integration
- ToolsDeltaBlock - Class in ai.z.openapi.service.assistant.message
-
This class represents a block of tool call data in a conversation.
- ToolsDeltaBlock() - Constructor for class ai.z.openapi.service.assistant.message.ToolsDeltaBlock
-
- ToolsType - Class in ai.z.openapi.service.assistant.message.tools
-
- ToolsType() - Constructor for class ai.z.openapi.service.assistant.message.tools.ToolsType
-
- toString() - Method in class ai.z.openapi.service.realtime.object.IntOrInfObj
-
- toString() - Method in class ai.z.openapi.service.realtime.object.ToolChoiceObj.ToolObj
-
- toString() - Method in class ai.z.openapi.service.realtime.object.ToolChoiceObj
-
- TranslateParameters - Class in ai.z.openapi.service.assistant
-
Parameters for translation operations.
- TranslateParameters() - Constructor for class ai.z.openapi.service.assistant.TranslateParameters
-
- TurnDetectionObj - Class in ai.z.openapi.service.realtime.object
-
- TurnDetectionObj() - Constructor for class ai.z.openapi.service.realtime.object.TurnDetectionObj
-
- type - Variable in exception ai.z.openapi.service.model.ZAiHttpException
-
ZAI error type, for example "invalid_request_error"
- value() - Method in enum ai.z.openapi.service.model.ChatMessageRole
-
- value() - Method in enum ai.z.openapi.service.model.ChatToolType
-
- valueOf(String) - Static method in enum ai.z.openapi.service.model.ChatMessageRole
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ai.z.openapi.service.model.ChatToolType
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ai.z.openapi.service.model.TaskStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityState
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum ai.z.openapi.service.model.ChatMessageRole
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ai.z.openapi.service.model.ChatToolType
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ai.z.openapi.service.model.TaskStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum ai.z.openapi.service.realtime.OkHttpRealtimeClient.ConnectivityState
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- VideoCreateParams - Class in ai.z.openapi.service.videos
-
Parameters for video creation API calls.
- VideoCreateParams() - Constructor for class ai.z.openapi.service.videos.VideoCreateParams
-
- videoGenerations(VideoCreateParams) - Method in interface ai.z.openapi.api.videos.VideosApi
-
Generate videos from text or image prompts using CogVideoX Creates high-quality
videos with natural camera movements and semantic coherence Supports text-to-video
generation with detailed prompt descriptions Supports image-to-video generation
using image_url parameter for enhanced control
- videoGenerations(VideoCreateParams) - Method in interface ai.z.openapi.service.videos.VideosService
-
Creates video generations.
- videoGenerations(VideoCreateParams) - Method in class ai.z.openapi.service.videos.VideosServiceImpl
-
- videoGenerationsResult(String) - Method in interface ai.z.openapi.api.videos.VideosApi
-
Retrieve the result of an asynchronous video generation Gets the generated video
result using the task ID from video generation request Video generation is
typically asynchronous due to computational complexity
- videoGenerationsResult(String) - Method in interface ai.z.openapi.service.videos.VideosService
-
Retrieves video generation result.
- videoGenerationsResult(String) - Method in class ai.z.openapi.service.videos.VideosServiceImpl
-
- VideoObject - Class in ai.z.openapi.service.videos
-
This class represents the video object containing details about the video generation
task.
- VideoObject() - Constructor for class ai.z.openapi.service.videos.VideoObject
-
- VideoResult - Class in ai.z.openapi.service.videos
-
This class represents the result of a video creation process.
- VideoResult() - Constructor for class ai.z.openapi.service.videos.VideoResult
-
- videos() - Method in class ai.z.openapi.ZaiClient
-
Returns the videos service for video processing.
- VideosApi - Interface in ai.z.openapi.api.videos
-
Videos API for AI-powered video generation Powered by CogVideoX models using advanced
Transformer and 3D Causal VAE architecture Supports both text-to-video and
image-to-video generation with exceptional quality Features natural camera movements,
semantic coherence, and photorealistic visual output Configurable parameters include
quality, audio generation, size, and frame rate (fps)
- VideosResponse - Class in ai.z.openapi.service.videos
-
- VideosResponse() - Constructor for class ai.z.openapi.service.videos.VideosResponse
-
- VideosService - Interface in ai.z.openapi.service.videos
-
Videos service interface
- VideosServiceImpl - Class in ai.z.openapi.service.videos
-
Implementation of VideosService
- VideosServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.videos.VideosServiceImpl
-
- waitForConnection() - Method in class ai.z.openapi.service.realtime.OkHttpRealtimeClient
-
- WebBrowser - Class in ai.z.openapi.service.assistant.message.tools.web_browser
-
This class represents the input and outputs of a web browser search.
- WebBrowser() - Constructor for class ai.z.openapi.service.assistant.message.tools.web_browser.WebBrowser
-
- WebBrowserOutput - Class in ai.z.openapi.service.assistant.message.tools.web_browser
-
This class represents the output of a web browser search result.
- WebBrowserOutput() - Constructor for class ai.z.openapi.service.assistant.message.tools.web_browser.WebBrowserOutput
-
- WebBrowserToolBlock - Class in ai.z.openapi.service.assistant.message.tools.web_browser
-
This class represents a block for invoking the web browser tool.
- WebBrowserToolBlock() - Constructor for class ai.z.openapi.service.assistant.message.tools.web_browser.WebBrowserToolBlock
-
- webSearch(WebSearchParamsRequest) - Method in interface ai.z.openapi.api.tools.ToolsApi
-
Perform intelligent web search with comprehensive response Executes advanced web
search using GLM-4 All Tools with intelligent result synthesis Features automatic
query expansion, content summarization, and quality assessment Provides structured
results optimized for AI model consumption and reasoning
- webSearch(WebSearchRequest) - Method in interface ai.z.openapi.api.web_search.WebSearchApi
-
Perform intelligent web search operation with GLM-4 integration Searches the
internet for relevant, up-to-date information using advanced query processing
Features automatic query expansion, result filtering, and content quality
assessment Supports real-time information retrieval for news, facts, and current
events
- WebSearch - Class in ai.z.openapi.service.model
-
Configuration class for web search functionality.
- WebSearch() - Constructor for class ai.z.openapi.service.model.WebSearch
-
- webSearch() - Method in class ai.z.openapi.ZaiClient
-
Returns the web search service for internet search capabilities.
- WebSearchApi - Interface in ai.z.openapi.api.web_search
-
Web Search API for real-time internet information retrieval Integrated with GLM-4
models to provide comprehensive web search capabilities Enables AI models to access
current information, news, and real-time data from the internet Supports intelligent
search result filtering, ranking, and content summarization Features automatic query
optimization and multi-source information aggregation
- WebSearchApiResponse - Class in ai.z.openapi.service.tools
-
- WebSearchApiResponse() - Constructor for class ai.z.openapi.service.tools.WebSearchApiResponse
-
- WebSearchChoice - Class in ai.z.openapi.service.tools
-
- WebSearchChoice() - Constructor for class ai.z.openapi.service.tools.WebSearchChoice
-
- WebSearchDTO - Class in ai.z.openapi.service.web_search
-
- WebSearchDTO() - Constructor for class ai.z.openapi.service.web_search.WebSearchDTO
-
- WebSearchMessage - Class in ai.z.openapi.service.tools
-
Represents a web search message containing role and tool call information.
- WebSearchMessage() - Constructor for class ai.z.openapi.service.tools.WebSearchMessage
-
- WebSearchMessageToolCall - Class in ai.z.openapi.service.tools
-
- WebSearchMessageToolCall() - Constructor for class ai.z.openapi.service.tools.WebSearchMessageToolCall
-
- WebSearchParamsRequest - Class in ai.z.openapi.service.tools
-
- WebSearchParamsRequest() - Constructor for class ai.z.openapi.service.tools.WebSearchParamsRequest
-
- WebSearchPro - Class in ai.z.openapi.service.tools
-
- WebSearchPro() - Constructor for class ai.z.openapi.service.tools.WebSearchPro
-
- WebSearchRequest - Class in ai.z.openapi.service.web_search
-
- WebSearchRequest() - Constructor for class ai.z.openapi.service.web_search.WebSearchRequest
-
- WebSearchResp - Class in ai.z.openapi.service.web_search
-
- WebSearchResp() - Constructor for class ai.z.openapi.service.web_search.WebSearchResp
-
- WebSearchResponse - Class in ai.z.openapi.service.web_search
-
- WebSearchResponse() - Constructor for class ai.z.openapi.service.web_search.WebSearchResponse
-
- WebSearchService - Interface in ai.z.openapi.service.web_search
-
Web search service interface
- WebSearchServiceImpl - Class in ai.z.openapi.service.web_search
-
Web search service implementation
- WebSearchServiceImpl(ZaiClient) - Constructor for class ai.z.openapi.service.web_search.WebSearchServiceImpl
-
- webSearchStreaming(WebSearchParamsRequest) - Method in interface ai.z.openapi.api.tools.ToolsApi
-
Perform intelligent web search with streaming response Executes real-time web
search using GLM-4 enhanced query processing and streams results Features automatic
query optimization, result filtering, and relevance ranking Provides incremental
results for immediate processing and user feedback
- WebSearchToolCall() - Constructor for class ai.z.openapi.service.realtime.object.OutputItemObj.WebSearchToolCall
-
- writeToFile(String) - Method in class ai.z.openapi.core.response.HttpxBinaryResponseContent
-