An AI request's state
An AI request's state (media:read)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
GET
header
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
id*stringThe job
application/json- response
One AI request
id*stringoperation*stringkind*stringValue in
"image""video"status*stringValue in
"queued""running""succeeded""failed""canceled"provider*stringThe provider that runs it; empty until it is sent
model*stringfallback_from*stringThe provider that did not take it first; empty: none
error*null|result*null|media_id*stringThe library file it was kept as; empty until accepted
estimated_cost_usd*numberEstimated from the catalog's list prices; 0 when nothing was charged
duration_ms*integercreated_at*stringFormat
date-timefinished_at*stringEmpty while it runs
curl -X GET 'https://staqly.example.com/v1/ai/jobs/string'Example Response
{ "id": "string", "operation": "string", "kind": "image", "status": "queued", "provider": "string", "model": "string", "fallback_from": "string", "error": null, "result": null, "media_id": "string", "estimated_cost_usd": 0, "duration_ms": 0, "created_at": "2019-08-24T14:15:22Z", "finished_at": "string"}