Getting started
Libraries
Call the API from any language over plain HTTP.
The API is standard REST with JSON — you can use any HTTP client. Below are minimal wrappers you can drop into a project today.
Node.js
const BASE = "https://api.dreamward.ai/v1";
export async function generate(body) {
const res = await fetch(`${BASE}/generations`, {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.DREAMWARD_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify(body),
});
if (!res.ok) throw new Error((await res.json()).error?.message);
return res.json();
}Python
import os, requests
BASE = "https://api.dreamward.ai/v1"
def generate(body: dict) -> dict:
res = requests.post(
f"{BASE}/generations",
headers={"Authorization": f"Bearer {os.environ['DREAMWARD_API_KEY']}"},
json=body,
)
res.raise_for_status()
return res.json()Official first-party SDKs are on the roadmap. Until then these snippets cover the full surface — every feature is reachable over HTTP.