hyperclipco (the bare hyperclip was already taken). The module imports as hyperclipco. This page shows production patterns built on top of it. For the full method reference see SDKs.
Install
httpx as the only runtime dependency.
Basic usage
Download helper
Thevideo_url is a permanent public URL on video.hyperclip.co. Stream it to disk if your workflow needs a local copy:
CSV-driven batch jobs
Process a CSV of prompts with a thread pool. Each row gets a deterministic idempotency key so crashes are safe to retry — already-processed rows return their existing completed run.FastAPI proxy
Expose a thin proxy so your frontend never touches the Hyperclip key./generate, receives a run_id, then polls GET /generate/<id> every few seconds.
Inline FlowSchema (no saved flow)
Async with httpx
The SDK is synchronous today. For async codebases, run blocking calls in a thread pool:Bring-your-own httpx client
Pass a pre-configuredhttpx.Client to set transport-level options like proxies, retries, or custom headers:
with httpx.Client(...) as c: ...).
Error handling
Cleanup
If you create theHyperclip instance in a function (not at module scope), close it when you’re done — or use it as a context manager:
Where next
SDK reference
Every method, parameter, and option.
Inputs reference
All the ways to override a flow’s defaults at run time.
Errors
Catalog of every error you can hit.
Source on GitHub
File issues, read source, watch for releases.