Groq TypeScript / Node.s (also often referred to as “groq-sdk” on npm) is the official Node.js / TypeScript client library for Groq’s REST API, enabling JavaScript/TypeScript developers to integrate LLM and AI-powered services into web backends, serverless functions, or frontend apps. It exports strongly-typed interfaces for models, chat completions, file uploads (e.g. for audio transcription), and other endpoints, allowing for better type safety and developer experience when using Groq from TypeScript. The library also supports passing different input types (file streams, blobs, fetch responses) for media-related endpoints, making it flexible for diverse environments (backend, browser, serverless). With this SDK, developers can call Groq’s models, transcribe audio, perform file uploads — all with minimal boilerplate — which streamlines creation of AI-enabled applications in the JavaScript/TypeScript ecosystem.
Features
- Official JS/TS SDK for Groq REST API with TypeScript types for request and response data
- Supports chat completions, file uploads (audio, media), and other AI endpoints — useful for transcription, generation, etc.
- Flexible input types: Node.js streams, browser Blobs/Files, fetch responses — enabling use in backends or browsers
- Minimal overhead and boilerplate: simple, consistent API for rapid development
- Ideal for web apps, serverless functions, or cross-platform JS/TS projects needing AI services
- Maintained and published on npm (groq-sdk), allowing easy dependency management