v1
latestOpenAPI 3.0.22026-07-173834119.9 KBModel Invocation
Invoke Embed
Endpoint to Invoke Embed Models
This endpoint allows users to invoke embed models.
Request Body
| Parameter | Type | Description |
|---|---|---|
| model_name | str | The name of the model to invoke. Must be one of the supported models. |
| input_text | str | The text to embed. |
Response Body
| Field | Type | Description |
|---|---|---|
| output_text | str | The generated text. |
| input_tokens | str | The number of input tokens used. |
| output_tokens | str | The 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
Response
Successful Response
{"stackTrail":"paths:/model/embed:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}