REFERENCE

SDKs.

Use plain HTTP from any language. Official SDKs wrap uploads, polling, retries, and idempotency.

TypeScript (planned)

The TypeScript SDK will expose erase(), jobs.retrieve(), jobs.list(), and usage.retrieve(). It will handle multipart uploads, generate idempotency keys, and poll async jobs.

TypeScript
import { Erasa } from "@erasa/sdk";

const erasa = new Erasa({ apiKey: process.env.ERASA_KEY! });

const job = await erasa.erase({
  image: await readFile("street.jpg"),
  prompt: "power lines",
  model: "fast",
});

console.log(job.output.url);

HTTP today

Until the SDK ships, use the cURL/Node/Python examples in the quickstart. Every request is a normal REST call.

Go

Go
req, _ := http.NewRequest("POST", "https://api.erasa.app/v1/erase", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("ERASA_KEY"))
req.Header.Set("Idempotency-Key", "go-001")
SDKs should never log API keys or signed image URLs. Keep retries idempotent.