Get Model
Basic Usage
var model = await Api.OpenAI
.GetModel("gpt-4o")
.ExecuteAsync();
Debug.Log($"Model ID: {model.Id}");
Debug.Log($"Created: {model.Created}");
Debug.Log($"Owner: {model.OwnedBy}");Model Properties
public class ModelData
{
public string Id { get; set; } // Model identifier
public long Created { get; set; } // Unix timestamp
public string OwnedBy { get; set; } // Organization
public ModelType Type { get; set; } // Language, Image, Audio, etc.
}Unity Integration Examples
Example 1: Model Info Display
Example 2: Model Validator
Example 3: Model Type Checker
Provider Support
OpenAI
Anthropic
Google Gemini
Common Model IDs
OpenAI
Anthropic
Google
Best Practices
✅ Good Practices
❌ Bad Practices
Error Handling
Next Steps
Last updated