GET
Retrieve an organization generation

Authorizations

Authorization
string
header
required

Provide your API key in the Authorization header using Bearer auth

Path Parameters

id
string
required

ID returned by the call, e.g. chatcmpl-…

Response

OK

Billing record of one call

id
string

Public ID, also the billing ID

Example:

"chatcmpl-0192f1c3a7b87c3e9a4f5b6c7d8e9f01"

object
string

Object type, same as the original response

Example:

"chat.completion"

model
string

Canonical model ID

Example:

"deepseek/deepseek-v4.1-flash"

status
enum<string>

Status: queued / in_progress / completed / failed / cancelled

Available options:
queued,
in_progress,
completed,
failed,
cancelled
Example:

"completed"

created_at
integer<int64>

Creation time (Unix seconds)

completed_at
integer<int64>

Completion time (Unix seconds); null while running

cancel_requested_at
integer<int64>

When cancellation was requested (Unix seconds); null if never requested. A generation already sent upstream follows the upstream outcome after cancellation is requested

latency_ms
integer<int64>

Total latency (ms)

api_key
object

API key reference

project_id
string

Project ID (proj_ prefix)

usage
object

Usage and cost (shape depends on the call type: text or image); null when failed or not charged

billing_status
enum<string>

Billing status: estimated / settled / refunded / adjusted

Available options:
estimated,
settled,
refunded,
adjusted
Example:

"settled"

adjustments
object[]

Refunds, extra charges and compensations

net_cost
number

Net cost (USD) = cost + sum of adjustments

Example:

0.0000081

estimated_cost
number

Estimated cost (USD): while the generation is still queued or running, the amount held for it (from the quote); omitted once finished

Example:

0.08

currency
string

Currency

Example:

"USD"

error_code
string

Error code when failed

metadata
object

Metadata passed with the call

output
object

Outputs of an asynchronous task, grouped by kind

data
object[]

Generated images (image calls); links are re-signed on every query

line_items
object[]

Cost breakdown of a workflow: each sub-call and each workflow fee (only for run_ and wfc_ IDs)