Hierarchy (view full)

Constructors

Properties

audioFile: string

Base 64 encoded audio file to convert to text

maxOutputTokens?: number

Model max output response tokens, optional.

model: string

Model name, required.

modelSpecificResponseFormat?: any

The standard response formats may not be sufficient for all models. This field allows for a model-specific response format to be specified. For this field to be used, responseFormat must be set to 'ModelSpecific'.

reasoningBudgetTokens?: number

Model max budget tokens that we may use for reasoning in reasoning models, optional.

responseFormat?: "Any" | "Text" | "Markdown" | "JSON" | "ModelSpecific" = 'Any'

Specifies the format that the model should output. Not all models support all formats. If not specified, the default is 'Any'.

seed?: number

Optional seed for reproducible outputs. Not all models support seeding, but when supported, using the same seed with the same inputs should produce identical outputs.

stopSequences?: string[]

Optional array of sequences where the model will stop generating further tokens. The returned text will not contain the stop sequence.

temperature?: number

Model temperature, optional.