Image request builder
Pick a model, fill in the parameters, and get a runnable request and code as you type. Only the parameters the model supports are listed; limits, enums, and error messages come from the gateway’s validation code.
modelRequiredpromptRequiredMust not be empty (leading and trailing whitespace ignored) · Official limit: 32,000 characterssizeOptionalSides in multiples of 16, each ≤ 3840qualityOptionalDefault auto; passed through as isnOptional1–10 (official range)backgroundOptionalDefault autooutput_formatOptionalDefault pngmoderationOptionalDefault auto; low doesn’t disable safety checksimageOptional1–16 images (official limit)Accepted but has no effect
response_formatAlways returns b64_json; omit it
partial_imagesProgressive image events aren’t supported; omit it
curl https://api.hop-base.com/v1/images/generations \
-H "Authorization: Bearer $HOPBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "Product hero shot on a white background: a stainless steel insulated tumbler, soft studio lighting, centered",
"size": "1024x1024"
}'auto not measured; estimated from the low–high range × 1 (output $30/1M tokens)
Estimated at official prices; actual charge = official price × group multiplier
View this model’s schemaJSON SchemaAll-model indexOpenAPI 3.1
…
Machine-readable contracts
The specs behind the builder are also published as JSON Schema (draft 2020-12) and OpenAPI 3.1. A coding AI can generate and self-check requests against the schema: required fields, types, limits, enums, conditional rules (such as Gemini’s per-tier image count caps), and fields that return 400 are all included; x-hopbase adds available groups, official prices, and data sources.
/spec/models/index.json: Contract index for all image models/openapi.json:POST /v1/images/generationsandPOST /v1/images/edits; request bodies reference each model’s schema
/spec/models/gpt-image-2.json· Open in builder/spec/models/gpt-image-2.5-flare.json· Open in builder/spec/models/gpt-image-2.5-sunburst.json· Open in builder/spec/models/gemini-3.1-flash-image.json· Open in builder/spec/models/gemini-3.1-flash-image-preview.json· Open in builder/spec/models/gemini-3-pro-image.json· Open in builder/spec/models/gemini-3.1-flash-lite-image.json· Open in builder/spec/models/gemini-2.5-flash-image.json· Open in builder/spec/models/seedream-5-0-pro.json· Open in builder/spec/models/seedream-5-0-lite.json· Open in builder/spec/models/seedream-4-5.json· Open in builder
Sources: parameter specs come from spec/openai.json, spec/gemini.json, and spec/seedance.json (exported by the gateway plugins from their validation code) and spec/official.json; prices come from a snapshot of the public pricing endpoint. All costs are estimated at official prices; actual charge = official price × group multiplier.