Skip to main content
POST
/
api
/
openapi
/
submit
curl --request POST \
  --url https://aireiter.com/api/openapi/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gpt_image_2",
    "params": {
      "prompt": "An orange cat sitting on the windowsill watching the sunset, watercolor style",
      "aspect_ratio": "16:9"
    },
    "out_task_id": "my_task_123456"
  }'
{
    "statusCode": 200,
    "message": "",
    "data": {
        "out_task_id": "my_task_123456",
        "status": "pending",
        "estimated_credits": 100,
        "created_at": "2025-12-22T06:03:28.242Z"
    }
}

Documentation Index

Fetch the complete documentation index at: https://docs.aireiter.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
required
All endpoints require authentication using a Bearer Token.Get the API Key:Visit the API Key Management Page to obtain your API Key.Add the following header in the request:
Authorization: Bearer YOUR_API_KEY

Body

model
string
required
Model NameFixed value: "gpt_image_2"
params
object
required
Model Parameters Object
out_task_id
string
required
Initiator Task IDUser-defined task identifier, required

Size × Resolution Mapping Table

aspect_ratio × resolution → Actual Pixels (13 ratios × 3 levels):
aspect_ratio1K2K4K
1:11024×1024 / 1254×12542048×20482880×2880
3:21536×10242048×13603520×2336
2:31024×15361360×20482336×3520
4:31024×7682048×15363312×2480
3:4768×10241536×20482480×3312
5:41280×1024 / 1448×10862560×20483216×2576
4:51024×1280 / 1122×14022048×25602576×3216
16:91536×864 / 1672×9412048×11523840×2160
9:16864×1536 / 941×16721152×20482160×3840
2:12048×1024 / 1774×8872688×13443840×1920
1:21024×2048 / 887×17741344×26881920×3840
21:92016×864 / 1915×8212688×11523840×1648
9:21864×2016 / 821×19151152×26881648×3840
3:2 / 2:3 @ 2K is actually 2048×1360 (approximate ratio, error < 0.5%); 4K now supports all 13 ratios.

Custom Size (size parameter)

When you need precise control over pixel dimensions, use the size parameter instead of the aspect_ratio + resolution combination. Valid range: Total pixels 655,360 ~ 8,294,400 (upstream official limit) Tested effective lower limit: Total pixels ≥ 2,088,960 (approximately 1440×1452 or 2048×1020 equivalent area) Below this lower limit, the upstream does not report an error but silently replaces it with a close proportion size of about 1.57M pixels.

Common size examples

size valueTotal pixelsRecommended use
2048x20484,194,304Square HD
2048x15363,145,7284:3 landscape
1536x20483,145,7283:4 portrait
2048x11522,359,29616:9 landscape
1152x20482,359,2969:16 portrait
3840x21608,294,4004K 16:9 (highest quality)
2688x13443,612,6722:1 wide landscape
Do not pass together with aspect_ratio or resolution, otherwise a 400 will be returned.

Response

out_task_id
string
Initiator task ID, which can be used to query the result
status
string
Initial status, fixed to "pending"
estimated_credits
number
Estimated consumed credits
created_at
string
Creation time (ISO format)
curl --request POST \
  --url https://aireiter.com/api/openapi/submit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "gpt_image_2",
    "params": {
      "prompt": "An orange cat sitting on the windowsill watching the sunset, watercolor style",
      "aspect_ratio": "16:9"
    },
    "out_task_id": "my_task_123456"
  }'
{
    "statusCode": 200,
    "message": "",
    "data": {
        "out_task_id": "my_task_123456",
        "status": "pending",
        "estimated_credits": 100,
        "created_at": "2025-12-22T06:03:28.242Z"
    }
}