---
title: "One job's usage record: the lease intervals billed, what was excluded, and each target's share of the charge (`targets[].amount_micros`, summing to `amount_micros`)."
method: GET
path: "/v1/jobs/{job_id}/usage"
tags: ["usage"]
---

# One job's usage record: the lease intervals billed, what was excluded, and each target's share of the charge (\`targets\[\].amount_micros\`, summing to \`amount_micros\`).

`GET /v1/jobs/{job_id}/usage`

## Request

- Base URL: `https://api.japanfold.aiand.com`
- URL: `https://api.japanfold.aiand.com/v1/jobs/{job_id}/usage`
- Auth: one of:
  - none
  - HTTP bearer

Answers as soon as the job has ended. A job canceled before it started, or one that failed, has a record of 0. A queued or running job answers 404 with its status; `GET /v1/jobs/{job_id}?wait=60` returns when it ends.

## Path parameters

- `job_id` string, required

## Response `200`

Usage record

- Usage
  - `amount` number: The same charge in whole `currency` units (dollars), ready to read.
  - `amount_micros` integer: Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.
  - `billable_s` number
  - `closed_at` string, date-time
  - `currency` 'usd'
  - `excluded_s` number
  - `job` string
  - `load_s` number
  - `model` string
  - `status` string
  - `surface` string
  - `targets` object[]
    - `amount` number: The same charge in whole `currency` units (dollars), ready to read.
    - `amount_micros` integer: Millionths of one unit of `currency` (US dollars): 1000000 is $1.00. Exact; add these, not `amount`.
    - `billable_s` number
    - `id` string

## Other responses

- `401`: Unauthorized
- `404`: Not found

---

[API](https://skmtc.dev/aiand/apis/japanfold-api.md) · [All operations](https://skmtc.dev/aiand/apis/japanfold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/aiand/apis/japanfold-api/revisions/9f4be813b447?raw)
