API Documentation
Integrate ToolHive into your applications
Base URL
https://api.toolhive.com/v1Authentication
Include your API key in the Authorization header of your requests.
Authorization: Bearer YOUR_API_KEY
Chat Completions
Send chat messages to our AI models.
POST /v1/chat/completions
{
"model": "gpt-4",
"messages": [
{"role": "user", "content": "Hello!"}
],
"max_tokens": 1000
}Pricing
| Model | Input Price | Output Price |
|---|---|---|
| gpt-4 | $0.03/1K tokens | $0.06/1K tokens |
| gpt-3.5-turbo | $0.0015/1K tokens | $0.002/1K tokens |
Note
Prices are subject to change. Check our pricing page for the latest rates.