Create semantic embeddings for code with our OpenAI-compatible API
morph-embedding-v3
model delivers state-of-the-art performance on code retrieval tasks, enabling powerful search, clustering, and similarity operations for code-related applications.
Parameter | Type | Required | Description |
---|---|---|---|
model | string | Yes | The model ID to use for embedding generation. Use morph-embedding-v3 (latest) or morph-embedding-v3 . |
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 . |