OpenAIPictureAltSettings
Settings for OpenAIPictureAlt. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
ApiEndpoint
public string ApiEndpoint { get; set; }OpenAI API endpoint URL.
Type: string
ApiKey
public string ApiKey { get; set; }OpenAI API key for authentication.
Type: string
Detail
public string Detail { get; set; }Detail level for image analysis (low, high, auto).
Type: string
MaxTokens
public int MaxTokens { get; set; }Maximum number of tokens in the response.
Type: int
Model
public string Model { get; set; }Model to use for language detection (e.g., “gpt-4o-mini”).
Type: string
Temperature
public double Temperature { get; set; }Temperature for response generation (0.0 to 1.0). Lower values produce more deterministic outputs.
Type: double
Resource management
public void Dispose()OpenAIPictureAltSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.