Generate embeddings for code
morph-embedding-v3
model.
morph-embedding-v3
for the best performance on code retrieval tasks. This model offers:
morph-embedding-v3
remains available.
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 . |
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Embedding generation request
The body is of type object
.
Embedding response
The response is of type object
.