Call the PrintResize tools from scripts, agents, and integrations. A key runs on your account and spends the same credits at the same per-run prices as the website. Failed runs refund automatically.
curl -X POST https://printresize.com/api/refit \
-H "Authorization: Bearer pr_your_key" \
-F "imageUrl=https://example.com/swatch.png" \
-F "widthCm=120" -F "heightCm=40"import requests
res = requests.post(
"https://printresize.com/api/refit",
headers={"Authorization": "Bearer pr_your_key"},
data={
"imageUrl": "https://example.com/swatch.png",
"widthCm": 120,
"heightCm": 40,
},
)
print(res.json())const form = new FormData();
form.set("imageUrl", "https://example.com/swatch.png");
form.set("widthCm", "120");
form.set("heightCm", "40");
const res = await fetch("https://printresize.com/api/refit", {
method: "POST",
headers: { Authorization: "Bearer pr_your_key" },
body: form,
});
console.log(await res.json());Submit a run, poll the task, download the file — the full flow with every parameter is in the reference: Read the full API reference