Skip to main content
GPT Image 2 Economy (gpt-image-2-economynomy) is the economy route of GPT Image 2: the same OpenAI model as gpt-image-2, billed per request at a lower price, for cost-sensitive batch jobs that can wait longer. Endpoints, parameters and responses are the same as for the standard model; just set model to gpt-image-2-economynomy. For the per-request routes of GPT Image 2.5 / 2.6 see GPT Image 2.5 Economy and GPT Image 2.6 Economy.

Setup

Endpoints

Parameters

Official parameters not supported yet

They return 400; the model is not called and nothing is charged.

Pricing

Billed per request, not per token, in 1K / 2K / 4K tiers by output size. See the model catalog and the console for current prices. Invalid requests and failed generations are not charged.

Quick start

$DREAMTO_API_KEY is your API Key.

Edit an image

/v1/images/edits takes the images as multipart/form-data files; repeat image[] for several reference images:
cURL

Notes

  • Edits take multipart/form-data file uploads (image[], mask); the newer JSON images / file_id form is not supported yet.
  • As with OpenAI, images are returned as Base64 (data[].b64_json) only; response_format is not supported.
  • Parameters the gateway does not declare (such as response_format) return 400; the model is not called and nothing is charged.
  • Errors use the DreamTo error envelope (see the error examples of each endpoint).