Quick Start

Get started with AltLLM in minutes. Our API is fully compatible with OpenAI SDKs, making integration seamless.

Overview

AltLLM provides a unified API for accessing AI models with built-in crypto intelligence. Every request automatically has access to real-time crypto data tools including:

  • Token Prices - Live prices from CoinGecko
  • Crypto News - Latest news from multiple sources
  • Gas Prices - Real-time gas on Ethereum, Polygon, Arbitrum
  • Project Data - Alpha on 100+ crypto projects
  • IL Calculator - Impermanent loss calculations

API Configuration

Base URL

https://altllm-api.viber.autonome.fun/v1

Get your API key from the API Keys page in the portal.

Using OpenAI SDK

The fastest way to integrate is using the official OpenAI SDK with our base URL.

Python

pip install openai
from openai import OpenAI

client = OpenAI(
    base_url="https://altllm-api.viber.autonome.fun/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="altllm-standard",
    messages=[
        {"role": "user", "content": "What's the price of Bitcoin?"}
    ]
)

print(response.choices[0].message.content)

TypeScript

npm install openai
import OpenAI from 'openai';

const client = new OpenAI({
  baseURL: 'https://altllm-api.viber.autonome.fun/v1',
  apiKey: 'YOUR_API_KEY'
});

const response = await client.chat.completions.create({
  model: 'altllm-standard',
  messages: [
    { role: 'user', content: "What's the price of Bitcoin?" }
  ]
});

console.log(response.choices[0].message.content);

Direct API Call

You can also call the API directly using cURL or any HTTP client.

curl https://altllm-api.viber.autonome.fun/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "altllm-standard",
    "messages": [
      {"role": "user", "content": "What is the price of ETH?"}
    ],
    "max_tokens": 500
  }'

Available Models

ModelDescriptionPrice
altllm-lightQuick answers, simple queries$0.50 / $0.76
altllm-standardBalanced for daily tasks$0.60 / $2.40
altllm-proAdvanced reasoning$0.80 / $3.00
altllm-pro-maxMultimodal capabilities$1.00 / $6.00
altllm-maxBest quality responses$2.00 / $10.00

* Prices per 1M tokens (input / output)

Crypto Tools in Action

AltLLM models automatically use crypto tools when relevant. Here are some example queries:

Price Queries

"What's the current price of SOL?"

News Search

"What's the latest news about Ethereum?"

Gas Prices

"What are the current gas prices on Ethereum?"

Project Research

"Tell me about Uniswap's tokenomics"

Next Steps