OptionalallowAllow preview and experimental models.
OptionalaudioOne audio clip (up to 30 s) to judge along with the state. Needs a model that accepts audio.
OptionaldeviceForce a device. Default 'auto'.
OptionaldtypeForce a dtype, such as 'q4'.
OptionalimagesImages to judge along with the state, in order. Needs a model that accepts images, such as d1-omni-600m.
OptionalitemsOptionalmodelDefault model for questions that do not name one.
OptionalonReceives load events while the model downloads and compiles.
OptionalsampleSample rate of audio when it is a Float32Array at a rate other than 16 kHz.
OptionalsignalAbort download or inference.
OptionalstateWhat to judge: a string, or JSON (serialized with sorted keys; d1 models read it as JSON). Optional when images or audio are the whole state.
One thing to judge: a state, with images or audio, or the media alone.