Demo content for the Relay template. Product name, prices and copy are placeholders. Replace before publishing.

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.

node
quickstart.mjs
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.

Read

Rate limits

Defaults per plan and how to ask for more.

Read