Skip to main contentwatsonx Developer Hub

watsonx Developer Hub

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

Start building

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

Learn more