메인 콘텐츠로 건너뛰기
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": "한 마리의 주황색 고양이가 창턱에 앉아 석양을 바라보는 수채화 스타일",
      "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
필수
모든 API는 Bearer Token을 사용하여 인증해야 합니다.API Key 받기:API Key 관리 페이지에 접속하여 API Key를 받으세요.요청 헤더에 다음을 추가하세요:
Authorization: Bearer YOUR_API_KEY

Body

model
string
필수
모델 이름고정 값: "gpt_image_2"
params
object
필수
모델 파라미터 객체
out_task_id
string
필수
요청자 작업 ID사용자 정의 작업 식별자, 필수

크기 × 해상도 매핑 테이블

aspect_ratio × resolution → 실제 픽셀 (13 비율 × 3 단계):
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는 실제로 2048×1360 (근사 비율, 오차 < 0.5%); 4K는 이제 모든 13개 비율을 지원합니다.

사용자 정의 크기(size 매개변수)

픽셀 크기를 정확히 제어해야 할 때, aspect_ratio + resolution 조합 대신 size 매개변수를 사용할 수 있습니다. 유효 범위: 총 픽셀 655,360 ~ 8,294,400(상위 공식 제한) 실제 유효 하한: 총 픽셀 ≥ 2,088,960(약 1440×1452 또는 2048×1020 동등 면적) 이 하한 미만에서는 상위에서 오류를 반환하지 않지만, 조용히 약 1.57M 픽셀 크기의 비슷한 비율로 대체됩니다.

자주 사용하는 size 예시

size 값총 픽셀추천 용도
2048x20484,194,304정사각형 고해상도
2048x15363,145,7284:3 가로형
1536x20483,145,7283:4 세로형
2048x11522,359,29616:9 가로형
1152x20482,359,2969:16 세로형
3840x21608,294,4004K 16:9(최상위)
2688x13443,612,6722:1 와이드 가로형
aspect_ratioresolution과 동시에 전달하지 마십시오, 그렇지 않으면 400을 반환합니다.

Response

out_task_id
string
요청자 작업 ID로 결과 조회에 사용할 수 있음
status
string
초기 상태, 고정 값 "pending"
estimated_credits
number
예상 소모 크레딧
created_at
string
생성 시간(ISO 형식)
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": "한 마리의 주황색 고양이가 창턱에 앉아 석양을 바라보는 수채화 스타일",
      "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"
    }
}