Documentation
Quick Start
Get started with the Günther API in minutes. This guide will walk you through making your first API request.
1. Get your API key
First, you'll need an API key. You can create one in the API Keys section of your console.
Keep your API key secure! Never share it in public repositories or client-side code.
2. Make your first request
The Günther API is OpenAI-compatible. You can use the official OpenAI SDKs or make direct HTTP requests.
curl https://api.gunther.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $GUNTHER_API_KEY" \
-d '{
"model": "gunther-70b",
"messages": [
{"role": "system", "content": "You are Günther."},
{"role": "user", "content": "Hello!"}
]
}'3. Handle the response
The API returns a JSON response with the completion:
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1677652288,
"model": "gunther-70b",
"choices": [{
"index": 0,
"message": {
"role": "assistant",
"content": "Hello! How can I assist you today?"
},
"finish_reason": "stop"
}],
"usage": {
"prompt_tokens": 9,
"completion_tokens": 12,
"total_tokens": 21
}
}