ImageEmbeddingInput Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents an image with optional text.
public class ImageEmbeddingInput : System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.ImageEmbeddingInput>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.ImageEmbeddingInput>
type ImageEmbeddingInput = class
interface IJsonModel<ImageEmbeddingInput>
interface IPersistableModel<ImageEmbeddingInput>
Public Class ImageEmbeddingInput
Implements IJsonModel(Of ImageEmbeddingInput), IPersistableModel(Of ImageEmbeddingInput)
- Inheritance
-
ImageEmbeddingInput
- Implements
Constructors
ImageEmbeddingInput(String) |
Initializes a new instance of ImageEmbeddingInput. |
Properties
Image |
The input image encoded in base64 string as a data URL. Example: |
Text |
Optional. The text input to feed into the model (like DINO, CLIP). Returns a 422 error if the model doesn't support the value or parameter. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) | |
Load(String, String, String) |
Explicit Interface Implementations
IJsonModel<ImageEmbeddingInput>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<ImageEmbeddingInput>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<ImageEmbeddingInput>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<ImageEmbeddingInput>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<ImageEmbeddingInput>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |
Applies to
Azure SDK for .NET