Create an Anthropic inference endpoint
PUT
/_inference/{task_type}/{anthropic_inference_id} Create an inference endpoint to perform an inference task with the anthropic service.
Required authorization
- Cluster privileges:
manage_inference
Parameters
path Path Parameters
| Name | Type |
|---|---|
task_type
required
The task type.
The only valid task type for the model to perform is | type InferenceTypesAnthropicTaskType = "completion" |
anthropic_inference_id
required
The unique identifier of the inference endpoint. | type TypesId = string |
query Query Parameters
| Name | Type |
|---|---|
timeout Specifies the amount of time to wait for the inference endpoint to be created. | type TypesDuration = string | "-1" | "0" |
Request Body
application/json
required
{ service: InferenceTypesAnthropicServiceType ;service_settings: InferenceTypesAnthropicServiceSettings ;task_settings?: InferenceTypesAnthropicTaskSettings ; }
Responses
200 application/json
type InferenceTypesInferenceEndpointInfoAnthropic = interface InferenceTypesInferenceEndpoint {
chunking_settings?:InferenceTypesInferenceChunkingSettings ;
service: string;
service_settings:InferenceTypesServiceSettings ;
task_settings?:InferenceTypesTaskSettings ;
} & { inference_id: string;task_type:InferenceTypesTaskTypeAnthropic ; }
chunking_settings?:
service: string;
service_settings:
task_settings?:
} & { inference_id: string;task_type: