Create semantic embeddings for code with our OpenAI-compatible API
Parameter | Type | Required | Description |
---|---|---|---|
model | string | Yes | The model ID to use for embedding generation. Use morph-embedding-v2 . |
input | string or array | Yes | The text to generate embeddings for. Can be a string or an array of strings. |
encoding_format | string | No | The format in which the embeddings are returned. Options are float and base64 . Default is float . |