image-rehoster avatar

image-rehoster

Pricing

from $1.00 / 1,000 image hosteds

Go to Apify Store
image-rehoster

image-rehoster

Re-host any image at a stable, public Apify URL. Provide a URL or base64 data and get back a permanent retrieval link. Supports JPEG, PNG, WebP, GIF, AVIF, SVG, and more. Up to 50 MB per image.

Pricing

from $1.00 / 1,000 image hosteds

Rating

0.0

(0)

Developer

NativeFoundation, inc.

NativeFoundation, inc.

Maintained by Community

Actor stats

0

Bookmarked

3

Total users

2

Monthly active users

a day ago

Last modified

Share

Image Rehoster

Re-host any image at a stable, public Apify URL. Provide a URL or base64 data and get back a permanent retrieval link.

What it does

Image Rehoster downloads an image from a URL (or decodes base64 input) and stores it in Apify Key-Value Store, returning a publicly accessible retrieval URL. The URL requires no authentication and works anywhere images are accepted.

Use cases

  • Vision-model APIs (GPT-4o, Claude, Gemini) that need a public image URL
  • Re-hosting ephemeral URLs that expire or require auth
  • AI-agent pipelines that pass images between steps
  • Stable links for images behind CDNs with short-lived tokens

Input

FieldTypeDescription
imageUrlstringDirect URL of the image to download and host (up to 50 MB)
imageBase64stringBase64-encoded image data (alternative to imageUrl)
filenamestringOptional filename stem (extension added automatically)
permanentUrlbooleanDefault: true — store in a named KVS for a permanent URL
storeNamestringNamed store override (default: hosted-images)

Provide either imageUrl or imageBase64.

Output

{
"key": "my-image.png",
"retrievalUrl": "https://api.apify.com/v2/key-value-stores/<id>/records/my-image.png",
"permanent": true,
"size": 102400
}
  • retrievalUrl — public, no-auth URL to the hosted image
  • permanenttrue for named-store URLs (never expires); false for default-store URLs (expires with plan retention)
  • size — image size in bytes

Permanent vs temporary URLs

By default, images are stored in a named Key-Value Store (hosted-images), giving you a permanent URL that never expires. You pay for that storage as long as it exists.

Set permanentUrl: false for a temporary URL that auto-deletes with your Apify plan's data-retention window (approx. 7-30 days) at no ongoing cost.

Pricing

Pay-per-event + usage — $0.003 per image hosted ($3 per 1,000), plus Apify platform usage (compute + storage) at cost. You are charged once per image you host (the run cost is typically ~$0.0003 at 512 MB).

Retrieving the image afterwards is billed as standard Apify Key-Value Store read operations on your own account (~$0.0045 per 1,000 reads). There is no per-GB egress charge for serving the public URL.

Supported formats

JPEG, PNG, WebP, GIF, AVIF, SVG, BMP, TIFF, ICO, and any other binary image format. Maximum file size: 50 MB.