OpenAI · Image

OpenClaw x GPT-4o Image

GPT-4o Image integrates visual creation natively into GPT-4o, combining reasoning with generation. Through RunAPI, it shares the same API access and billing as all OpenAI models.

1 variants from $0.06 / call Commercial OK

Prerequisite: npx runapi mcp install

Prompt

Prompt models

Use gpt-4o-image when it matches the task: gpt-4o-image.

You have access to RunAPI task tools for GPT-4o Image.

Available GPT-4o Image models:
- gpt-4o-image: gpt-4o-image
  endpoints: /api/v1/gpt_4o_image/text_to_image
  request fields: model, prompt, aspect_ratio

Use the model ID and endpoint that match the user's request.
Example prompt: Based on our conversation about the brand redesign, generate a mockup of the new homepage hero section.
/api/v1/gpt_4o_image/text_to_image: Submit the task, poll for its status, then verify the completed output. POST /api/v1/gpt_4o_image/text_to_image and save the returned Task id.
GET /api/v1/gpt_4o_image/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.

Public Versions and Endpoints

Model ID Endpoints Price Catalog
gpt-4o-image
/api/v1/gpt_4o_image/text_to_image
$0.06 / call Model detail

Verify

Poll until the task reaches a terminal status

POST /api/v1/gpt_4o_image/text_to_image and save the returned Task id.
GET /api/v1/gpt_4o_image/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_4o_image/text_to_image

export RUNAPI_API_KEY=your_api_key

curl -X POST https://runapi.ai/api/v1/gpt_4o_image/text_to_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gpt-4o-image",
  "prompt": "A cobalt vase on white marble.",
  "aspect_ratio": "1:1"
}'
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-4o Image

  • Marketing and product visuals

    Generate campaign images, product shots, and social creatives from a written brief.

  • Batch creative variations

    Produce many versions of a concept in one run to compare styles, layouts, and formats.

  • Editing and inpainting

    Refine an existing image by describing changes to its background, objects, or details where the model offers editing endpoints.

Why Use GPT-4o Image 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-4o Image Questions

What makes GPT-4o Image different from GPT Image?

GPT-4o Image generates images natively within the GPT-4o conversation, using conversational context to inform the image. GPT Image is a standalone generation endpoint.

How does conversational context help?

The model uses the full conversation history to understand what you want — you can iteratively refine images by describing changes in natural language.

How many objects can it handle in one image?

GPT-4o Image handles many distinct objects in a single scene while maintaining compositional coherence and object identity.

Can I edit a previously generated image?

Yes — describe the changes in the conversation and the model modifies the existing image while preserving the rest of the scene.

Is it good for iterative design workflows?

Yes — the conversational interface makes it natural to iterate: generate, review, describe adjustments, and regenerate without rewriting the full prompt.

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-4o Image with OpenClaw

Building with a team?

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

Contact Us