goffPublic beta

YOUR WORKSPACE

Portal

Sign in to manage your API keys and prepaid credits. Sign in ↗
Prepaid · EUR
Lite€0.025 / 1M input tokens
Pro€0.25 / 1M input tokens · coming soon

Your API key works with the TypeSafe Python SDK. The public beta ships Lite only.

API keys

Create a key for your application.

No API keys yet

Your keys will appear here.

Documentation - Quickstart

Call goff from Python with the TypeSafe SDK.

  1. 1

    Install the SDK

    pip install typesafe-sdk
  2. 2

    Create an API key

    Use Create key above. The secret is shown once, so store it in your environment rather than in source.

  3. 3

    Ask typed questions

    Each question returns an answer of its own type, with a calibrated confidence you can threshold on.

from typesafe_sdk import Choice, Noul, Score, TypeSafeClient

with TypeSafeClient(
    api_key="sk-...",              # the key you created above
    base_url="https://api.goff-ai.com",
) as client:
    result = client.system_one(
        state={"subject": "Duplicate charge", "body": "Please refund it today."},
        questions={
            "department": Choice(
                instructions="Which team should handle this?",
                criteria={
                    "billing": "payments and refunds",
                    "support": "product problems",
                },
            ),
            "urgency": Score(
                instructions="How urgent is this?",
                criteria=["Can wait", "Needs attention this week", "Needs attention today"],
            ),
            "refund_requested": Noul(instructions="Is the customer asking for a refund?"),
        },
        model="goff-lite",
    )

print(result.choices["department"].choice)        # billing
print(result.choices["department"].confidence)    # 0.94
print(result.scores["urgency"].score)             # 2.0
print(result.nouls["refund_requested"].noul)      # 0.97

Base URL: https://api.goff-ai.com · Model: goff-lite · Every response carries an x-typesafe-request-id header. Billing counts input tokens only.

goff / developer portalView models