npm.io
0.1.0 • Published yesterday

@usemojo/sdk

Licence
MIT
Version
0.1.0
Deps
0
Size
27 kB
Vulns
0
Weekly
0

@usemojo/sdk

The official TypeScript client for the Mojo workload API.

npm install @usemojo/sdk
import { MojoClient } from "@usemojo/sdk";

const mojo = new MojoClient({ apiKey: process.env.MOJO_API_KEY });

const quote = await mojo.createQuote({
  workload: "research_company",
  input: { company: "Acme" },
  quality: "standard",
  maxSpend: "5.00",
});

The public API is not live yet. The client defaults to https://api.usemojo.dev and can be pointed at another environment with baseUrl.

Keywords