Skip to main content

🛠️ Orynt SDK Introduction

The Orynt SDK provides a simple, unified interface for accessing multiple AI models and handling pay-per-request payments via the x402 protocol and PayAI.
Orynt SDK on npm
Install the SDK via npm:
npm add @orynt/ai-x402

🔑 Key Features

Unified AI Access

Use one SDK to interact with chat, image, speech, and embeddings models across multiple providers like OpenAI and Gradient.

Built-in Payments

Handle pay-per-request seamlessly with x402 micropayments; no subscriptions or API keys required.

Multi-Network Support

Works across Solana, Polygon, Base, and more. Specify your network in the SDK configuration.

Easy Integration

Quickly set up the SDK in your Node.js or browser environment with minimal code.

🧩 Basic Usage

import { Orynt } from '@orynt/ai-x402';

const ai = new Orynt({
  baseUrl: 'https://api.oryntai.xyz/api/v1',
  network: 'solana-devnet', // choose your network
});

// Example: Chat with GPT-4.1
const response = await ai.chat({
  model: 'gpt-4.1',
  messages: [{ role: 'user', content: 'Hello, Orynt!' }],
});

console.log(response);

🌐 Learn More

The SDK is fully compatible with the Orynt REST API and can be used interchangeably with SDK calls or direct HTTP requests.