Quickstart
Make your first request in under a minute.
1. Create an API key
Keys live in a project on aegi.run, and a project belongs to you or your Discord server. Create a project, then create a key inside it.
A key is shown in full exactly once and starts with aegis.:
Keep it somewhere safe — Aegis only stores a hash of it, so a lost key cannot be recovered and has to be replaced.
2. Make a request
Every request goes to https://api.aegi.run and carries the key as a bearer
token. The one exception is GET /v1/status, which needs no key at all.
3. Try it from code
The JavaScript SDK wraps every endpoint with types generated from this API, so the response above comes back already unwrapped:
4. Do something longer-running
Images and screenshots do not answer on the spot. They queue a job and return an id:
The jobs guide covers polling, long-polling, and how long results live.
Where to go next
- Authentication — key formats, scopes, and the one public endpoint
- Rate limits — what your plan allows and which headers report it
- Errors — the error envelope, and the full list of error codes
- Music — the largest part of the API, and the one with a different shape