A catalog of AI models in Microsoft Foundry that you can discover, compare, and deploy using Azure’s built‑in tools for evaluation, fine‑tuning, and inference
Hello Do, Nam,
Greetings! Thanks for raising this question in Q&A forum.
You are right to be concerned this is a genuine gap in the migration guidance. The Azure AI Inference beta SDK is deprecated and will be retired on August 26, 2026, and the advice is to switch to the OpenAI/v1 API with a stable OpenAI SDK. However, you are also correct that the OpenAI SDK does not support image embedding natively, and it does not speak Cohere's native embed format. So you are not missing anything — this is a real limitation of the recommended migration path for image-specific embedding use cases.
The good news is that you do not need a third-party subscription. Here are the alternatives that keep you fully within Azure:
Option 1: Use the Cohere Python SDK Directly (Best Option)
You can use the Cohere SDK client to consume Cohere models that are deployed via Azure AI Foundry, leveraging the SDK's features including embeddings. The Cohere SDK works with your Azure-deployed Embed v4 endpoint and fully supports image embedding. Install it and point it to your Azure endpoint like this:
import cohere
co = cohere.Client(
api_key="<your-azure-api-key>",
base_url="https://<your-endpoint>.inference.ai.azure.com"
)
# Image embedding using Cohere SDK
response = co.embed(
model="embed-v-4-0",
images=["<base64-encoded-image-or-url>"],
input_type="image",
embedding_types=["float"]
)
print(response.embeddings)
This avoids the deprecated Azure AI Inference SDK entirely and is fully supported.
Option 2: Use the REST API Directly via v1/embed Route
Cohere exposes two routes for Embed v4 inference on Azure: v1/embeddings which adheres to the Azure AI Generative Messages API schema, and v1/embed which supports Cohere's native API schema. For image embedding, use the /v1/embed route directly with a simple HTTP call:
import requests, base64
with open("your_image.jpg", "rb") as f:
image_b64 = base64.b64encode(f.read()).decode("utf-8")
response = requests.post(
"https://<your-endpoint>.inference.ai.azure.com/v1/embed",
headers={
"Authorization": "<your-azure-api-key>",
"Content-Type": "application/json"
},
json={
"model": "embed-v-4-0",
"images": [image_b64],
"input_type": "image",
"embedding_types": ["float"]
}
)
print(response.json())
This approach bypasses both the deprecated Azure SDK and the OpenAI SDK limitation entirely.
Option 3: Keep Watching the Azure AI Inference SDK Migration Guide
Microsoft is aware that image embedding via Cohere is a use case that does not map cleanly onto the OpenAI SDK. Check the official migration guide at https://learn.microsoft.com/en-us/azure/ai-foundry periodically, as updated guidance specific to multimodal Cohere models may be published before the August 2026 deadline.
In summary you do not need a third-party subscription at all. Switch to the Cohere Python SDK pointed at your Azure endpoint (Option 1), which is the cleanest long-term solution and fully replaces the deprecated Azure AI Inference SDK for image embedding with Embed v4.
If this answer helps you kindly accept the answer which will help others who have similar questions.
Best Regards,
Jerald Felix.