OpenAI · Image

Hermes Agent 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 Hermes Agent + GPT Image 2

  • Product photos for listings and catalogs

    Generate product shots in listing-friendly aspect ratios such as 1:1 or 4:5, at up to 4k resolution, for catalogs, marketplaces, and marketing materials.

  • Social media campaign graphics

    Create social visuals with embedded text, brand colors, and consistent styling across a campaign.

  • Cinematic stills for video workflows

    Generate cinematic stills that can serve as first frames for video generation or as standalone editorial illustrations.

Why Use GPT Image 2 Through RunAPI + Hermes Agent

  • 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.

Hermes Agent + GPT Image 2 Questions

Can I use GPT Image 2 in Hermes Agent?

Yes. Hermes Agent calls GPT Image 2 through the RunAPI endpoints shown on this page, with the same RunAPI API key you configured for chat.

Can Hermes Agent edit images with GPT Image 2 instead of ComfyUI?

Yes. Use the edit endpoint with source images and describe the change in natural language, with no workflow graphs, GPU instance, or masks.

Does quality change over repeated editing passes?

It can degrade, with noise or shading artifacts after several passes. Be specific in the first prompt instead of relying on many refinement rounds.

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 Hermes Agent

Building with a team?

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

Contact Us