Skill 2.3.2

Create new visual outputs by using generative models

Key Concepts

In Foundry, GPT-image models (such as gpt-image-2 and gpt-image-1-mini) are deployed like other models and called through the images API. images.generate() takes a prompt and parameters such as size, quality and n (the number of images) and returns the image as base64 data. images.edit() takes one or more input images and a prompt and can take a mask whose transparent area marks the region to change. The Foundry portal's images playground lets you try prompts and settings without code. FLUX models from Black Forest Labs are also available in the catalog.

Good image prompts describe the subject, setting, style, composition, lighting and anything to avoid, and are refined iteratively. Higher quality and larger sizes take longer and cost more. Generated images carry C2PA content credentials that mark them as AI-generated, and guardrails filter harmful prompts and outputs. Video-generation models run as asynchronous jobs that are created, polled and downloaded. Their availability changes frequently: OpenAI's Sora models were offered in Foundry until the last version retired in October 2026, so confirm the current video models in the catalog.