Other
Technical Reference
SDKs & Integrations
Technical documentation for dryAPI APIs, integration guides, and operational references.
Python SDK
The official Python SDK for dryAPI. Generate images, videos, audio, transcriptions, embeddings, and more — through a type-safe Python interface with sync and async support.
- GitHub Repository - dryapi-ai/dryapi-python-sdk
Installation
pip install dryapi-python-sdkRequirements: Python 3.9+
Quick Start
from dryapi import DryapiClient
client = DryapiClient(api_key="sk-your-api-key")
# Generate an image
job = client.images.generate(
prompt="a cat floating in a nebula, photorealistic",
model="Flux_2_Klein_4B_BF16",
width=1024,
height=1024,
steps=4,
seed=-1,
)
# Wait for the result (polls with exponential backoff)
result = job.wait()
print(result.result_url)Features
- Full API coverage — images, video, audio (TTS, voice cloning, music), transcription, embeddings, OCR, prompt enhancement
- Sync + Async —
DryapiClientandAsyncDryapiClient - Job polling — automatic exponential backoff with
.wait() - Auto-retry — built-in retry on rate limits (429) and server errors (5xx)
- Type-safe — full type hints, Pydantic v2 models,
py.typedmarker - Webhook verification — HMAC-SHA256 signature validation
- Price calculation — every method has a
_pricecounterpart to check cost before submitting
TIP
For full documentation, configuration options, usage examples, and API reference, visit the GitHub repository.
Coming Soon
We're working on official SDKs for:
- Node.js / TypeScript
Last updated on 21 March 2026