Getting Started

Get up and running with the Predikt API in just a few minutes.

1

Create an API Account

First, you need to create an API account. This requires connecting your Solana wallet.

Go to API Dashboard
2

Generate an API Key

Once your account is created, generate an API key from the dashboard. You can create multiple keys with different permissions, expiration dates, and security restrictions.

Your API key will look like:

pk_live_abc123def456...

Key features:

  • • Set expiration dates for automatic key invalidation
  • • Restrict keys to specific IP addresses or CIDR ranges
  • • Limit keys to specific origins for browser-based usage
  • • Set custom rate limits and usage quotas per key
  • • Rotate keys with a 60-minute grace period

Important: Keep your API key secure. Never expose it in client-side code or public repositories.

3

Fund Your Account

Deposit SOL or USDC to your account to pay for API usage. All requests are billed in USD and deducted from your balance.

EndpointCost
Single Price$0.01
Batch Price (up to 50)$0.05 + $0.01/symbol
AI Resolution$0.25
Market Data$0.02 - $0.05

No Withdrawals: Deposits are final and cannot be withdrawn. Only deposit what you intend to use.

4

Make Your First Request

Include your API key in the Authorization header with the Bearer scheme.

cURL
curl -X GET "https://api.predikt.fun/api/v1/price/SOL" \
-H "Authorization: Bearer pk_live_your_api_key"
JavaScript
const response = await fetch(
"https://api.predikt.fun/api/v1/price/SOL",
{
headers: {
"Authorization": "Bearer pk_live_your_api_key"
}
}
);
const data = await response.json();
console.log(data.vwapPrice); // 185.42
Response (200)
{
"requestId": "req_abc123",
"symbol": "SOL",
"vwapPrice": 185.42,
"sources": [
{ "name": "birdeye", "price": 185.40, "volume24h": 1000000, "timestamp": "..." },
{ "name": "coingecko", "price": 185.45, "volume24h": 950000, "timestamp": "..." }
],
"sourceCount": 2,
"isValid": true,
"resolutionTimestamp": "2026-01-17T12:00:00.000Z",
"costUsd": "0.01",
"remainingBalanceUsd": "49.99"
}

Next Steps