Class TokenPrice
Represents per-token pricing, distinguishing between input and output token types.
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[Serializable]
public class TokenPrice : ModelPrice
Constructors
| Edit this page View SourceTokenPrice()
Declaration
public TokenPrice()
TokenPrice(TokenType, double)
Declaration
public TokenPrice(TokenType tokenType, double cost)
Parameters
| Type | Name | Description |
|---|---|---|
| TokenType | tokenType | |
| double | cost |
Fields
| Edit this page View SourcetokenType
Whether this price applies to input tokens or output tokens.
Declaration
[SerializeField]
[JsonProperty("tokenType")]
public TokenType tokenType
Field Value
| Type | Description |
|---|---|
| TokenType |
Methods
| Edit this page View SourceGetTypeName()
Returns a human-readable label for this price type (e.g. "Input Token", "HD Image").
Declaration
public override string GetTypeName()
Returns
| Type | Description |
|---|---|
| string |