Skip to main contentwatsonx Developer Hub

watsonx Developer Hub

curl -X POST \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
"{watsonx_ai_url}/ml/v1/text/generation?version=2024-05-31" \
--data-raw '{
   "input": "How far is Paris from Bangalore?",
   "model_id": "ibm/granite-13b-instruct-v2",
   "project_id": "{project_id}"
}'

Start building

Support your next project with some of our most commonly used capabilities.

Learn more