Overview

The Geoff API is fully compatible with the Anthropic Messages API. Point any Anthropic SDK or client to https://geoff.ai/api and use your Geoff API key.

Configuration

import anthropic

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

message = client.messages.create(
    model="magma",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello, Claude!"}
    ],
)

print(message.content[0].text)

Supported Features

  • Messages API
  • Streaming (SSE)
  • Vision (image inputs)
  • Tool use (function calling)
  • System prompts
  • Multi-turn conversations