Sign In

SDK Installation

Install the RadMah AI SDK for your language, authenticate with your API key, and verify the connection in under five minutes.

Requirements

LanguageMinimum VersionPackage Manager
Python3.10+pip
REST APIAnycURL / any HTTP client

You also need a RadMah AI API key (prefixed sl_live_). Create one from Settings → API Keys in the dashboard.

1

Install the SDK

Install
pip install radmah-sdk

Python extras

For Jupyter notebook workflows, install with the optional pandas dependency: pip install radmah-sdk pandas. The SDK works without pandas, but to_dataframe() requires it and raises a clear error if missing.

2

Configure Environment Variables

The Python SDK reads these environment variables automatically. Set them in your shell profile, CI secrets, or container environment.

VariableRequiredDescription
RADMAH_API_KEYYesYour API key. Prefixed sl_live_
RADMAH_BASE_URLNoOverride the API endpoint. Defaults to https://api.radmah.ai
RADMAH_TIMEOUTNoRequest timeout in seconds. Defaults to 120
.env / shell
export RADMAH_API_KEY="sl_live_your_key_here"

# Optional overrides
export RADMAH_BASE_URL="https://api.radmah.ai"
export RADMAH_TIMEOUT="120"

Never hardcode API keys

Do not commit API keys to source control. Use environment variables, a secrets manager, or your CI/CD platform's secret storage. The SDK reads RADMAH_API_KEY from the environment automatically when no key is passed to the constructor.

3

Initialize the Client

Create a client instance. If RADMAH_API_KEY is set in the environment, the constructor picks it up automatically. You can also pass configuration explicitly.

Client initialization
from radmah_sdk import RadMahClient

# Reads RADMAH_API_KEY from environment
client = RadMahClient()

# Or pass configuration explicitly
client = RadMahClient(
    api_key="sl_live_your_key_here",
    base_url="https://api.radmah.ai",
    timeout=120,
)

Enterprise deployments

For on-premise or VPC deployments, set RADMAH_BASE_URL to your private API endpoint. The Python SDK reads this automatically. For REST API usage, replace the base URL in your requests.

4

Verify Connection

Run this quick verification to confirm your SDK is installed, your API key is valid, and the client can reach the RadMah AI API.

Verify connection
from radmah_sdk import RadMahClient

client = RadMahClient()

# Fetch account info to verify the connection
account = client.account.get()
print(f"Connected as: {account.name}")
print(f"Tenant:       {account.tenant_id}")
print(f"Plan:         {account.plan}")

If the connection succeeds, you will see your account name, tenant ID, and plan printed to the console. If it fails, the SDK throws an authentication error with a descriptive message.

Configuration Reference

All Python SDK client options can be set via constructor parameters or environment variables. Constructor parameters take precedence over environment variables.

ParameterEnv VariableDefaultDescription
api_keyRADMAH_API_KEYAPI key for authentication. Required.
base_urlRADMAH_BASE_URLhttps://api.radmah.aiAPI base URL. Override for enterprise deployments.
timeoutRADMAH_TIMEOUT120Request timeout in seconds.
max_retriesRADMAH_MAX_RETRIES3Maximum retry attempts for transient failures.
verify_sslRADMAH_VERIFY_SSLtrueTLS certificate verification. Do not disable in production.

SDK Resource Namespaces

The Python SDK client exposes resource namespaces for each area of the platform. The same resources are available via REST endpoints.

NamespaceDescription
client.accountAccount info, usage, and plan details
client.jobsCreate, list, get, cancel, and rerun generation jobs
client.datasetsUpload, list, get, and delete datasets
client.artifactsList, download, and verify job artifacts and evidence bundles
client.sealsList, get, and download provenance seals
client.connectorsCRUD, test, import from, and deliver to external sources
client.agentAgentic Data Scientist project lifecycle

Next Steps