Skip to main content
You can interact with the API through HTTP requests from any language or via our official Python bindings (alpha)

Authentication

Make sure to follow the previous steps described in Authentication to obtain an API key and account ID.

Set up with your coding agent

To have a coding agent such as Claude Code, Cursor, or GitHub Copilot install and configure the SDK in your project, copy this prompt into it:

Install and configure the SGP Python SDK in your project.

Installing the SGP SDK Client

The evaluation examples require scale-gp-beta 0.1.0 or later. To install a compatible ScaleGP Python client, run:

Configuring the Client

The SGP client can be configured with your API key and account ID. Examples on how to use the SGP client can be found in Recipes. The simplest approach is to set environment variables:
Then instantiate the client:
The SDK will automatically use the SGP_API_KEY and SGP_ACCOUNT_ID environment variables. You can also pass them explicitly:
The SGPClient constructor accepts the following parameters:
The Scale GP Python client is under active development. These evaluation examples require version 0.1.0 or later, and some features need a newer version. To upgrade, run pip install --upgrade scale-gp-beta.