RoboHash API
Free RoboHash API with no key: unique robot, monster, cat or human avatars generated deterministically from any text. Just a URL, no JSON. Tested example.
Endpoint tested and returned HTTP 200 on 19 Aug 2026
What is the RoboHash API?
RoboHash is a free, key-free API that turns any text into a unique deterministic avatar image — robots by default, with alternative sets for monsters, robot heads, cats and human-like avatars.
RoboHash predates most avatar services and remains one of the simplest: put any string in the URL path and get back an image. The same string always produces the same robot, so it works as a stable identity image without storing anything.
Different `set` values give completely different visual styles, which is useful for distinguishing entity types — robots for services, cats for users, monsters for test accounts, all from the same API.
Quick facts
- Base URL
https://robohash.org- Authentication
- No API key required.
- Rate limit
- No published limit.
- Pricing
- Free. The underlying artwork is CC-BY / CC-SA depending on set — attribution is requested.
- CORS
- Enabled — callable directly from browser JavaScript
- Official docs
- Read the docs
How to use the RoboHash API
Every request below was executed against the live API on 19 Aug 2026, and the response shown is the real body it returned — not an illustration.
1. Generate a robot avatar from text
GET https://robohash.org/bytetools.png?size=200x200
curl 'https://robohash.org/bytetools.png?size=200x200'const res = await fetch("https://robohash.org/bytetools.png?size=200x200");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);import requests
res = requests.get("https://robohash.org/bytetools.png?size=200x200", timeout=20)
res.raise_for_status()
print(res.json())# This endpoint returns image/png, not JSON.
# The response body is the image itself, so it can be used directly as an
# <img src="..."> or saved to a file — there is nothing to parse.
#
# Verified: HTTP 200, Content-Type: image/pngParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
<text> | path | Required | Any string to hash into an avatar. bytetools |
set | string | Optional | set1 robots, set2 monsters, set3 robot heads, set4 cats, set5 humans. set4 |
size | string | Optional | Dimensions as WIDTHxHEIGHT. 200x200 |
bgset | string | Optional | bg1 or bg2 to add a generated background. bg1 |
format | string | Optional | png, jpg or bmp via a file extension on the path. png |
Response fields
(image)image- The response body is the avatar image itself, not JSON.
What you can build with the RoboHash API
- Generate distinctive placeholder avatars for demo data
- Give bots and service accounts recognisable identity images
- Create fun default profile pictures for a community site
- Visually distinguish account types using different sets
Common errors and how to fix them
Same image for different users
The seed text is identical.
Fix: Seed with a unique value per user, such as an id or hashed email, not a display name.
Unexpected style
The default is set1 (robots).
Fix: Pass set=set4 for cats, set2 for monsters and so on.
RoboHash API — frequently asked questions
Is RoboHash free?
Yes, free with no API key. The underlying artwork is Creative Commons licensed and attribution is requested.
Are the avatars unique per input?
They are deterministic: the same text always produces the same image. Different text produces a different robot, though with a finite artwork set, collisions are theoretically possible at large scale.
What sets are available?
set1 robots (default), set2 monsters, set3 robot heads, set4 cats and set5 human-like avatars. Each gives a completely different visual style.
Does it return JSON?
No. The response is the image itself, so you can use the URL directly as an img src with no JavaScript at all.
Tools that pair with this API
Alternatives to RoboHash API
If RoboHash does not fit, these photography & design apis cover similar ground. Every one was called before publishing, and each links to its own reference page with a working curl command and the response it returned.
| API | What it does | Auth | CORS | Last verified |
|---|---|---|---|---|
| Metropolitan Museum of Art | Free Metropolitan Museum of Art API with no key: 470,000+ artworks with high-resolution public-domain images, artist data and full object metadata. Tested. | No key | No | 19 Aug 2026 |
| Art Institute of Chicago | Free Art Institute of Chicago API with no key: 130,000+ artworks with IIIF images, colour data, artist info and rich metadata. Well documented. Tested example. | No key | Yes | 19 Aug 2026 |
| Cleveland Museum of Art | Free Cleveland Museum of Art API with no key: 60,000+ artworks with open-access images, provenance, exhibition history and full metadata. Tested curl example. | No key | No | 19 Aug 2026 |
| DiceBear Avatars | Free avatar generator API with no key: deterministic SVG or PNG avatars from any seed, in 30+ styles with customisable colours. Tested curl example. | No key | Yes | 19 Aug 2026 |
| SVGL | Free logo API with no key: hundreds of company and product logos as SVG, categorised, with separate wordmark variants and links to official brand kits. Tested example included. | No key | Yes | 21 Aug 2026 |
| Thum.io | Free website screenshot API with no key: put a page URL in the path and get a rendered PNG back, with width, viewport and full-page options. Tested example included. | No key | Yes | 21 Aug 2026 |
RoboHash is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 19 Aug 2026; always check the official documentation before relying on this API in production, as terms and limits can change.