Jobs
get/jobs/{job_id}

Request

  • Base URL
    https://api.hedra.com/v3
  • Auth
    • API key in header Authorization
    • or HTTP bearer

Path parameters

job_idstring required

The job's id (job_<uuid>).

Response

Successful Response

job_idstring required

The job this envelope describes.

modelstring required

The resolved model id this job ran on.

qualitystring nullable

The quality level this job ran at; present only for models that offer quality levels.

status'IN_QUEUE' | 'IN_PROGRESS' | 'COMPLETED' | 'FAILED' required

The four states a job can be in.

promptstring nullable

The prompt this job ran with. When enhance_prompt was set, this is the rewritten prompt the model received rather than the one submitted. Absent on models that take no prompt.

costnumber nullable

Net cost of this job; 0 when fully refunded; absent until charged. Absent from webhook payloads. A chat completion that the caller disconnected or stopped reading (CANCELLED), or that reached its deadline (DEADLINE_EXCEEDED), is FAILED and costs the tokens the model reported; one that the model failed (UNAVAILABLE) costs 0.

currencystring nullable

ISO-4217 currency code for cost. Present exactly when cost is.

Changes