GPT Image 2
Latest OpenAI image generation with near-perfect multilingual text rendering inside images.
# Works with Claude Code, Codex, Gemini CLI, Cursor, and 50+ agents
npx skills add runapi-ai/gpt-image-2 -g
Install the GPT Image 2 skill for me: 1. Clone https://github.com/runapi-ai/gpt-image-2 2. Copy the skills/gpt-image-2/ directory into your user-level skills directory (e.g. ~/.claude/skills/ for Claude Code, ~/.codex/skills/ for Codex). 3. Verify that SKILL.md is present. 4. Confirm the install path when done.
GPT Image 2 is OpenAI's latest image generation model featuring near-perfect multilingual text rendering within generated images. It improves on instruction following and fine-grained visual detail over its predecessor.
- Installable agent skill
- Unified API key
- SDK examples included
- 失敗した生成は課金されません
料金
仕様
| Model ID | gpt-image-2 |
| プロバイダー | OpenAI |
| モダリティ | image |
| Task type | asynchronous |
| 課金 | call |
| Endpoint | /api/v1/gpt_image_2/text_to_image |
| Commercial | Yes |
| Status | Operational |
Use this model from your agent
# User prompt to the agent
"Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme."
// Code generated by the agent via @runapi.ai/gpt-image-2
import { GptImage2Client } from '@runapi.ai/gpt-image-2';
const client = new GptImage2Client();
const result = await client.textToImage.run({
model: 'gpt-image-2',
prompt: 'Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme.',
});
How to call this model
Install the skill
Add the model skill to your agent or install the SDK package.
Authenticate once
Use your RunAPI key for every supported model.
Send a request
Use the unified schema for the endpoint you need.
Receive output
Poll by task ID or handle the callback when the generation completes.
SDK quickstart
curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
-H "Authorization: Bearer $RUNAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme."
}'
import { GptImage2Client } from "@runapi.ai/gpt-image-2";
const client = new GptImage2Client();
const result = await client.textToImage.run({
model: "gpt-image-2",
prompt: "Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme.",
});
require "runapi/gpt_image_2"
client = RunApi::GptImage2::Client.new
result = client.text_to_image.run(
model: "gpt-image-2",
prompt: "Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme."
)
Where GPT Image 2 fits
GPT Image 2 is OpenAI's newest image model, notable for near-perfect multilingual text rendering. Through RunAPI, both text-to-image and image editing endpoints share one key.
Why use GPT Image 2 through RunAPI
One API key
Use the same credentials across models and providers.
Agent-ready
Installable skills include docs and schema for tool calls.
Predictable billing
Usage-based pricing is visible before you call.
Frequently asked questions
How do I call this model?
Use the RunAPI SDK, CLI, or REST endpoint shown on this page.
Do failed generations cost money?
失敗した生成は課金されません
Can agents use it directly?
Yes. Install the model skill and your agent gets the docs, schema, and examples.
Models similar to GPT Image 2
Start building with GPT Image 2.
- text_to_image
- edit_image