Docs
Quickstart and reference
Start with the quickstart. Everything else is one click from the sidebar.
Quickstart
Create a key in the dashboard, then make a request.
import { Relay } from "relay-sdk"; const relay = new Relay({ apiKey: process.env.RELAY_KEY }); const res = await relay.generate({ model: "fast", input: "Hello" }); console.log(res.output);
Authentication
Send your key as a bearer token. Keys are shown once, so store them in an environment variable.
Errors and retries
Which status codes are safe to retry.
ReadRate limits
Defaults per plan and how to ask for more.
Read