🖼️ Image Upload

Image Upload & Hosting API for AI Agents

One API call. Durable hosted URL. Zero S3 configuration.

What it does

Send an image via multipart/form-data and get back a hosted URL you can embed anywhere. Files land in Backblaze B2 object storage with configurable retention and are served from a stable, shareable URL — no bucket policy tuning, no presigned URL juggling.

Why agents need this

Get started in 30 seconds

One API call. No SDK. No configuration.

cURL

curl -X POST https://www.agent-utils.com/api/upload \
  -H "x-api-key: au_your_key" \
  -F "file=@screenshot.png" \
  -F "retentionHours=24"

Python

import requests

with open("screenshot.png", "rb") as f:
    resp = requests.post(
        "https://www.agent-utils.com/api/upload",
        headers={"x-api-key": "au_your_key"},
        files={"file": f},
        data={"retentionHours": 24},
    )
image_url = resp.json()["data"]["url"]

JavaScript

const form = new FormData();
form.append("file", fs.createReadStream("screenshot.png"));
form.append("retentionHours", "24");

const res = await fetch("https://www.agent-utils.com/api/upload", {
  method: "POST",
  headers: { "x-api-key": "au_your_key" },
  body: form,
});
const { data } = await res.json();
console.log(data.url);

Use cases

Generated images

Agent calls an image model — upload the result and get a URL to use in the next step

Screenshot sharing

Agent captures a page screenshot — host it and share the link in a report or Slack message

User-submitted media

Collect an image from a user mid-conversation — store it and reference it later

Pipeline handoff

One agent produces an image, hands the hosted URL to a downstream agent that needs a public link

AgentUtils vs. alternatives

Traditional tools like AWS S3 Presigned URLs, Cloudinary, Imgix require SDK integration, credential management, and infrastructure setup. AgentUtils replaces all of that with a single HTTP call.

AgentUtilsAlternatives
Setup time30 secondsHours to days
SDK requiredNo (REST API)Yes
Credentials to manage1 API keyMultiple keys/tokens
InfrastructureZero-configProvision + configure

Related tools

All AgentUtils tools

Start building for free

500 free API calls per month. No credit card required.