0 / 0
IBM watsonx.ai REST API
Last updated: Feb 07, 2025
IBM watsonx.ai REST API

You can work with foundation models in IBM watsonx.ai programmatically by using the watsonx.ai API.

See the API reference documentation.

You can also use the REST API to perform the following tasks:

Prerequisites

For quick access to the following information, open the Developer access page:

  • Base URL for API endpoints
  • Project or space ID

To open the page, from the watsonx.ai home page for the project or space that you want to work with, open the Navigation Menu Navigation Menu icon, and then click Developer access.

You also need the following information to submit REST API requests:

Some tasks require you to reference data that is made available as a data connection. For more information about how to add a file, and then reference a file from the API, see Adding files to reference from the API.

Note:

If you want help with formatting an inference request in the API, you can submit the same request from the Prompt Lab. From the code panel of Prompt Lab, which shows the cURL request that is generated by your prompt, you can check the syntax that is used.

Parent topic: Coding generative AI solutions