Class Model
ScriptableObject representation of a generative AI model with metadata, configuration, and pricing information. Supports token limits, ownership, creation time, and dynamic pricing for various content types (text, image, audio).
Inherited Members
ScriptableObject.SetDirty()
ScriptableObject.CreateInstance<T>()
Object.GetEntityId()
Object.GetInstanceID()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.name
Object.hideFlags
Namespace: Glitch9.AIDevKit
Assembly: Glitch9.AIDevKit.dll
Syntax
[JsonConverter(typeof(ModelConverter))]
[CreateAssetMenu(menuName = "AI DevKit/AI Model", order = 2055)]
public class Model : ModelBase, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceIsCustom
Indicates whether the asset is user-customized or not. If it's a model, it means the model is a fine-tuned version of a base model. If it's a voice, it means the voice is a custom voice created by the user.
Declaration
public override bool IsCustom { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
| Edit this page View SourceIsLegacy
Indicates whether the model is a legacy version. Legacy models often have a different endpoint or API structure.
Declaration
public override bool IsLegacy { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Methods
| Edit this page View SourceFirstValid(params string[])
Declaration
public static Model FirstValid(params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| Model |
FirstValidId(params string[])
Declaration
public static string FirstValidId(params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| string |
TryGet(out Model, params string[])
Declaration
public static bool TryGet(out Model model, params string[] candidateIds)
Parameters
| Type | Name | Description |
|---|---|---|
| Model | model | |
| string[] | candidateIds |
Returns
| Type | Description |
|---|---|
| bool |
Operators
| Edit this page View Sourceimplicit operator Model(string)
Declaration
public static implicit operator Model(string modelId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | modelId |
Returns
| Type | Description |
|---|---|
| Model |