Skip to content

runapi-ai/core-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

RunAPI

Shared SDK primitives for RunAPI JavaScript, Python, Ruby, Go, and Java SDKs.

npm PyPI RubyGems Go Reference Maven Central License


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.

Install

npm install @runapi.ai/core
pip install runapi-core
gem install runapi-core
go get github.com/runapi-ai/core-sdk/go@latest

Gradle:

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>

Use Core Directly

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();

Repository Layout

  • js/ publishes @runapi.ai/core.
  • python/ publishes runapi-core.
  • ruby/ publishes runapi-core.
  • go/ publishes github.com/runapi-ai/core-sdk/go.
  • java/ publishes ai.runapi:runapi-core and ai.runapi:runapi-bom.

Public Links

License

Licensed under the Apache License, Version 2.0.