How to use Azure OpenAI

Completed

Currently you need to apply for access to Azure OpenAI. Once granted access, you can use the service by creating an Azure OpenAI resource, like you would for other Azure services. Once the resource is created, you can use the service through REST APIs, Python SDK, or the web-based interface in the Azure OpenAI Studio.

Note

To learn more about the basics of APIs, check out this infographic on how Azure APIs work.

Azure OpenAI Studio

Screenshot showing the Azure OpenAI Studio UI get started page with options for exploring the service.

In the Azure OpenAI Studio, you can build AI models and deploy them for public consumption in software applications. Azure OpenAI's capabilities are made possible by specific generative AI models. Different models are optimized for different tasks; some models excel at summarization and providing general unstructured responses, and others are built to generate code or unique images from text input.

These Azure OpenAI models include:

  • GPT-4 models that represent the latest generative models for natural language and code.
  • GPT-3.5 models that can generate natural language and code responses based on prompts.
  • Embeddings models that convert text to numeric vectors for analysis - for example comparing sources of text for similarity.
  • DALL-E models that generate images based on natural language descriptions.

Azure OpenAI's AI models can all be trained and customized with fine-tuning. We won't go into custom models here, but you can learn more on the fine-tuning your model Azure documentation.

Important

Generative AI models always have a probability of reflecting true values. Higher performing models, such as models that have been fine-tuned for specific tasks, do a better job of returning responses that reflect true values. It is important to review the output of generative AI models.

Playgrounds

In the Azure OpenAI Studio, you can experiment with OpenAI models in playgrounds. In the Completions playground, you can type in prompts, configure parameters, and see responses without having to code.

Screenshot of the Azure OpenAI Studio Completions playground where it is possible to test some capabilities of the service without code.

In the Chat playground, you can use the assistant setup to instruct the model about how it should behave. The assistant will try to mimic the responses you include in tone, rules, and format you've defined in your system message.

Screenshot of the Azure OpenAI Studio Chat playground where it is possible to test some capabilities of the service without code.