@mynthio/sdk.
It is the easiest way to integrate Mynth from JavaScript or TypeScript applications.
What the SDK gives you
- a typed
Mynthclient - sync and async generation flows
TaskandTaskAsyncabstractions- built-in polling for async tasks
- exported runtime model metadata through
AVAILABLE_MODELS - a Convex webhook helper in
@mynthio/sdk/convex
Installation
Typical server-side use
Typical async use
When to use the SDK
Prefer the SDK when you want:- strong TypeScript support
- less boilerplate for polling
- consistent task handling