Getting Started
Get started with TokenHub in 5 minutes
1. Create an Account
Visit the Console to register. You will receive free credits to start.
2. Create an API Key
Go to the Tokens page and click “Create New Token”:
- Name: Identify your token
- Quota: Spending limit
- Expiration: Optional
You’ll receive a key like sk-xxxxx. Keep it safe.
3. Choose Integration Method
TokenHub is fully compatible with the OpenAI API. Any OpenAI-compatible client works.
Base URL: https://hubwave.ai/v1
4. Make a Request
Using curl
curl https://hubwave.ai/v1/chat/completions \
-H "Authorization: Bearer sk-xxxxx" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o",
"messages": [
{"role": "user", "content": "Hello"}
]
}'
Using Python
from openai import OpenAI
client = OpenAI(
api_key="sk-xxxxx",
base_url="https://hubwave.ai/v1"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)
Using Node.js
import OpenAI from 'openai'
const client = new OpenAI({
apiKey: 'sk-xxxxx',
baseURL: 'https://hubwave.ai/v1',
})
const response = await client.chat.completions.create({
model: 'gpt-4o',
messages: [{ role: 'user', content: 'Hello' }],
})
console.log(response.choices[0].message.content)
5. Next Steps
- See API Reference for full endpoints
- Check Integrations for popular clients
- Monitor usage in the Console dashboard