Modem
Modem, by Preternatural, is the backend for an AI app. Your app (web, Electron, or Swift) signs in its customer and calls the Modem gateway directly. Modem holds the provider keys, meters usage, enforces limits, and bills. The dashboard shows all of it. There is no server to deploy.
A product sets which models a customer can use, and how much.
Get started
Create a project
Add a provider account
Configure a provider account →
Configure a product
Integrate the Client SDK
Client SDK
Use @preternatural-js/client-sdk to sign in customers and send model requests from a JavaScript or TypeScript application.
Check what you need and install the SDK.
Client SDK overviewCreate a client and configure its project, environment, and transport.
Configure the Client SDKEstablish or restore a customer session, and use synthetic sandbox customers.
AuthenticationSend streaming and non-streaming chat completions.
Chat completionsRead a customer’s usage allowances and rate limits.
Customer usageGet the gateway address and headers for another SDK.
Gateway configurationRead the status codes and error body of a refused request.
Gateway errorsProvider integrations
Send requests with the Client SDK, or point a provider SDK at the Modem gateway.
Send OpenAI chat completions with the Client SDK or the OpenAI SDK.
OpenAISend Anthropic requests with the Client SDK or the Anthropic SDK.
AnthropicSend Jev System One requests with the TypeSafe AI SDK.
Jev