Updated

Abliterated API in Go

Go programs call an abliterated model through the official openai-go package, with option.WithBaseURL pointing at the provider. Requests, streaming and retries work as they do against OpenAI.

  1. 1

    Install the SDK

    openai-go v3 needs Go 1.26 or later, per its README.

    go getgo get -u 'github.com/openai/openai-go/v3'
  2. 2

    Set your key

    Create a key on Silk Compute's API keys page and add credits from $5. Keep it in an environment variable.

    Shellexport SILK_API_KEY="sk-..."
  3. 3

    Run main.go

    Save the program below as main.go and run it.

    Rungo run main.go
main.go
main.go
package main

import (
	"context"
	"fmt"
	"os"

	"github.com/openai/openai-go/v3"
	"github.com/openai/openai-go/v3/option"
)

func main() {
	client := openai.NewClient(
		option.WithBaseURL("https://api.silkcompute.com"),
		option.WithAPIKey(os.Getenv("SILK_API_KEY")),
	)
	reply, err := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
		Model: "deepseek-v4.1-flash-1017-uncensored",
		Messages: []openai.ChatCompletionMessageParamUnion{
			openai.UserMessage("What is a mutex?"),
		},
	})
	if err != nil {
		panic(err)
	}
	fmt.Println(reply.Choices[0].Message.Content)
}

Example output

A lock only one thread can hold at a time.