Skip to content

AutoMapper API

Make osu!standard beatmaps from your own code. Upload a song, poll until it is done, download the map. Free, with 50 successful maps a day for everyone who signs in with osu!.

Get your key

Sign in with your osu! account, then make a key on your account page. We only keep your osu! id, username and profile picture address.

Sign in with osu!

Limits

  • 50 successful generations per UTC day. Only maps that finish count, failed ones do not use your allowance. It resets at 00:00 UTC.
  • A map that is still being made holds one slot back, so a burst can never take you past the limit. If it fails, the slot comes back.
  • Up to 3 maps being made at once, and a new one every few seconds.
  • Failures still use the GPU, so after 25 failed maps in a day the key pauses until midnight UTC. A song with no clear beat cannot be mapped, so check yours first.
  • Your osu! account has to be at least 30 days old, so that one person can't make endless accounts to get around the limit.
  • Songs: mp3, ogg or wav, at least 20 seconds long and up to 30 MB.
  • Need more? Email [email protected] with your osu! username and what you are building.

The website's own endpoints (/api/pow and /api/jobs) only work from this site's pages and give each connection 10 maps a day. They are not an API, please use the one on this page.

Authentication

Send your key on every request. Keep it on your server: it is not meant for browser code, and the API does not allow cross-origin requests on purpose.

Authorization: Bearer amk_your_key_here

A key is shown once when you make it. Lost or leaked it? Make a new one on your account page and the old one stops working at once.

Make a map

POST https://am.justharsiz.lol/api/v1/maps as multipart/form-data with two parts: settings (JSON) and then audio (the file, last).

curl -X POST https://am.justharsiz.lol/api/v1/maps \
  -H "Authorization: Bearer $AUTOMAPPER_KEY" \
  -F 'settings={"format":"osz","title":"Blue Zenith","artist":"xi","star_rating":6.5,"year":2020}' \
  -F '[email protected]'

It answers 202 Accepted:

{
  "id": "cDDuADFywaPt3DtFzwud0w",
  "status": "queued",
  "status_url": "https://am.justharsiz.lol/api/v1/maps/cDDuADFywaPt3DtFzwud0w",
  "map_url": "https://am.justharsiz.lol/map/cDDuADFywaPt3DtFzwud0w",
  "quota": { "limit": 50, "used": 0, "in_flight": 1, "remaining": 50, "resets_at": "2026-10-11T00:00:00Z" }
}

Settings

FieldWhat it is
formatRequired. "osz" (the map with audio) or "osu" (the difficulty file only).
title, artistRequired. Up to 120 characters each.
artist_romanisedOptional. The artist in Latin letters, defaults to artist.
mapperOptional. The creator name in the map, defaults to AutoMapper.
tagsOptional. Space separated tags.
star_ratingRequired. A number from 2 to 12.
yearRequired. 2007 to 2023, the era the map should feel like.
mapper_idOptional. An osu! user id whose mapping style to imitate.
hp, ar, cs, odOptional. 0 to 10. Leave out to let the model pick.
slider_tick_rateOptional. One of 0.5, 1, 2, 3, 4.
go_astrayOptional. true unlocks cfg_scale (1 to 3) and descriptors.
backgroundOptional, true if left out. For osz maps this puts a random safe for work anime wallpaper (1920x1080) behind the map, with a small AutoMapper signature in one corner. false leaves the map without one. Ignored for osu.
descriptorsOptional with go_astray. A list such as ["jumps/wide"], the same tags as on the website.
gameOptional. Only "osu" (osu!standard) works for now, and it is the default.

Check a map

GET https://am.justharsiz.lol/api/v1/maps/{id}. Poll every 5 seconds or so. A map usually takes one to three minutes, longer if nothing has been made for a while and the GPU has to wake up.

{
  "id": "cDDuADFywaPt3DtFzwud0w",
  "status": "done",               // queued, running, done or failed
  "game": "osu",
  "format": "osz",
  "title": "Blue Zenith", "artist": "xi", "mapper": "AutoMapper",
  "star_rating": 6.5, "year": 2020,
  "download_url": "https://.../maps/cDDuADFywaPt3DtFzwud0w/xi-blue-zenith.osz",
  "map_url": "https://am.justharsiz.lol/map/cDDuADFywaPt3DtFzwud0w",
  "sha256": "3f2a9c0d...", "size": 1950000,
  "created_at": "2026-10-10T14:03:11Z", "finished_at": "2026-10-10T14:05:02Z"
}

While queued you also get position and queued. A failed map has a plain message. You can read your own maps in any state, other people's only once they are finished and public.

Metadata is checked by moderation tools. A map flagged as explicit or as spam is still made and still downloadable by you, but it is hidden from browse and search, and hidden is true.

Browse and search

GET https://am.justharsiz.lol/api/v1/maps?q=zenith&page=1&per_page=24 lists public maps, newest first. q searches title, artist, mapper and tags, or pass a file hash (8 or more hex characters of the SHA-256). per_page is at most 50.

Your usage

GET https://am.justharsiz.lol/api/v1/me returns who you are and where you stand today. Every create call and error about limits also carries the same numbers in headers:

X-Quota-Limit: 50
X-Quota-Used: 12
X-Quota-Remaining: 37
X-Quota-Reset: 1791676800     (unix time, midnight UTC)

Example in Python

import os, time, requests

base = "https://am.justharsiz.lol/api/v1"
auth = {"Authorization": "Bearer " + os.environ["AUTOMAPPER_KEY"]}

with open("song.mp3", "rb") as f:
    r = requests.post(base + "/maps", headers=auth, timeout=120,
        data={"settings": '{"format":"osz","title":"Blue Zenith","artist":"xi","star_rating":6.5,"year":2020}'},
        files={"audio": f})
r.raise_for_status()
map_id = r.json()["id"]

while True:
    m = requests.get(base + "/maps/" + map_id, headers=auth, timeout=30).json()
    if m["status"] in ("done", "failed"):
        break
    time.sleep(5)

print(m["status"], m.get("download_url") or m.get("message"))

Errors

Errors are JSON like {"error": "...", "code": "..."}, and a bad settings field comes back as "fields": {"star_rating": "..."} with status 422.

StatuscodeMeaning
400bad_requestThe request was not a valid upload, or a query value is out of range.
401unauthorizedNo key, or a wrong or revoked one.
403blockedThe account is blocked from the API.
404not_foundNo such map, or it is not yours and not public.
415The file is not an mp3, ogg or wav.
422A settings field is wrong, or the song is under 20 seconds.
429quota_exceededAll 50 of today's successful generations are used. Wait for the reset in Retry-After.
429quota_reservedThe maps you have in progress use up what is left today.
429too_many_in_flightYou already have 3 maps being made.
429too_many_failuresToo many failed maps today, the key is paused until midnight UTC.
429rate_limitedToo many calls too fast. Wait for Retry-After.
503queue_fullThe queue is full, try again in a few minutes.
503maintenanceScheduled maintenance: new maps can't be made for a while. Reading maps and downloading them still works, Retry-After says when to try again.

Fair use

Every map you make is public and kept, like the ones from the website. Do not share your key. If something looks like abuse the key is paused first and we talk after.