The Get Pronto SDK provides a simple interface for interacting with the Get Pronto API from TypeScript and JavaScript applications.
Install the SDK using your preferred package manager:
npm install getpronto-sdkyarn add getpronto-sdkpnpm add getpronto-sdkAfter installation, initialize the client with your API key. The SDK automatically detects the key type from the prefix.
Full access — upload, list, get, delete, and transform images.
import GetProntoClient from "getpronto-sdk";
// Server-side — full access (Node.js, API routes, server components)
const client = new GetProntoClient({
apiKey: "pronto_sk_..."
});Upload only — safe to use in browser code.
import GetProntoClient from "getpronto-sdk";
// Client-side — upload only (safe for browser code)
const client = new GetProntoClient({
apiKey: "pronto_pk_..."
});Learn more about key types and permissions in our Authentication guide.
The SDK client accepts the following configuration options:
| Option | Type | Required | Description |
|---|---|---|---|
| apiKey | string | Yes | Your Get Pronto API key for authentication |
| baseUrl | string | No | Custom API base URL (defaults to https://api.getpronto.io/v1) |
| timeout | number | No | Request timeout in milliseconds |
| retries | number | No | Number of retries for failed requests |
| headers | Record<string, string> | No | Additional headers to include in all requests |
Example with custom configuration options:
import GetProntoClient from "getpronto-sdk";
// Initialize with additional options
const client = new GetProntoClient({
apiKey: "pronto_sk_...",
baseUrl: "https://api.your-domain.com/v1",
headers: {
"User-Agent": "MyApp/1.0.0"
}
});The SDK is written in TypeScript and includes type definitions. Type hints and autocompletion will work out of the box in TypeScript projects and IDEs that support TypeScript.
You can import types from the SDK for use in your application:
import {
ClientConfig,
FileMetadata,
TransformOptions,
} from "getpronto-sdk";Continue exploring our documentation with these related topics: