{
  "inference.completion": {
    "documentation": {
      "url": "https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-inference",
      "description": "Perform completion inference on the service"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_inference/completion/{inference_id}",
          "methods": [
            "POST"
          ],
          "parts": {
            "inference_id": {
              "type": "string",
              "description": "The inference Id"
            }
          }
        }
      ]
    },
    "body": {
      "description": "The inference payload",
      "required": true
    },
    "params": {
      "timeout": {
        "type": "time",
        "description": "Specifies the amount of time to wait for the inference request to complete.",
        "default": "30s"
      }
    }
  }
}
