INNER CODE UNIT · TypeScript

createRender

fill3d/fill · lib/fill3d.ts:97

export async function createRender (sceneId: string, prompt: string): Promise<Render> {
  const response = await fetch("/api/render", {
    method: "POST",
    body: JSON.stringify({ sceneId, prompt }),
    headers: { "Content-Type": "application/json" }
  });
  const { error, ...payload } = await response.json();
  if (error)
    throw new Error(error);
  return payload;
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…