Skip to content

About

The project

dashscope-sdk-java is the official Java client for DashScope / Alibaba Cloud Model Studio (Bailian). It targets Java 8+ at runtime and is built with a JDK 8 toolchain (cross-checked with release 8 on modern JDKs).

License

Apache License 2.0 — see LICENSE and NOTICE.

Compatibility and versioning

  • 3.x is the resource-client line for Java 8+.
  • The frozen 2.x API requires com.alibaba.dashscope.legacy_2x.* imports on the 3.x artifact. It is deprecated and planned for removal in 4.0; see migration.
  • Documentation source version: 3.0.0. See release notes for published releases.

Getting help

Runtime dependencies

Versions as declared in the root pom.xml:

Dependency Version Role
com.squareup.okhttp3:okhttp 4.12.0 HTTP transport (shared connection pool)
com.squareup.okhttp3:okhttp-sse 4.12.0 Server-sent events for streaming
com.squareup.okhttp3:logging-interceptor 4.12.0 Opt-in network logging
com.squareup.okio:okio 3.6.0 OkHttp I/O layer
org.jetbrains.kotlin:kotlin-stdlib-jdk8 1.8.21 Required by OkHttp 4.x
com.fasterxml.jackson.core:jackson-databind 2.22.4 Typed request/response (de)serialization
com.google.code.gson:gson 2.8.9 JSON handling in shared utilities
io.reactivex.rxjava2:rxjava 2.2.21 Async streaming (Flowable)
org.slf4j:slf4j-api 2.0.7 Logging facade (bring your own binding)
com.github.victools:jsonschema-generator 4.31.1 Tool/function-call JSON schema generation
org.projectlombok:lombok 1.18.42 Compile-time only (provided) — builders, not a runtime dependency