Integrate wallet-gated AI inference into your Solana dApps with production-ready SDKs
npm install @snowy/sdkimport { SnowyClient } from '@snowy/sdk';
import { Connection, PublicKey } from '@solana/web3.js';
// Initialize client
const client = new SnowyClient({
connection: new Connection('https://api.mainnet-beta.solana.com'),
wallet: yourWalletAdapter,
});
// Generate text
const response = await client.inference.generate({
prompt: "Create a viral meme caption for a polar bear",
model: "snowy-v1",
maxTokens: 100,
});
console.log(response.text);Generate text completions using the SNOWY model with customizable parameters.
Stream text completions token-by-token for real-time inference display.
Verify wallet signature for authentication and authorization.
Retrieve on-chain usage statistics for the connected wallet.
Start integrating SNOWY into your dApp today with our comprehensive SDK and documentation.