Usage Completions

Go to Product

Get completions usage details for the organization.

Options

Start Time
Start time (Unix seconds) of the query time range, inclusive.
End Time (*)
End time (Unix seconds) of the query time range, exclusive.
Bucket Width (*)
Width of each time bucket in response. Currently 1m, 1h and 1d are supported, default to 1d.
Project Ids (*)
Return only usage for these projects.
User Ids (*)
Return only usage for these users.
Api Key Ids (*)
Return only usage for these API keys.
Models (*)
Return only usage for these models.
Batch (*)
If true, return batch jobs only. If false, return non-batch jobs only. By default, return both.
Group By (*)
Group the usage data by the specified fields. Support fields include project_id, user_id, api_key_id, model, batch or any combination of them.
Limit (*)

Specifies the number of buckets to return.

  • bucket_width=1d: default: 7, max: 31
  • bucket_width=1h: default: 24, max: 168
  • bucket_width=1m: default: 60, max: 1440
Page (*)
A cursor for use in pagination. Corresponding to the next_page field from the previous response.
Result Format

Specify how the response should be mapped to the table output. The following formats are available:

Raw Response: Returns the raw response in a single row with the following columns:

  • body: Response body
  • status: HTTP status code

Input Ports

Icon
Configuration data.

Output Ports

Icon
Result of the request depending on the selected Result Format.
Icon
Configuration data (this is the same as the input port; it is provided as passthrough for sequentially chaining nodes to declutter your workflow connections).

Popular Predecessors

  • No recommendations found

Popular Successors

  • No recommendations found

Views

This node has no views

Workflows

  • No workflows found

Links

Developers

You want to see the source code for this node? Click the following button and we’ll use our super-powers to find it for you.