Skip to content
Docs

Documentation

Jobs

Retrieve Raywake generation status and output links, or filter your job history by model, date, status and source through the API.

Get a job

GET/v1/jobs/{job_id}

Requires jobs:read. Only jobs of the key's account are visible.

curl -s https://api.raywake.com/v1/jobs/JOB_ID \
  -H "Authorization: Bearer $RAYWAKE_API_KEY"
Job fields
NameTypeDescription
job_idstring
Identifier for polling and support requests.
statusstring
Lifecycle state. See Generations.
modelstring
The model id the generation ran on.
promptstring
The prompt, when the model takes one.
inputobject
The input you submitted, as sent (model defaults are not filled in).
outputsarray
Results: type (image, video, audio), url, mime_type and an optional thumbnail_url. Empty until the result is stored.
image_urlstring | null
The first image output, for convenience.
errorstring | null
A readable reason when the generation did not produce a result.
quote_idstring | null
The quote the generation was admitted with.
creditsinteger | null
Credits held while running, captured on success, released on failure.
sourcestring
api when an API key started the job, otherwise studio.
api_key_idstring | null
The API key that started the job.
created_atstring
ISO 8601 timestamp, UTC.
completed_atstring | null
ISO 8601 timestamp, UTC, once terminal.

List jobs

GET/v1/jobs

Query parameters
NameTypeDescription
statusstring
Only jobs in this status.
modelstring
Only jobs on this model id.
sincestring
ISO 8601 time; only jobs created at or after it.
untilstring
ISO 8601 time; only jobs created before it.
sourcestring
Where jobs were started.

One of: api, studio

api_key_idstring
Only jobs started with this API key.
limitinteger
Page size, up to 500.

Default: 50

offsetinteger
Items to skip.

Default: 0