Overview

The Geoff API also exposes an OpenAI-compatible chat completions endpoint. Use any OpenAI SDK or client by pointing it to https://geoff.ai/api/v1.

Configuration

from openai import OpenAI

client = OpenAI(
    api_key="your-geoff-api-key",
    base_url="https://geoff.ai/api/v1",
)

response = client.chat.completions.create(
    model="magma",
    messages=[
        {"role": "user", "content": "Hello!"}
    ],
)

print(response.choices[0].message.content)

Supported Features

  • Chat Completions API
  • Streaming
  • Function calling / tools
  • System messages
  • Multi-turn conversations