Organization

Query credit usage

Changed on

Fetch credit usage data broken down by model and day for the organization associated with the API key used to make the request. Up to 90 days of data can be queried at a time.

post/v1/organization/usage

Request

  • Base URL
    https://api.dev.runwayml.com
  • URL
    https://api.dev.runwayml.com/v1/organization/usage
  • Auth
    HTTP bearer

Headers

X-Runway-Version'2024-11-06' required

The version of the RunwayML API being used. You can read more about versioning here.

Request body

startDatestring date

The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If unspecified, it will default to 30 days before the current date. All dates are in UTC.

beforeDatestring date

The end date of the usage data in ISO-8601 format (YYYY-MM-DD), not inclusive. If unspecified, it will default to thirty days after the start date. Must be less than or equal to 90 days after the start date. All dates are in UTC.

Response

Success

modelsstring[] required

The list of models with usage during the queried time range.

apiKeysstring[]

Reserved for future use.

Changes

    • warning

      added the new kling_4 enum value to the / response property for the response status

    • warning

      added the new kling_4 enum value to the //// response property for the response status

    • warning

      added the new mirelo_sfx_2_0 enum value to the / response property for the response status

    • warning

      added the new mirelo_sfx_2_0 enum value to the //// response property for the response status

    • warning

      added the new recraft_v4_1_flash enum value to the / response property for the response status

    • warning

      added the new recraft_v4_1_flash enum value to the //// response property for the response status

    • warning

      added the new recraft_v4_1_vector enum value to the / response property for the response status

    • warning

      added the new recraft_v4_1_vector enum value to the //// response property for the response status