Skip to main content

deeprelay-sdk

Programmatic API for deeprelay. Authenticate with API keys minted from the dashboard. See https://deeprelay.ai/docs for details.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 0.1.2
  • Generator version: 7.24.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.10+

Installation & Usage

pip install

Install from PyPI with pip install deeprelay-sdk, or straight from the public source mirror:

pip install git+https://github.com/deeprelay-dev/deeprelay-python-sdk.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/deeprelay-dev/deeprelay-python-sdk.git)

Then import the package:

import deeprelay_sdk

Setuptools

Install from a mirror checkout (run from the checkout root):

pip install --user .

(or sudo pip install . to install the package for all users)

Then import the package:

import deeprelay_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import os

import deeprelay_sdk
from deeprelay_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.deeprelay.ai/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = deeprelay_sdk.Configuration(
    host = "https://api.deeprelay.ai/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (deeprelay_live_<24-base62>): bearerAuth
configuration = deeprelay_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with deeprelay_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = deeprelay_sdk.BillingApi(api_client)
    create_crypto_deposit_request = deeprelay_sdk.CreateCryptoDepositRequest() # CreateCryptoDepositRequest | 

    try:
        # Create a stablecoin deposit
        api_response = api_instance.create_crypto_deposit(create_crypto_deposit_request)
        print("The response of BillingApi->create_crypto_deposit:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling BillingApi->create_crypto_deposit: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.deeprelay.ai/v1

Class Method HTTP request Description
BillingApi create_crypto_deposit POST /billing/deposits/crypto Create a stablecoin deposit
BillingApi create_subscription_checkout POST /billing/subscription/checkout Start a subscription checkout session
BillingApi create_subscription_portal POST /billing/subscription/portal Open the billing portal to cancel or manage the subscription
BillingApi get_balance GET /billing/balance Get the org credit balance
BillingApi get_deposit GET /billing/deposits/{id} Get one stablecoin deposit
BillingApi get_referral GET /referrals Get the org referral code, invite link, terms and stats
BillingApi get_spending_limit GET /billing/spending-limit Get the org spending limit
BillingApi get_subscription GET /billing/subscription Get the org subscription status and quota usage
BillingApi list_deposits GET /billing/deposits List stablecoin deposits
BillingApi update_spending_limit PUT /billing/spending-limit Set the org spending limit
InferenceApi cancel_video POST /videos/{id}/cancel Cancel a video generation job
InferenceApi create_chat_completion POST /chat/completions Create a chat completion (OpenAI-compatible)
InferenceApi create_embeddings POST /embeddings Create embeddings (OpenAI-compatible)
InferenceApi create_image POST /images/generations Create image (OpenAI-compatible)
InferenceApi create_video POST /videos Create a video generation job (async)
InferenceApi get_model GET /models/{id} Get a specific model (OpenAI-compatible)
InferenceApi get_video GET /videos/{id} Get a video generation job
InferenceApi get_video_content GET /videos/{id}/content Download a completed video artifact
InferenceApi inference_preflight GET /inference/preflight Check whether a model request would be served, and at whose expense
InferenceApi list_models GET /models List available models (OpenAI-compatible)
InferenceApi list_videos GET /videos List video generation jobs
MetaApi get_health GET /health Liveness probe
MetaApi get_open_api_spec GET /openapi.json OpenAPI 3.1 specification
OperationsApi get_operation GET /operations/{id} Get an async operation status
UsageApi list_usage GET /usage Time-bucketed usage
WebhooksApi create_webhook_endpoint POST /webhook-endpoints Create a webhook endpoint
WebhooksApi delete_webhook_endpoint DELETE /webhook-endpoints/{id} Delete a webhook endpoint
WebhooksApi get_webhook_endpoint GET /webhook-endpoints/{id} Get a webhook endpoint
WebhooksApi list_webhook_endpoints GET /webhook-endpoints List webhook endpoints

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication (deeprelay_live_<24-base62>)

Author

support@deeprelay.ai

Release files for deeprelay-sdk 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deeprelay-sdk 0.1.2
File Size Uploaded
deeprelay_sdk-0.1.2.tar.gz 80.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deeprelay-sdk 0.1.2
File Interpreter ABI Platform
deeprelay_sdk-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 220.1 kB

Release files / deeprelay_sdk-0.1.2.tar.gz

Download URL deeprelay_sdk-0.1.2.tar.gz
Size 80.7 kB
Tags Source
SHA-256 checksum
How to use checksums
8ae9c7e79b7efecbed1a5672db800d6d31574def66a6fe116225d9d31638346d
BLAKE2b-256 checksum
How to use checksums
6e6dbee864f346c05703d150268bc11ebe6c4da12fdd7f6cebec9574a326adc0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release files / deeprelay_sdk-0.1.2-py3-none-any.whl

Download URL deeprelay_sdk-0.1.2-py3-none-any.whl
Size 139.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f60f60013d4668e65fd7250403b13f1b16ca5883bfa0e3a2de91ebb2b9b21703
BLAKE2b-256 checksum
How to use checksums
a5a0f430b9e9e14cb41a1274221a9c82a56b320f78762d24f80b4a6999e66475
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page