Shared SDK primitives for RunAPI JavaScript, Python, Ruby, Go, and Java SDKs.
RunAPI Core SDK contains the shared authentication, HTTP, retry, error, file upload, account, and polling primitives used by RunAPI model SDKs. Application code should usually install a concrete model package such as @runapi.ai/wan, runapi-wan, github.com/runapi-ai/wan-sdk/go, or ai.runapi:runapi-wan; install core packages directly only when building shared SDK infrastructure.
npm install @runapi.ai/core
pip install runapi-core
gem install runapi-core
go get github.com/runapi-ai/core-sdk/go@latestGradle:
dependencies {
implementation("ai.runapi:runapi-core:0.1.0")
}Maven:
<dependency>
<groupId>ai.runapi</groupId>
<artifactId>runapi-core</artifactId>
<version>0.1.0</version>
</dependency>Core is normally transitive from a model SDK. Install it directly when you need shared Java exceptions, RequestOptions, files, account, or transport primitives in reusable tooling.
import ai.runapi.core.RequestOptions;
import ai.runapi.core.files.FileCreateParams;
import java.time.Duration;
RequestOptions options = RequestOptions.builder()
.timeout(Duration.ofMinutes(15))
.maxRetries(2)
.build();
FileCreateParams upload = FileCreateParams.fromUrl("https://example.com/input.png")
.fileName("input.png")
.build();js/publishes@runapi.ai/core.python/publishesrunapi-core.ruby/publishesrunapi-core.go/publishesgithub.com/runapi-ai/core-sdk/go.java/publishesai.runapi:runapi-coreandai.runapi:runapi-bom.
- SDK docs: https://runapi.ai/docs#runapi-sdks
- Model catalog: https://runapi.ai/models
- Repository: https://github.com/runapi-ai/core-sdk
Licensed under the Apache License, Version 2.0.