Jobs

How is my job doing

Read one job, reconciling it first where that is possible. Photo, music and 3D are polled against their own service, so this is the call that turns a stale row into a settled one. VIDEO AND CHAT ARE NOT POLLED and deliberately so — video settles from its callback and chat from the turn itself, so for those two this reports what is already stored. poll_after_seconds is present only while the job is unsettled, so a loop can stop on its absence rather than on a status it has to interpret. A job is kept seven days: after that its request and its results are deleted and this answers 404, so fetch what you need before then.

GET
/v1/jobs/{id}
GET
/v1/jobs/{id}
How is my job doing
Read one job, reconciling it first where that is possible.
Authorizationstringrequired
Your API key. It is sent only when you press Send, to this request alone, and never stored.
idstringrequired
include_reasoningstring
Chat only. Reasoning often runs several times the length of the answer. One of "true".
How is my job doing
curl --request GET \
  --url 'https://api.auray.ai/v1/jobs/{id}' \
  --header 'Authorization: Bearer <api-key>'
{
  "id": "<string>",
  "job_id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "model": "<string>",
  "engine": "<string>",
  "status": "<string>",
  "provider_job_id": "<string>",
  "credits_charged": 123,
  "credits_reserved": 123,
  "coverage": {
    "by": "<string>",
    "pass": "<string>",
    "bundle": "<string>"
  },
  "settled": true,
  "poll_after_seconds": 123,
  "give_up_after_seconds": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "key": "<string>",
      "bytes": 123,
      "width": 123,
      "height": 123,
      "stage": "<string>",
      "seconds": 123,
      "sample_rate": 123,
      "channels": 123,
      "fps": 123,
      "resolution": "<string>",
      "has_audio": true,
      "seed": 123
    }
  ],
  "request_id": "<string>",
  "conversation_id": "<string>",
  "content": "<string>",
  "finish_reason": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "cached_prompt_tokens": 123,
    "completion_tokens": 123,
    "reasoning_tokens": 123
  },
  "reasoning": "<string>",
  "created_at": "<string>",
  "error": "<string>",
  "error_code": "<string>",
  "error_basis": "<string>",
  "refused": 123,
  "upstream_lost": true,
  "resubmitted": true
}
How is my job doing
curl https://api.auray.ai/v1/jobs/photo_docs-mtpb1vnh \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "job_id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "model": "<string>",
  "engine": "<string>",
  "status": "<string>",
  "provider_job_id": "<string>",
  "credits_charged": 123,
  "credits_reserved": 123,
  "coverage": {
    "by": "<string>",
    "pass": "<string>",
    "bundle": "<string>"
  },
  "settled": true,
  "poll_after_seconds": 123,
  "give_up_after_seconds": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "key": "<string>",
      "bytes": 123,
      "width": 123,
      "height": 123,
      "stage": "<string>",
      "seconds": 123,
      "sample_rate": 123,
      "channels": 123,
      "fps": 123,
      "resolution": "<string>",
      "has_audio": true,
      "seed": 123
    }
  ],
  "request_id": "<string>",
  "conversation_id": "<string>",
  "content": "<string>",
  "finish_reason": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "cached_prompt_tokens": 123,
    "completion_tokens": 123,
    "reasoning_tokens": 123
  },
  "reasoning": "<string>",
  "created_at": "<string>",
  "error": "<string>",
  "error_code": "<string>",
  "error_basis": "<string>",
  "refused": 123,
  "upstream_lost": true,
  "resubmitted": true
}

Authorizations

Authorizationstringheaderrequired

Bearer auray_sk_… — jobs:read.

Path Parameters

idstringrequired

Query Parameters

include_reasoningstring
Chat only. Reasoning often runs several times the length of the answer. One of "true".

Response

application/json

OK

idstringrequired
job_idstringrequired
The job's one id on every host: id here, request_id on the queue host (the queue protocol's name for it).
objectstringrequired
One of "job".
productstringrequired
external covers every model somebody else runs, each at its own address. chat is accepted and delivers no webhook event: a chat turn is answered by the request that paid for it. One of "photo", "music", "video", "threed", "chat", "external".
modelstringrequired
The address the job was submitted to. May be null.
enginestringrequired
The service's own name for the model that ran, where it reports one — a catalogue model's is its id on GET /v1/models — as the submit answered it; null otherwise. May be null.
statusstringrequired
Five words, whatever the product. Our internals disagree; you never see that. One of "queued", "running", "succeeded", "failed", "cancelled".
provider_job_idstringrequired
May be null.
credits_chargedintegerrequired
What the job cost, after any refund — the ledger's net for it, the same figure on every door.
credits_reservedintegerrequired
What was held against the worst case before the model ran. Chat jobs only; absent on every other product.
coverageobject
Present when a pass or a promotion paid for this job, which is why credits_charged is 0: {"by": "pass", "pass": "seedance-2-5"} names the pass (null when the grant ended more than seven days ago), with bundle beside it when the pass came from a bundle you chose; {"by": "promotion"} a promotion. Absent on a job your credits paid for.
Show child attributes
bystringrequired
One of "pass", "promotion".
passstring
May be null.
bundlestring
The bundle whose pass paid, e.g. photos-week. Absent for a pass bought or given.
settledbooleanrequired
poll_after_secondsinteger
give_up_after_secondsinteger
Present while the job is open: the longest it may take, counted from created_at — the longest it may wait to start plus the longest it may run before it is stopped and refunded, the figure its submit answered. Waiting longer is waiting for nothing; the official clients wait this long by default. For a catalogue model the part it may run is its reap: lifecycle.stall_ceiling_seconds on GET /v1/models, lengthened for a video asked for more seconds than the length that figure is set for, in proportion to the seconds asked — so this give_up_after_seconds, not the listing's figure, is the one to wait by. Otherwise these are the shipped clocks: we may lengthen them in an incident, never shorten them.
assetsobject[]required
Show child attributes
indexinteger
kindstring
One of "image", "audio", "video", "model".
keystring
May be null.
bytesinteger
May be null.
widthinteger
May be null.
heightinteger
May be null.
stagestring
3D only.
secondsnumber
Audio and video assets: the real duration, once known. May be null.
sample_rateinteger
Audio assets only. May be null.
channelsinteger
Audio assets only. May be null.
fpsnumber
Video assets only: frames per second, once known. May be null.
resolutionstring
Video assets only: the rendered resolution, as the service reports it. May be null.
has_audioboolean
Video assets only: whether the clip carries a soundtrack. May be null.
seedinteger
Our video's clips only: the seed the clip rendered with. Send it back as seed with the same prompt and settings and it usually renders the same clip; a clip made from reference pictures or a first frame may differ in fine detail. May be null.
request_idstringrequired
conversation_idstring
The thread this turn belongs to. Chat jobs only; absent on every other product.
contentstring
The answer text. Chat jobs only; absent on every other product.
finish_reasonstring
Why generation stopped. Chat jobs only; absent on every other product. Null until the turn settles, and on a turn that stopped before reporting. May be null.
usageobject
Token counts for the turn. Chat jobs only; absent on every other product. Every count is null until the turn settles — and stays null on a turn that was stopped or failed, because the usage frame routinely never arrives.
Show child attributes
prompt_tokensinteger
May be null.
cached_prompt_tokensinteger
May be null.
completion_tokensinteger
May be null.
reasoning_tokensinteger
May be null.
reasoningstring
The model's reasoning, present only when include_reasoning=true was asked for. Often several times the length of the answer. Chat jobs only; absent on every other product.
created_atstringrequired
When the job was submitted.
errorstringrequired
Why it failed, as a sentence: the model's own words where it gave them, ours otherwise. Null unless it did. May be null.
error_codestringrequired
A stable code for the same failure, where the service gives one. May be null.
error_basisstring
Present beside error_code prohibited_content when the model's maker said what it refused: output — it rejected what the model made; output_copyright — it rejected what the model made and said it may be related to copyright; output_audio — it rejected the sound of what the model made; output_audio_copyright — it rejected the sound and said it may be related to copyright; input_copyright — it refused what it was sent and said it may be related to copyright; input_real_person — it refused what it was sent and said it may show a real person. Absent otherwise, including when the maker refused what it was sent and said neither. One of "output_copyright", "output", "output_audio_copyright", "output_audio", "input_copyright", "input_real_person".
refusedinteger
How many images the safety filter withheld. Photo only; absent on every other product. 0 to ….
upstream_lostboolean
Present, and only ever true, when the rendering service no longer has any record of this job. It keeps them for a few days, so an old id reads the same as one that never existed. Absent otherwise. One of true.
resubmittedboolean
Present, and only ever true, when the model's maker refused what the model first made and the platform made it once more, charged once: what this job reads is its second attempt. Absent for a job made once. One of true.

Headers:

HeaderDescription
RateLimit-LimitBurst capacity.
RateLimit-Remaining
RateLimit-ResetSeconds until refill.
X-RateLimit-Limit
X-RateLimit-Remaining
X-RateLimit-ResetUnix seconds. The X- spelling is what client libraries read.
X-Request-Id

Was this page helpful?

How is my job doing
curl https://api.auray.ai/v1/jobs/photo_docs-mtpb1vnh \
  -H "Authorization: Bearer $AURAY_API_KEY"
{
  "id": "<string>",
  "job_id": "<string>",
  "object": "<string>",
  "product": "<string>",
  "model": "<string>",
  "engine": "<string>",
  "status": "<string>",
  "provider_job_id": "<string>",
  "credits_charged": 123,
  "credits_reserved": 123,
  "coverage": {
    "by": "<string>",
    "pass": "<string>",
    "bundle": "<string>"
  },
  "settled": true,
  "poll_after_seconds": 123,
  "give_up_after_seconds": 123,
  "assets": [
    {
      "index": 123,
      "kind": "<string>",
      "key": "<string>",
      "bytes": 123,
      "width": 123,
      "height": 123,
      "stage": "<string>",
      "seconds": 123,
      "sample_rate": 123,
      "channels": 123,
      "fps": 123,
      "resolution": "<string>",
      "has_audio": true,
      "seed": 123
    }
  ],
  "request_id": "<string>",
  "conversation_id": "<string>",
  "content": "<string>",
  "finish_reason": "<string>",
  "usage": {
    "prompt_tokens": 123,
    "cached_prompt_tokens": 123,
    "completion_tokens": 123,
    "reasoning_tokens": 123
  },
  "reasoning": "<string>",
  "created_at": "<string>",
  "error": "<string>",
  "error_code": "<string>",
  "error_basis": "<string>",
  "refused": 123,
  "upstream_lost": true,
  "resubmitted": true
}

Use the up and down arrow keys to select a result, Enter to open it, and Escape to close search.