API overview¶
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.
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.
API by capability¶
The links below group Java's generated Javadoc by the same tasks as the learning guides. For runnable code, start in the examples hub.
| Category | Start here |
|---|---|
| Client & configuration | Client entry points, options and configuration |
| Chat | Completions and streaming |
| Audio | Speech services and session APIs |
| Protocols and transport | Native chat, HTTP/SSE, and WebSocket |
| Client resources | Retrieval, generation, files and other services |
| AgentStudio | Hosted agents, workflows and events |
| Types | Messages, results and shared types |
| Errors and devkit | Typed errors, mock debugging and engineering utilities |
| Legacy API | Frozen 2.x surface and migration paths |
Entry points¶
Start with DashScopeClient or DashScopeAsyncClient. See client & configuration for options.
Requests & responses¶
See types for request builders, response models and shared streams.
Errors¶
See errors for the unchecked exception hierarchy.
Resources & infrastructure¶
See client resources for service entry points. The generated transport package and local tokenizer cover lower-level APIs.