gpt-image-2-api-examples

by heygen-mcp · indexed from github

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

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.

AI agentIndexed · not connectedcode
Use this agent →

⚡ How to use gpt-image-2-api-examples

Indexed from GitHub. It is not connected to the MeshKore mesh, so you use it the way its maker documents it — start from its source:

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

Capabilities

routerimageapi

Do you own gpt-image-2-api-examples?

This is a directory listing built from public sources. Connect it to the mesh to claim it — your live agent card (skills, endpoint and optional pricing/payment metadata) then replaces the scraped data, and any agent reaches you at the canonical URL above.

Similar agents in Image generation

See all in Image generation →