MCPcopy
hub / github.com/openai/openai-go / AdminOrganizationUsageAudioSpeechesParams

Struct AdminOrganizationUsageAudioSpeechesParams

adminorganizationusage.go:8701–8734  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8699}
8700
8701type AdminOrganizationUsageAudioSpeechesParams struct {
8702 // Start time (Unix seconds) of the query time range, inclusive.
8703 StartTime int64 `query:"start_time" api:"required" json:"-"`
8704 // End time (Unix seconds) of the query time range, exclusive.
8705 EndTime param.Opt[int64] `query:"end_time,omitzero" json:"-"`
8706 // Specifies the number of buckets to return.
8707 //
8708 // - `bucket_width=1d`: default: 7, max: 31
8709 // - `bucket_width=1h`: default: 24, max: 168
8710 // - `bucket_width=1m`: default: 60, max: 1440
8711 Limit param.Opt[int64] `query:"limit,omitzero" json:"-"`
8712 // A cursor for use in pagination. Corresponding to the `next_page` field from the
8713 // previous response.
8714 Page param.Opt[string] `query:"page,omitzero" json:"-"`
8715 // Return only usage for these API keys.
8716 APIKeyIDs []string `query:"api_key_ids,omitzero" json:"-"`
8717 // Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
8718 // supported, default to `1d`.
8719 //
8720 // Any of "1m", "1h", "1d".
8721 BucketWidth AdminOrganizationUsageAudioSpeechesParamsBucketWidth `query:"bucket_width,omitzero" json:"-"`
8722 // Group the usage data by the specified fields. Support fields include
8723 // `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
8724 //
8725 // Any of "project_id", "user_id", "api_key_id", "model".
8726 GroupBy []string `query:"group_by,omitzero" json:"-"`
8727 // Return only usage for these models.
8728 Models []string `query:"models,omitzero" json:"-"`
8729 // Return only usage for these projects.
8730 ProjectIDs []string `query:"project_ids,omitzero" json:"-"`
8731 // Return only usage for these users.
8732 UserIDs []string `query:"user_ids,omitzero" json:"-"`
8733 paramObj
8734}
8735
8736// URLQuery serializes [AdminOrganizationUsageAudioSpeechesParams]'s query
8737// parameters as `url.Values`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected