Perform inference on the service Added in 8.11.0
Path parameters
-
The task type
Values are
sparse_embedding
,text_embedding
,rerank
, orcompletion
. -
The inference Id
Query parameters
-
timeout string
Specifies the amount of time to wait for the inference request to complete.
Body
-
query string
Query input, required for rerank task. Not required for other tasks.
input string | array[string] Required
Inference input. Either a string or an array of strings.
-
task_settings object
Additional properties are allowed.
POST /_inference/{task_type}/{inference_id}
curl \
-X POST http://api.example.com/_inference/{task_type}/{inference_id} \
-H "Content-Type: application/json" \
-d '{"query":"string","input":"string","task_settings":{}}'