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.

Public versions and endpoints

Model IDVersionEndpointsStarting priceCatalog
gpt-image-2gpt-image-2
/api/v1/gpt_image_2/text_to_image
/api/v1/gpt_image_2/edit_image
$0.060Model detail

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."
}'

Verify

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.

How it works

  1. 1. Choose a model ID

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

  2. 2. Configure RunAPI

    Set RUNAPI_API_KEY before making the endpoint request.

  3. 3. Verify the result

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

FAQ

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.