Quick Start

Get started with AltLLM in minutes. The official OpenAI SDKs work against chat completions, models, and responses by changing only the base URL — see the compatibility contract for exactly what is and is not supported.

Overview

AltLLM provides a unified API for accessing AI models with built-in crypto intelligence. Eligible catalogue-model requests can receive query-selected 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

Plans: Personal (subscription tiers: Free, Basic, Pro, Power) and Business (Flex tier; token-based access to frontier SKUs like GPT-5.6 Sol, and Gemini 3.6 Flash).

API Configuration

Base URL

https://api.altllm.ai/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://api.altllm.ai/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="altllm-basic",
    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://api.altllm.ai/v1',
  apiKey: 'YOUR_API_KEY'
});

const response = await client.chat.completions.create({
  model: 'altllm-basic',
  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://api.altllm.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "altllm-basic",
    "messages": [
      {"role": "user", "content": "What is the price of ETH?"}
    ],
    "max_tokens": 500
  }'

Available Models

ModelDescriptionPrice
altllm-basicHigh reasoning, complex analysis (default)$5.00 / $30.00; $0.50 cached input
altllm-standardBalanced for daily tasks$2.00 / $9.00; $0.20 cached input
altllm-flex-gpt-5.6OpenAI GPT-5.6 Sol — Business Flex$6.00 / $36.00; $0.60 cached input; $7.50 cache write; >272K input: $12.00 / $54.00 for the whole request; $1.20 cached input; $15.00 cache write; OpenAI retains abuse-monitoring logs that may contain prompts and responses for up to 30 days by default, and may retain them longer when required by law or reasonably necessary to protect its services or third parties from harm
altllm-flex-gemini-3.6Google Gemini 3.6 Flash via Vertex AI — Business Flex$1.80 / $9.00; $0.18 cached input

* Text models are priced per 1M input/output tokens. GPT-5.6 Sol applies long-context rates above 272K input tokens.

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