Skip to main content

Openai Image

@dougschaefer/openai-imagev2026.10.06.1· 19d agoBEHAVIORS
01README

OpenAI image generation and editing via OpenAI's GPT image models (defaults gpt-image-2.5-flare for generation, gpt-image-2.5-sunburst for edits) — text-to-image generation, image editing with reference images, free-form model selection with pass-through for newer models, per-model size and quality validation, and local refusal of shut-down models. Vault-based API key.

02Release Notes

Model selection rework ahead of OpenAI's 2026-10-23 gpt-image-1 shutdown: free-string model argument; defaults gpt-image-2.5-flare (generate) and gpt-image-2.5-sunburst (edit); flexible sizes and xhigh/max quality on the 2.x models; shut-down models (gpt-image-1, and from 2026-12-01 gpt-image-1.5, gpt-image-1-mini, chatgpt-image-latest) warn beforehand and are refused locally after; DALL-E refused; response_format never sent; safer error messages, timeouts and JPEG/WebP edit sources.

03Behaviors1
@dougschaefer/openai-imagev2026.10.06.1openai/image.ts
fn generate(prompt: string)
Generate an image from a text prompt using an OpenAI image model (default gpt-image-2.5-flare).
ArgumentTypeDescription
promptstringText description of the image to generate
fn edit()
Edit an existing image using a text prompt (default gpt-image-2.5-sunburst). Send an image file and describe the changes.

Resources

image(infinite)— Generated or edited image
04Previous Versions8
2026.06.29.1

Fix the LICENSE link target in the README (LICENSE.txt).

2026.06.08.1
2026.05.27.1

Modernization: idempotency, live pre-flight checks, sensitive-field marking, resource-write fixes per audit. No breaking API changes.

2026.05.26.1

Align model version fields with manifest (2026.05.26.1); republish under swamp 20260526 conventions

2026.05.13.1

Add JSDoc to model entrypoints to satisfy rubric v2 symbols-docs factor

2026.04.27.1

Add curated README and LICENSE to tarball (additionalFiles), bringing extension's Swamp Club quality grade from F/B to A-/B.

2026.04.13.1

Pin zod to 4.3.6 for consistency

2026.04.02.1

Initial release: generate and edit methods for gpt-image-1 and DALL-E 3

05Stats
A
93 / 100
Downloads
45
Archive size
11.4 KB
  • Has README or module doc2/2earned
  • README has a code example1/1earned
  • README is substantive1/1earned
  • Most symbols documented1/1earned
  • No slow types (deprecated)1/1earned
  • Dependencies pass trust audit2/2earned
  • Has description1/1earned
  • Platform support declared (or universal)2/2earned
  • License1/2partial

    no SPDX license declared

  • Verified public repository2/2earned
06Platforms
07Labels