Skip to content

API Reference

The API reference is generated automatically from source Javadoc on every docs build (maven-javadoc-plugin + Lombok delombok, so builder and getter members are included). It covers every public package shipped in the jar — the 3.0 resources, types, transport, errors, config, tokenization, AgentStudio, and the frozen legacy_2x facades.

Open the full Javadoc

Local preview

Run bash docs/serve.sh to generate the Javadoc bundle and serve the site locally; the reference is then available at /api/ on the preview server too.

Entry points

Class Role
DashScopeClient Sync client; 16 typed resource accessors (chat(), audio(), agentStudio(), …)
DashScopeAsyncClient Async mirror: CompletableFuture + RxJava Flowable
ClientOptions Client-level configuration (endpoints, timeouts, retries, executor, HTTP client)
RequestOptions Per-request overrides (timeout, retries, headers, encryption)

Requests & responses

Package Contents
types.completions ChatCompletionCreateParams, ChatCompletion, ChatCompletionChunk, Delta
types.messages Message (user/system/assistant/tool factories), ToolCall
types.common ResponseStream, shared response bases
types.* Per-capability params and results (audio, images, videos, embeddings, rerank, files, finetunes, …)

Errors

Class Role
DashScopeException Root of the unchecked error family; carries code and request_id
errors package AuthenticationException, RateLimitException, ContentFilterException, ApiTimeoutException, …

Resources & infrastructure

Package Contents
resources Service implementations behind each client accessor
applications.agentstudio Managed agents: sessions, threads, events, files, memory stores, vaults
transport HTTP/SSE/WebSocket transport, retry and encryption internals
config Config chain resolution
tokenization Local BPE tokenizer
legacy_2x Frozen 2.x facades (see the Migration section)