v1

latestOpenAPI 3.0.22026-07-173834119.9 KB
Model Invocation

Invoke Embed

Endpoint to Invoke Embed Models

This endpoint allows users to invoke embed models.


Request Body

ParameterTypeDescription
model_namestrThe name of the model to invoke. Must be one of the supported models.
input_textstrThe text to embed.

Response Body

FieldTypeDescription
output_textstrThe generated text.
input_tokensstrThe number of input tokens used.
output_tokensstrThe number of output tokens generated.

Errors

  • 400 Bad Request: If the request parameters are invalid.
  • 401 Unauthorized: If the authorization header is missing or invalid.
  • 500 Internal Server Error: If there is an unexpected error during model invocation.

Notes

post/model/embed

Request body

model_namestring required
input_textstring

Response

Successful Response

{"stackTrail":"paths:/model/embed:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}