Explore real-world implementations and code examples to get started with SNOWY LLM. Copy, modify, and deploy these examples in your own projects.
import { SnowyClient } from '@snowy/sdk';
const client = new SnowyClient({
wallet: myWallet,
});
const response = await client.chat({
messages: [
{ role: 'user', content: 'Hello SNOWY!' }
],
model: 'snowy-chat-v1',
});
console.log(response.content);import { SnowyClient } from '@snowy/sdk';
const client = new SnowyClient({
wallet: myWallet,
});
const meme = await client.generateMeme({
prompt: 'doge on the moon',
style: 'classic',
wallet: publicKey,
});
console.log(meme.imageUrl);from snowy_sdk import SnowyClient
client = SnowyClient(wallet=my_wallet)
response = client.complete(
prompt="Generate a viral tweet about Solana",
max_tokens=280,
temperature=0.8
)
tweet_content = response.text
print(tweet_content)use snowy_sdk::SnowyClient;
let client = SnowyClient::new(wallet)?;
let result = client.moderate(ModerateRequest {
content: user_message,
categories: vec!["spam", "toxic", "nsfw"],
}).await?;
if result.is_safe {
// Process the content
}import { SnowyClient } from '@snowy/sdk';
const client = new SnowyClient({
wallet: myWallet,
});
const description = await client.generate({
prompt: 'Create NFT description for pixel art bears',
maxTokens: 100,
temperature: 0.7,
});
console.log(description.text);import { SnowyClient } from '@snowy/sdk';
const client = new SnowyClient({
wallet: myWallet,
});
const replies = await client.suggestReplies({
context: conversationHistory,
count: 3,
tone: 'friendly',
});
replies.forEach(reply => {
console.log(reply.text);
});Get started with SNOWY SDK and bring AI to your Solana applications