Authentication, rate limits and conventions for Mosaic’s REST API.
/video/get-upload-url
, /video/finalize-upload
)./run-agent
with the file_id
you just created./get-agent-run-simple/{id}
or subscribe to a webhook./get-agent-run-outputs/{id}
.mk_
for all operational endpoints (/run-agent
, polling status, downloading outputs etc.).
/api/dev
namespace.
Plan | Concurrent Runs | Upload Size | Free Credits |
---|---|---|---|
Pro | 10 | 10 GiB | 20 000 |
Enterprise | custom | custom | custom |
error
field plus a human friendly detail
.
Status | Error Code | Typical Cause |
---|---|---|
400 | validation_error | Malformed JSON or missing field |
401 | invalid_api_key | Key revoked / wrong value |
403 | concurrent_agent_limit | > 10 running agents (Free plan) |
403 | insufficient_credits | Balance too low |
404 | not_found | Unknown ID |
422 | parameter_out_of_range | Field outside validation bounds |
429 | rate_limit | > 120 requests / min to /api/dev/* |
500 | internal_server_error | Unexpected exception |