Get an inference endpoint Generally available; Added in 8.11.0
All methods and paths for this operation:
GET /_inference
GET /_inference/{inference_id}
GET /_inference/{task_type}/{inference_id}
GET /_inference/{task_type}/{inference_id}
Console
GET _inference/sparse_embedding/my-elser-model resp = client.inference.get( task_type="sparse_embedding", inference_id="my-elser-model", ) const response = await client.inference.get({ task_type: "sparse_embedding", inference_id: "my-elser-model", }); response = client.inference.get( task_type: "sparse_embedding", inference_id: "my-elser-model" ) $resp = $client->inference()->get([ "task_type" => "sparse_embedding", "inference_id" => "my-elser-model", ]); curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_inference/sparse_embedding/my-elser-model" client.inference().get(g -> g .inferenceId("my-elser-model") .taskType(TaskType.SparseEmbedding) );