OptoGlide SDK Overview
Official client libraries for integrating OptoGlide generation and asset management into your own applications.
OptoGlide provides official SDKs that wrap the REST API in idiomatic client libraries, handling authentication, retries, and pagination automatically.
Available SDKs
- Node.js / TypeScript –
npm install @optoglide/sdk - Python –
pip install optoglide - Go –
go get github.com/optoglide/optoglide-go
Basic usage (Node.js)
import { OptoGlide } from "@optoglide/sdk";
const client = new OptoGlide({ apiKey: process.env.OPTOGLIDE_API_KEY });
const generation = await client.generations.create({
studio: "video",
brief: "60-second explainer video for our onboarding flow",
});
const result = await client.generations.waitForCompletion(generation.id);
console.log(result.assetUrl);
Basic usage (Python)
from optoglide import OptoGlide
client = OptoGlide(api_key="YOUR_API_KEY")
generation = client.generations.create(
studio="presentation",
brief="Quarterly board update summarizing Q1 campaign performance",
)
result = client.generations.wait_for_completion(generation.id)
print(result.asset_url)
Handling webhooks
Rather than polling for generation status, configure a webhook endpoint under Workspace Settings > Webhooks to receive real-time notifications when a generation completes, an approval workflow changes status, or a new asset is added to the library. All SDKs include helper functions for verifying webhook signatures.
Versioning
SDKs follow semantic versioning and track the API version noted in their changelog. Breaking API changes are announced at least 90 days in advance through the release notes.