Seams
Get started

Getting Started

Installation

Two environment variables and an existing client.

Seams speaks the OpenAI chat-completions shape, so any client that can point at a base URL works without a new SDK.

export SEAMS_BASE_URL=https://gw.ourseams.com/v1
export SEAMS_API_KEY=ak_yourcode_test_…

With the OpenAI SDK

import OpenAI from "openai"

const client = new OpenAI({
  baseURL: process.env.SEAMS_BASE_URL,
  apiKey: process.env.SEAMS_API_KEY,
})

With curl

curl "$SEAMS_BASE_URL/chat/completions" \
  -H "authorization: Bearer $SEAMS_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model":"acme/fast","messages":[{"role":"user","content":"hello"}]}'

Built by Seams. The source is available on GitHub.