aimlapi-async-jobs
Installation
SKILL.md
Run long jobs: video, music, background responses
These jobs take seconds to many minutes: the submit answers at once with an id, and you poll for the result. Tell the user the job was submitted, so the wait does not look like a hang.
| Job | Submit | Poll | Result in the final poll |
|---|---|---|---|
| Video | POST /v2/video/generations → {id, status} |
GET /v2/video/generations?id=<id> |
video.url |
| Music | POST /v2/generate/audio → {id, status} |
GET /v2/generate/audio?id=<id> |
audio_file.url |
| Background response | POST /v1/responses with "background": true → {id, status} |
GET /v1/responses/<id> |
output |
The poll query parameter is id. Older examples use generation_id; it still works but is deprecated.
background: true works only where the model serves Responses natively. Most /v1/responses routes are translated (translatedFrom in the catalogue) and refuse it with 400 unsupported_parameter (aimlapi-protocols).
Speech (text-to-speech, speech-to-text) has its own skill: aimlapi-speech.