Free Tool:Check Amazon, Shopify & Google Shopping image specs

ProductImageUpscale REST API

Integrate automated 2x, 4x, and 8x e-commerce image upscaling into any backend, script, or automation workflow (Make, Zapier, n8n).

Authentication & Cost
Pass your API key in the x-api-key header. Each successful upscale deducts 1 credit atomically; definitive GPU or moderation failures automatically refund the credit.
Resolution Ceiling & Output TTL
Inputs exceeding 2 MP (width × height above ~1414×1414) are automatically resized to fit GPU memory, and requested multipliers clamp within the 16 MP output budget (e.g., 8x on a 1000×1000 image clamps to 4x; on 1200×1200 it clamps to 2x). Returned outputUrl links are temporary CDN URLs (~1 hour TTL)—download and store them on your side.

Endpoints

POST
/api/v1/upscale

Upscales a JPEG, PNG, or WebP image (GIFs are rejected). Provide either an HTTPS imageUrl or raw base64 imageBase64 (up to 20 MB decoded, with optional mimeType).

  • scale (optional): "2", "4", or "8". When omitted, defaults to 4 for Fabric/Leather, or 2 otherwise.
  • materialType (defaults to "Model"): "Model" (enables face enhancement when scale is omitted), "Fabric", "Leather", or "General".
POST
/api/v1/upscale-status

Polls an in-flight job when /api/v1/upscale returns status: "processing". Send { "imageId": "<imageId>" } with your x-api-key header.

GET
/api/v1/account

Returns your active tier (free, starter, or pro), combined credits, monthlyCredits, purchasedCredits, and storage usage.

Code Examples

cURL

curl -X POST https://www.productimageupscale.com/api/v1/upscale \
  -H "Content-Type: application/json" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{
    "imageUrl": "https://example.com/product.jpg",
    "scale": "4",
    "materialType": "Leather"
  }'

JavaScript / TypeScript (fetch)

const response = await fetch('https://www.productimageupscale.com/api/v1/upscale', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-api-key': process.env.PRODAIIM_API_KEY!,
  },
  body: JSON.stringify({
    imageUrl: 'https://example.com/product.jpg',
    scale: '4',
    materialType: 'General',
  }),
});

const data = await response.json();
// If data.status === 'processing', poll POST /api/v1/upscale-status with { imageId: data.imageId }

Python (requests)

import os
import requests

res = requests.post(
    "https://www.productimageupscale.com/api/v1/upscale",
    headers={
        "Content-Type": "application/json",
        "x-api-key": os.environ["PRODAIIM_API_KEY"],
    },
    json={
        "imageUrl": "https://example.com/product.jpg",
        "materialType": "Model",
    },
    timeout=60,
)
print(res.json())

HTTP Status & Error Codes

StatusMeaning
200 OKRequest accepted (status is succeeded, processing, or failed).
400 Bad RequestMissing imageUrl/imageBase64, invalid base64, non-HTTPS URL, or unsupported GIF (UNSUPPORTED_FORMAT).
401 UnauthorizedMissing or invalid x-api-key header.
402 Payment RequiredInsufficient credits (code: "insufficient_credits").
403 ForbiddenAccount is blocked/suspended.
413 Payload Too LargeDecoded imageBase64 payload is empty or exceeds the 20 MB upload limit.
429 Too Many RequestsUpstream GPU rate limit (code: "rate_limited"). Credit is refunded; retry with backoff.
451 Unavailable For Legal ReasonsImage rejected by safety moderation (NSFW_CONTENT_DETECTED). Credit is refunded.
503 Service UnavailableModeration service temporarily unavailable (MODERATION_SERVICE_UNAVAILABLE). Credit is refunded.