OpenAI · Image

OpenClaw x GPT Image 2

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.

1 variants from $0.06 / call Commercial OK

Prerequisite: npx runapi mcp install

Prompt

Prompt models

Use gpt-image-2 when it matches the task: gpt-image-2.

You have access to RunAPI task tools for GPT Image 2.

Available GPT Image 2 models:
- gpt-image-2: gpt-image-2
  endpoints: /api/v1/gpt_image_2/text_to_image, /api/v1/gpt_image_2/edit_image
  request fields: model, prompt

Use the model ID and endpoint that match the user's request.
Example prompt: Generate a greeting card with '新年快乐 Happy New Year' in decorative calligraphy, gold and red theme.
/api/v1/gpt_image_2/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/gpt_image_2/text_to_image and save the returned Task id.
GET /api/v1/gpt_image_2/text_to_image/<task-id> until status is completed or failed.
Verify the completed response contains the endpoint-specific output documented in the API reference.
/api/v1/gpt_image_2/edit_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/gpt_image_2/edit_image and save the returned Task id.
GET /api/v1/gpt_image_2/edit_image/<task-id> until status is completed or failed.
Verify the completed response contains the endpoint-specific output documented in the API reference.

Public Versions and Endpoints

Model ID Endpoints Price Catalog
gpt-image-2
/api/v1/gpt_image_2/text_to_image /api/v1/gpt_image_2/edit_image
$0.06 / call Model detail

Verify

Poll until the task reaches a terminal status

POST /api/v1/gpt_image_2/text_to_image and save the returned Task id.
GET /api/v1/gpt_image_2/text_to_image/<task-id> until status is completed or failed.
Verify the completed response contains the endpoint-specific output documented in the API reference.

Configuration

Guide endpoint: /api/v1/gpt_image_2/text_to_image

export RUNAPI_API_KEY=your_api_key

curl -X POST https://runapi.ai/api/v1/gpt_image_2/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "A cobalt vase on white marble."
}'
How it works

Get Started in 3 Steps

  1. Choose a model ID

    Select a public catalog model ID and review its endpoint and current starting price.

  2. Configure RunAPI

    Set RUNAPI_API_KEY before making the endpoint request.

  3. Verify the result

    For asynchronous endpoints, poll the same endpoint until the Task reaches a terminal status.

What to Build with OpenClaw + GPT Image 2

  • UI mockups and app wireframes

    Generate detailed UI mockups from written descriptions, including buttons, navigation, and placeholder content that reads correctly.

  • Text-heavy posters and presentations

    Create posters, infographics, and slides where the exact text is given in the prompt and rendered with clean layouts.

  • Character design sheets

    Generate character sheets with turnaround views from a single description, keeping features consistent across angles.

Why Use GPT Image 2 Through RunAPI + OpenClaw

  • 1 variants, one API key

    Use one RunAPI connection to choose among the live model variants without changing your integration.

  • Clear usage pricing

    See current catalog pricing before you send a request, with no subscription or minimum spend required.

  • Automatic task workflows

    Submit, poll, and collect asynchronous results through a consistent task workflow without writing manual polling code.

OpenClaw + GPT Image 2 Questions

Can I use GPT Image 2 in OpenClaw?

Yes. OpenClaw agents call GPT Image 2 through the RunAPI endpoints shown on this page, with the same RunAPI API key used for chat. No extra skills or plugins are required.

Which aspect ratios and resolutions does GPT Image 2 support?

Set aspect_ratio to auto or a ratio from 1:1 to 21:9 or 9:21, and output_resolution to 1k, 2k, or 4k. Resolution defaults to 1k.

Can I edit an existing image with GPT Image 2?

Yes. Use the edit endpoint, pass the source images, and describe the change in natural language, such as replacing the background or adding an object.

Which model ID should I use?

Choose a public model ID from the version table. Each ID exposes the endpoints shown for that version.

Does this guide configure a chat model?

No. This Model Line uses the endpoint workflow shown here and is not presented as an agent chat model.

Start using GPT Image 2 with OpenClaw

Building with a team?

We're here to help with enterprise setup, integrations, and technical questions.

Contact Us