Skip to content

Usage

Namespace: TypeSafe.AI.Sdk

public sealed class Usage

Token usage for a request.

Inheritance: object

View source

[JsonPropertyName("input_tokens")]
public int? InputTokens { get; init; }

Number of input tokens used, or null when the API does not report it.

Value: int?

View source

[JsonPropertyName("output_tokens")]
public int? OutputTokens { get; init; }

Number of output tokens used, or null when the API does not report it.

Value: int?

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API