Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 24 additions & 2 deletions api-reference/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1671,9 +1671,15 @@ paths:
character_limit: 1000000000000
products:
- product_type: write
billing_unit: characters
api_key_unit_count: 0
account_unit_count: 5643
api_key_character_count: 0
character_count: 5643
- product_type: translate
billing_unit: characters
api_key_unit_count: 636
account_unit_count: 5941580
api_key_character_count: 636
character_count: 5941580
api_key_character_count: 636
Expand Down Expand Up @@ -4104,13 +4110,29 @@ components:
type: string
description: The type of product (e.g., 'write', 'translate').
example: write
billing_unit:
type: string
enum:
- characters
description: The billing unit for this product type.
example: characters
api_key_unit_count:
type: integer
description: Units used for this product by this API key in the current period.
example: 0
account_unit_count:
type: integer
description: Total units used for this product in the current period.
example: 5643
api_key_character_count:
type: integer
description: Characters used for this product by this API key in the current period.
deprecated: true
description: Use api_key_unit_count instead. Characters used for this product by this API key in the current period."
example: 0
character_count:
type: integer
description: Total characters used for this product in the current period.
deprecated: true
description: Use account_unit_count instead. Total characters used for this product in the current period."
example: 5643
api_key_character_count:
type: integer
Expand Down