# OpenAI GPT Image — card for AI agents

Image generation and editing API: gpt-image-2.6 (sunburst, flare) and gpt-image-2; gpt-image-1.5 and gpt-image-1-mini are removed on 2026-12-01, gpt-image-1 was shut down on 2026-10-23 (OpenAI deprecations page).

Category: AI image generators · maker OpenAI · checked 2026-11-09

## Price
- Price: Paid
- Usage price: gpt-image-2 per image: low $0.005-0.006, medium $0.041-0.053, high $0.165-0.211; Batch about 50% off.
- Pricing page: https://developers.openai.com/api/docs/pricing

## License
OpenAI Services Agreement — https://openai.com/policies/services-agreement/

- commercial: **yes** (Commercial use OK)
- in app: **yes** (Can ship inside your app)
- youtube: **conditions** (Monetized YouTube with conditions)

## Rules to follow
- Disclose realistic AI-generated content on YouTube (altered or synthetic content setting).

## Can an AI agent use it by itself?
**No** · package: Agent installs a package or loads it from a CDN

## How an agent gets files
- POST https://api.openai.com/v1/images/generations (new images) or /v1/images/edits (edits); the response carries base64 image data in data[0].b64_json. Use the openai npm or pip package. (sign-in: api-key)
- Formats: png, jpeg, webp

## How to connect
- Public API
- API docs: https://developers.openai.com/api/docs/guides/image-generation (API key needed)
- npm: `npm install openai`
- PyPI: `pip install openai`
- Website: https://developers.openai.com/api/docs/guides/image-generation

## Notes
Services Agreement 4.1: the customer owns all Output. Token rates: gpt-image-2 image output $30/1M, gpt-image-1 $40/1M, gpt-image-1-mini $8/1M.

## Lines to paste into your prompt or AGENTS.md

```
- OpenAI GPT Image (AI image generators). Image generation and editing API: gpt-image-2.6 (sunburst, flare) and gpt-image-2; gpt-image-1.5 and gpt-image-1-mini are removed on 2026-12-01, gpt-image-1 was shut down on 2026-10-23 (OpenAI deprecations page). Price: paid; commercial use OK.
  Connect: API docs https://developers.openai.com/api/docs/guides/image-generation (API key needed); npm openai; PyPI openai.
  Get files: POST https://api.openai.com/v1/images/generations (new images) or /v1/images/edits (edits); the response carries base64 image data in data[0].b64_json. Use the openai npm or pip package (png, jpeg, webp).
  Rule: Disclose realistic AI-generated content on YouTube (altered or synthetic content setting).
  License: https://openai.com/policies/services-agreement/ (checked 2026-11-09; details: https://agentgid.com/assets/openai-gpt-image/)
```

Not verified: Consumer terms and help.openai.com returned 403; ownership is from the Services Agreement (API/business).

## Links
- AgentGid page: https://agentgid.com/assets/openai-gpt-image/
- Source: https://developers.openai.com/api/docs/pricing
- Source: https://developers.openai.com/api/docs/guides/image-generation
- Source: https://developers.openai.com/api/docs/guides/content-provenance
- Source: https://openai.com/policies/services-agreement/

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
