// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples

[source, js]
----
const response = await client.inference.inference({
  task_type: "my-inference-endpoint",
  inference_id: "_update",
  service_settings: {
    api_key: "<API_KEY>",
  },
});
console.log(response);
----
