Azure OpenAI exposes GPT-4 Vision Preview through model ID gpt-4-vision-preview. Use the setup steps, sourced pricing, capabilities, and official provider links below to validate this route before deployment.
Last refreshed 2026-05-19. Next refresh: weekly.
Quick Start
- 1
- 2Use the Azure OpenAI SDK or REST API to call
gpt-4-vision-preview— see the documentation for request format. - 3
Code Examples
Install
pip install openaiAPI key
AZURE_OPENAI_API_KEYModel ID
gpt-4-vision-previewgpt-4-vision-preview is your Azure deployment name, not the underlying model name. Deployment names are set when you deploy a model in Azure AI Foundry / Azure OpenAI Studio.
import os
from openai import AzureOpenAI
client = AzureOpenAI(
azure_endpoint=os.environ["AZURE_OPENAI_ENDPOINT"], # e.g. https://{resource}.openai.azure.com
api_key=os.environ["AZURE_OPENAI_API_KEY"],
api_version="2024-02-01"
)
response = client.chat.completions.create(
model="gpt-4-vision-preview", # your deployment name
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Pricing on Azure OpenAI
| Type | Price (per 1M) |
|---|---|
| Input tokens | $10.00 |
| Output tokens | $40.00 |
Capabilities
VisionMultimodalCode Execution
About GPT-4 Vision Preview
GPT-4 Vision Preview is OpenAI's GPT-4 model with multimodal text and image input. It is deprecated (originally released 2023-11-06); use it only for reproducing earlier results or evaluating drift over time.
Model Specs
Released2023-11-06
Parameters1.76T (8x222B MoE)*
Context128k
ArchitectureMixture of Experts
Knowledge cutoff2023-04