API Hop

Documentation

API Hop Docs

GPT Image 2.6

GPT Image 2.6 Flare and Sunburst integration contract.

POSThttps://api.apihop.ai/openai/v1/images/generations

Integration is prepared for gpt-image-2.6-flare and gpt-image-2.6-sunburst. APIMart documentation still labels this upstream API an integration preview. Availability depends on your current API key and gateway activation; check GET https://api.apihop.ai/v1/models.

Request

http
POST https://api.apihop.ai/openai/v1/images/generations
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
json
{
  "model": "gpt-image-2.6-flare",
  "prompt": "A red ceramic cup on a white table.",
  "size": "1:1",
  "resolution": "1k",
  "quality": "low",
  "output_format": "png",
  "n": 1
}

Parameters

ParameterValues
modelgpt-image-2.6-flare, gpt-image-2.6-sunburst
promptRequired text
n1–4
sizeauto, aspect ratio, WIDTHxHEIGHT
resolution1k, 2k, 4k
qualityauto, low, medium, high, xhigh, max
image_urls0–16 HTTP(S) URLs
output_formatpng, jpeg, webp
output_compression0–100; JPEG/WebP
backgroundauto, opaque, transparent; PNG/WebP
complexitylow, medium, high
safety_identifierString, maximum 128 characters
streamfalse (JSON), true (SSE)

Pixel dimensions must be multiples of 16, with each side at most 3840, an aspect ratio at most 3:1, and 655,360–8,294,400 total pixels. Reference editing uses image_urls with public URLs on the same endpoint. This initial integration excludes base64 references, multipart uploads, masks, markup, GIF, SVG, animation, and /images/edits.

Response

The connection waits for completion. JSON returns final URLs in data[].url and available token usage. SSE completes with image_generation.completed and [DONE]; partial image previews are not guaranteed. Clients do not poll the upstream task. Do not resubmit requests whose completion status is unknown.

Pricing

Billing separates text input, cached text input, image input, cached image input, and image output tokens. Check the current catalog price; temporary reservations are reconciled after completion. Published APIMart reference prices do not prove account costs or live availability.