Quickstart
Welcome to Veah — Solana’s open-source large language model. This guide will walk you through setting up your environment, authenticating with the API, and making your first query in under 5 minutes. ⚡️
1. Get Your API Key
Head to Veah Console and create an account. After logging in, navigate to the API Keys section and generate a new key.
You’ll use this key to authenticate all requests to the Veah API.
2. Make Your First Request (cURL)
You can send a query directly from your terminal using cURL:
curl https://api.veah.ai/v1/query \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"prompt": "Summarize the latest Solana validator performance.",
"mode": "onchain"
}'Response Example:
{
"result": "Validator participation remains steady at 99.8%. Recent upgrades improved consensus latency by 12%.",
"latency_ms": 78
}3. Install the SDK (JavaScript / TypeScript)
npm install veah-sdkExample:
import { Veah } from "veah-sdk";
const veah = new Veah({ apiKey: process.env.VEAH_API_KEY });
const response = await veah.query({
prompt: "Give me a summary of the top Solana NFT collections by volume.",
mode: "analytics"
});
console.log(response.result);4. Python Quickstart
pip install veahExample:
from veah import Veah
client = Veah(api_key="YOUR_API_KEY")
response = client.query(
prompt="What are the latest DeFi protocol trends on Solana?",
mode="onchain"
)
print(response.result)5. Supported Query Modes
onchain
Access and reason with live Solana blockchain data
Validator stats, transaction analytics
analytics
Aggregates and summarizes ecosystem-level data
DeFi insights, NFT metrics
text
General-purpose LLM response
Summaries, explanations, code comments
You can specify the mode in your API call for more context-aware responses.
6. Monitor Your Usage
Access real-time API usage and latency stats at veahllm.com. You can track request counts, response times, and success rates.
Last updated