Preternatural
Preternatural connects your application to AI providers through a single gateway. It lets you control which models customers can use, authenticate customer requests all on the client side.
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 authenticate customers and make model requests from JavaScript or TypeScript applications.
Install the SDK and understand the customer request flow.
Client SDK overviewCreate a client and configure its project, environment, and transport.
Configure the Client SDKRestore sessions and authenticate sandbox customers.
AuthenticationSend streaming and non-streaming chat completions.
Chat completionsRead a customer’s usage and limit information.
Customer usageConfigure another SDK to send authenticated requests through the gateway.
Gateway configurationProvider integrations
Use the Client SDK directly or configure a provider SDK to send requests through the Preternatural gateway.
Send OpenAI chat completions using the Client SDK or the official OpenAI SDK.
OpenAISend Anthropic chat completions using the Client SDK or the official Anthropic SDK.
AnthropicSend Jev System One requests using the TypeSafe AI SDK.
Jev