Skip to main content
Aria Compute does not ship an official Node.js package. Use the built-in fetch API in Node 18+ with the tiny wrapper below.

Client

aria-compute.ts

Usage

For the China site pass baseUrl: "https://ariacompute.cn/api". Accounts, wallets, and API keys are region-scoped.

Handling redirects

GET /api/models/{slug}/download responds with either a 302 to a short-lived S3 presigned URL or a streamed zip. fetch with redirect: "follow" handles both. Set Accept: application/json on the request if you want the JSON envelope ({ mode, url, filename }) instead.