Using GPT-4 Vision Preview on Azure OpenAI

Implementation guide · GPT-4 · OpenAI

Serverless

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. 1
    Create an account at Azure OpenAI and generate an API key.
  2. 2
    Use the Azure OpenAI SDK or REST API to call gpt-4-vision-preview — see the documentation for request format.
  3. 3
    You'll be billed $10.00/1M input, $40.00/1M output tokens. See full pricing.

Code Examples

Install
pip install openai
API key
AZURE_OPENAI_API_KEY
Model ID
gpt-4-vision-preview

gpt-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

TypePrice (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

Provider

Azure OpenAI

Microsoft

Redmond, Washington, United States