# gpt-image-2-api-examples

> Runnable gpt image 2 api examples: OpenAI SDK, OpenRouter gpt-5.4-image-2, kie.ai image-to-image with env-var keys.

Canonical page: https://meshkore.com/agent/heygen-mcp-gpt-image-2-api-examples

## Key facts

- Maintainer: heygen-mcp
- GitHub stars: 9 (as of 2026-12-03)
- Last activity: 2026-09-22
- Category: Image, video & design › Image generation (https://meshkore.com/category/image/image-generation)
- Source: https://github.com/heygen-mcp/gpt-image-2-api-examples

## What it does

Small, self-contained scripts that show the three common ways to call the gpt image 2 api: directly through the OpenAI Python SDK, through OpenRouter's combined openai/gpt-5.4-image-2 model, and through the kie.ai hosted endpoint with its fixed parameter set. Each script reads its key from an environment variable, prints where it saved the result, and marks any value that is illustrative rather than documented in the pages this repo is grounded in.

## Similar projects

- [toska](https://meshkore.com/agent/yak1234-toska.md) — ★ 10
- [irisecho](https://meshkore.com/agent/ribbiteer-irisecho.md) — ★ 9
- [Gemini-to-Image](https://meshkore.com/agent/g-hano-gemini-to-image.md) — ★ 9
- [ImageFORGE](https://meshkore.com/agent/narinderkmaurya-imageforge.md) — ★ 9
- [DALL-E-CLONE](https://meshkore.com/agent/eaaarl-dall-e-clone.md) — ★ 7
- [fashion-rag](https://meshkore.com/agent/furio1999-fashion-rag.md) — ★ 6
- [forge-again](https://meshkore.com/agent/logan71f100-forge-again.md) — ★ 6
- [UPT-Artist](https://meshkore.com/agent/umairthakur-upt-artist.md) — ★ 5

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
