Skip to main content
GET
/
jobs
/
{id}
Get a job by ID
curl --request GET \
  --url https://api.krea.ai/jobs/{id} \
  --header 'Authorization: Bearer <token>'
{
  "job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "queued",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "result": {
    "urls": [
      "<string>"
    ],
    "style_id": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

A unique identifier for a job

Example:

"c7f8f0e2-d4d5-48ef-a4d3-eac0c1d62903"

Response

The most up-to-date state of the job. You can check when the job is completed by checking the status field. For completed loraTraining jobs, the result will include a style_id field.

job_id
string<uuid>
required
status
enum<string>
required
Available options:
queued,
scheduled,
processing,
sampling,
intermediate-complete,
completed,
failed,
cancelled
created_at
string<date-time>
required
completed_at
string<date-time>
result
object