XPlor3
Model reference

GPT Image 2

Second-generation OpenAI visual model with in-image typography, wide aspect ratios, and up to 4K output.

PropertyValue
modelSluggpt-image-2
KindImage
MakerOpenAI
Copies per request (variations)1 to 5
How the cost is countedper copy
Over MCPyes, with the generate tool

Credit amounts are left out because they change. The lowest price is creditCost on GET /v1/models, and POST /v1/jobs answers with the exact creditCost of a request.

input fields

Send the fields below inside the input object. A field you leave out takes its Default. Unknown field names are dropped without an error, so check the spelling if a setting seems to have no effect.

FieldTypeRequiredDefaultRules
promptstringyes–Up to 20,000 characters
reference_imagesstring[] (image upload ids)––Reference images. Up to 16 files
aspect_ratiostring (one of)–autoauto, 1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:21
resolutionstring (one of)–1K1K, 2K, 4K
backgroundstring (one of)–autoauto, opaque, transparent

Rules by setting

This model runs a different version depending on what you send. The rules below are checked before any credits move; a request that breaks one is refused with 400 and a message naming the field.

Every request

  • Refused combinations: resolution = 2K with aspect_ratio = auto; resolution = 4K with aspect_ratio = auto; resolution = 2K with aspect_ratio = 5:4; resolution = 2K with aspect_ratio = 4:5; resolution = 2K with aspect_ratio = 3:1; resolution = 2K with aspect_ratio = 1:3; resolution = 2K with aspect_ratio = 9:21; resolution = 4K with aspect_ratio = 1:1; resolution = 4K with aspect_ratio = 3:1; resolution = 4K with aspect_ratio = 1:3; resolution = 4K with aspect_ratio = 9:21.

Without a reference file and resolution = 4K

  • background is not used; any value sent is ignored.
  • Takes no files in reference_images; a request that fills one is refused.

Without a reference file and resolution = 2K

  • background is not used; any value sent is ignored.
  • Takes no files in reference_images; a request that fills one is refused.

Without a reference file and resolution = 1K

  • Takes no files in reference_images; a request that fills one is refused.

With a reference file and resolution = 4K

  • background is not used; any value sent is ignored.
  • reference_images: required; up to 16 files.

With a reference file and resolution = 2K

  • background is not used; any value sent is ignored.
  • reference_images: required; up to 16 files.

With a reference file and resolution = 1K

  • reference_images: required; up to 16 files.

Example request

POST /v1/jobs
{
  "modelSlug": "gpt-image-2",
  "input": {
    "prompt": "Product photo of white running shoes on a river stone, soft side light in the morning"
  }
}

On this page