Developers

Auto Motion 3D API

For your own scripts and AI agents

The API lets a program do what you do in the dashboard: upload a 3D model, auto-rig it, train it if it has a unique skeleton, create animations from a text prompt, check progress and download the finished animation. It works on your account, so jobs use your credits and your plan's limits.

1. API keys

Create a key in Settings → API keys. The full key is shown once; store it like a password. Send it with every request:

Authorization: Bearer am3d_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

If your HTTP client can't set that header, X-API-Key: am3d_... works too. Keys can manage models and jobs and read the account overview. Billing, profile, password and key management stay on the website. Revoke a key at any time in Settings; it stops working immediately.

Base URL: https://automotion3d.com/api/. Every endpoint takes an action query parameter. Responses are JSON with "ok": true or "ok": false and an error message. POST bodies can be JSON, form fields or multipart (for uploads).

2. The basic flow

# 1. Upload a model (GLB, glTF, FBX or OBJ, up to 100 MB)
curl -H "Authorization: Bearer $AM3D_KEY" -F "model=@hero.glb" \
  "https://automotion3d.com/api/models.php?action=upload"
# -> {"ok":true,"model":{"id":42,"rig_status":"none",...}}

# 2. Rig it if rig_status is "none" (GLB only; skip if it is already "rigged" or an FBX)
curl -H "Authorization: Bearer $AM3D_KEY" -d "type=rig&model_id=42" \
  "https://automotion3d.com/api/jobs.php?action=create"
# -> {"ok":true,"job_id":101,"credits":990}

# 3. Poll the job until status is "complete" (or "failed")
curl -H "Authorization: Bearer $AM3D_KEY" "https://automotion3d.com/api/jobs.php?action=get&id=101"

# 3b. Unique skeleton (not a standard humanoid)? Train the model once, then poll that job too
curl -H "Authorization: Bearer $AM3D_KEY" -d "type=train&model_id=42&mode=custom" \
  "https://automotion3d.com/api/jobs.php?action=create"

# 4. Create an animation (3-15 seconds)
curl -H "Authorization: Bearer $AM3D_KEY" \
  -d "type=animate&model_id=42&duration=4" --data-urlencode "prompt=jumps over a low wall and lands in a crouch" \
  "https://automotion3d.com/api/jobs.php?action=create"

# 5. When that job is complete, download the animated GLB
curl -H "Authorization: Bearer $AM3D_KEY" -o jump.glb \
  "https://automotion3d.com/api/jobs.php?action=file&kind=clip&dl=1&id=102"

3. Endpoints

RequestWhat it does
GET account.php?action=overviewYour credits, plan, job costs and which job types are open to you (engine_types).
POST models.php?action=uploadMultipart field model. Returns the new model with its id and rig_status (rigged if the GLB already has a skeleton).
GET models.php?action=listAll your models with rig status, animation count and active jobs, plus your plan's model limit.
GET models.php?action=get&id=One model.
GET models.php?action=file&id=Download the model file (the rigged version once rigging finishes).
GET models.php?action=export_animations&id=Every finished animation of a model as one ZIP.
POST models.php?action=deleteField id. Deletes the model and everything made from it.
POST jobs.php?action=createFields type (rig, train or animate), model_id; for train also mode (humanoid, quadruped or custom); for animate also prompt (up to 500 characters), duration (3-15 seconds) and an optional name. Charges credits and returns job_id.
GET jobs.php?action=get&id=One job: status, stage, progress, error, has_clip, has_audio.
GET jobs.php?action=list[&type=]Your 50 most recent jobs, optionally only rig or animate.
GET jobs.php?action=file&id=&kind=kind=clip: the animated model (GLB). kind=audio: its sound effects (M4A), when has_audio is true. Add dl=1 for a download filename.
POST jobs.php?action=copyFields model_id and job_ids (comma separated). Copies finished animations from your other models onto this one, free.
POST jobs.php?action=deleteField id. Deletes a finished or failed animation.

4. Jobs and statuses

A job's status goes queued → running → complete or failed. While it runs, stage is a short human-readable description and progress a 0-100 estimate. Rigging usually takes a few minutes; an animation a few minutes more. Poll every 10-20 seconds. If a job fails, its credits are refunded automatically and error says why.

Unique rigs: train once

Standard humanoid skeletons (head, two arms, two legs) animate right after rigging. A model with a unique skeleton, such as a creature, a four-legged animal or a character with extra limbs, needs one training job first. Training is done once per model; after that every animation of it uses its training. Choose the mode that fits:

The model's engine_status (from models.php?action=get) is training while it runs and ready when the model can be animated. Training takes longer than rigging, up to about 45 minutes for custom. If you animate a unique rig that hasn't been trained, the job fails with a message saying so and the credits are refunded.

Animations are made in place: the character moves on the spot and your game or engine moves its position. Prompts work best as one clear action with a start and an end, for example "draws a sword and swings it twice" or "does a backflip and lands".

5. Credits and limits

Buy credits or change plans on the credits page. A job that would cost more than your balance is refused with status 402 and nothing is charged.

6. Errors

StatusMeaning
400Something in the request is missing or wrong; error says what.
401Missing or invalid API key.
402Not enough credits (needed gives the amount).
403Not allowed with an API key, or a plan limit was reached.
404Model, job or file not found on your account.
409The model is busy with another job.
429Too many requests or jobs in progress; wait and retry.
503That job type isn't open yet, or a service is temporarily busy. Nothing was charged.

7. Example: Python agent tool

A small client your agent can call as a tool. It uploads a model, rigs it if needed, animates it and saves the GLB.

import os, time, requests

API = "https://automotion3d.com/api/"
S = requests.Session()
S.headers["Authorization"] = "Bearer " + os.environ["AM3D_KEY"]

def call(endpoint, action, method="GET", **kw):
    r = S.request(method, f"{API}{endpoint}.php", params={"action": action, **kw.pop("params", {})}, **kw)
    data = r.json()
    if not data.get("ok"):
        raise RuntimeError(f"{r.status_code}: {data.get('error')}")
    return data

def wait(job_id):
    while True:
        job = call("jobs", "get", params={"id": job_id})["job"]
        if job["status"] == "complete":
            return job
        if job["status"] == "failed":
            raise RuntimeError(job["error"] or "job failed")
        time.sleep(15)

def animate(model_path, prompt, seconds=4, out="animation.glb", train_mode=None):
    # train_mode: None for standard humanoids, else "humanoid", "quadruped" or "custom" (unique rigs)
    with open(model_path, "rb") as f:
        model = call("models", "upload", "POST", files={"model": f})["model"]
    if model["rig_status"] != "rigged" and model["format"] != "fbx":
        wait(call("jobs", "create", "POST", data={"type": "rig", "model_id": model["id"]})["job_id"])
    if train_mode and model.get("engine_status") != "ready":
        wait(call("jobs", "create", "POST", data={"type": "train", "model_id": model["id"], "mode": train_mode})["job_id"])
    job_id = call("jobs", "create", "POST", data={"type": "animate", "model_id": model["id"],
                                                  "prompt": prompt, "duration": seconds})["job_id"]
    wait(job_id)
    clip = S.get(API + "jobs.php", params={"action": "file", "kind": "clip", "id": job_id})
    clip.raise_for_status()
    with open(out, "wb") as f:
        f.write(clip.content)
    return out

# animate("hero.glb", "waves hello, then bows", seconds=4)
# animate("dragon.glb", "spreads its wings and roars", seconds=5, train_mode="custom")

Questions or need higher limits? Contact us.