Quick Start
Get up and running with LLM Hub in under 5 minutes. This guide will walk you through creating your first AI-powered request.
Prerequisites
LLM Hub Account
Sign up at api.llmhub.one to get your API key. New accounts receive €1 in free credits.
Development Environment
Node.js 18+, Python 3.8+, Go 1.21+, or any HTTP client like cURL.
Get Your API Key
- Go to api.llmhub.one/dashboard/api-keys
- Click "Create New API Key"
- Give your key a descriptive name (e.g., "Development")
- Copy the key and store it securely — you won't see it again!
Security tip: Never commit API keys to version control. Use environment variables instead.
Install the SDK
LLM Hub is fully compatible with the official OpenAI SDKs. Just install the OpenAI package for your language:
npm install openaiSet Environment Variables
Store your API key in an environment variable:
Linux / macOS
export LLMHUB_API_KEY="your-api-key-here"Windows (PowerShell)
$env:LLMHUB_API_KEY = "your-api-key-here".env file (recommended)
LLMHUB_API_KEY=your-api-key-hereMake Your First Request
Create a file with the following code and run it. The key difference from OpenAI is setting the baseURL to https://api.llmhub.one/v1.
Expected Output
If everything is set up correctly, you should see a response like:
• Answering questions and providing information
• Writing and editing text
• Coding and debugging
• Creative projects and brainstorming
• And much more!
What would you like help with today?

