@drawcall/generate-panorama
Client SDK for generating 360° environment maps in the Drawcall Market
environment format: a 2048×1024 background WebP plus a 1024×512 Radiance
.hdr for Three.js PMREM/IBL lighting.
import { generate } from "@drawcall/generate-panorama";
import { writeFile } from "node:fs/promises";
const result = await generate({
prompt: "a misty alpine valley at sunrise"
});
await writeFile("public/environment/alpine-valley.hdr", result.hdr);
await writeFile("public/environment/alpine-valley-background.webp", result.backgroundWebp);
The default API host is https://v1.panorama.api.drawcall.ai.
The pipeline generates the LDR panorama with GPT Image 2 (fal.ai), blends the
equirectangular wraparound seam, and reconstructs HDR with
LEDiff hosted on Modal.