🖼️ 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
- •Agents that generate or capture images need a place to put them before referencing them in downstream tools
- •Configuring S3-compatible credentials, CORS, and bucket policies per agent is tedious and error-prone
- •Agents need durable URLs they can hand to other APIs (chat, email, CMS) without the link expiring mid-task
- •Self-hosting object storage is a distraction from the actual agent logic
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.
| AgentUtils | Alternatives | |
|---|---|---|
| Setup time | 30 seconds | Hours to days |
| SDK required | No (REST API) | Yes |
| Credentials to manage | 1 API key | Multiple keys/tokens |
| Infrastructure | Zero-config | Provision + configure |
Related tools
All AgentUtils tools
Start building for free
500 free API calls per month. No credit card required.