🖼️ Image Upload

Image Upload for AI Agents

One upload. One URL. Simple handoff.

What it does

Upload an image and receive a durable hosted URL that an agent can pass to downstream tools or humans.

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/v1/upload \
  -H "x-agent-id: worker-1" -H "x-api-key: agutil_agt_…" \
  -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/v1/upload",
        headers={
            "x-agent-id": "worker-1",
            "x-api-key": "agutil_agt_…",
        },
        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/v1/upload", {
  method: "POST",
  headers: {
    "x-agent-id": "worker-1",
    "x-api-key": "agutil_agt_…",
  },
  body: form,
});
const { data } = await res.json();
console.log(data.url);

Use cases

Generated images

Upload model outputs and get a URL for the next agent step

Screenshot sharing

Store screenshots and send a link in a report or message

User media handoff

Persist user-provided images for later processing

Pipeline outputs

Pass a hosted image URL to another service without local storage

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.