Please include model version-2023-04-15 in above commands. Attached working command tested at myside.
import requests
endpoint = "<computervision" # Replace with your actual endpoint
subscription_key = "<apikey" # Replace with your actual key
url = f"{endpoint}/computervision/retrieval:vectorizeText?api-version=2024-02-01&model-version=2023-04-15"
headers = {
"Content-Type": "application/json",
"Ocp-Apim-Subscription-Key": subscription_key
}
data = {
"text": "cat jumping"
}
response = requests.post(url, headers=headers, json=data)
print(response.status_code)
print(response.json())
Reference used - https://learn.microsoft.com/en-us/azure/ai-services/computer-vision/how-to/image-retrieval?tabs=csharp#call-the-vectorize-text-api
Hope It helps fix your issue.
Thank you.