Skill 3.1.1

Implement a solution that generates images from text prompts and reference media

Key Concepts

GPT-image models (such as gpt-image-2 and gpt-image-1-mini) are deployed from Foundry Models and called through the images API (images.generate for text-only prompts) or as the image generation tool in the Responses API and agents. Other image models, such as FLUX models from Black Forest Labs, are available in the catalogue. The response contains base64-encoded image data that the application stores, for example in Azure Blob Storage.

Reference media guide the result: a product photo, a style sample or a logo is passed with images.edit together with a prompt such as "Place this product on a marble kitchen counter in morning light". Effective prompts describe subject, setting, composition, style, lighting and any text that must appear. Generation is moderated by the deployment's guardrail, and prompts that request disallowed content are rejected with a content filter error that the application must handle.