Getting Started
Quickstart
Get up and running with the Geoff API in under 5 minutes.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get up and running with the Geoff API in under 5 minutes.
export GEOFF_API_KEY="your-api-key-here"
curl --request POST \
--url https://geoff.ai/api/v1/chat/completions \
--header "Authorization: Bearer $GEOFF_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"model": "magma",
"messages": [
{"role": "user", "content": "What is Geoff?"}
]
}'
import requests
response = requests.post(
"https://geoff.ai/api/v1/chat/completions",
headers={
"Authorization": f"Bearer {GEOFF_API_KEY}",
"X-Stack-Id": "stk_jmqog66ha0mugmro",
"Content-Type": "application/json",
},
json={
"model": "magma",
"messages": [{"role": "user", "content": "What is Geoff?"}],
},
)
print(response.json())
const response = await fetch("https://geoff.ai/api/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${GEOFF_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "magma",
messages: [{ role: "user", content: "What is Geoff?" }],
}),
});
const data = await response.json();
console.log(data);