메인 콘텐츠로 건너뛰기
POST
/
mj
/
submit
/
blend
Blend (image -> image)
curl --request POST \
  --url https://api.cometapi.com/mj/submit/blend \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "base64Array": [
    "data:image/png;base64,xxx1",
    "data:image/png;base64,xxx2"
  ]
}
'
{
  "code": 123,
  "description": "<string>",
  "properties": {},
  "result": 123
}
이 엔드포인트를 사용하면 2~5개의 원본 이미지를 새로운 Midjourney 구도로 블렌드할 수 있습니다. 직접 진입하는 엔드포인트이므로 사전 imagine task가 필요하지 않습니다.

호출 전에 확인할 사항

  • 2~5개의 원본 이미지를 준비하세요
  • 첫 테스트는 작게 시작하고, 필요하지 않다면 추가 account-routing 옵션은 건너뛰세요
  • 블렌딩은 여전히 비동기 방식이므로 반환된 task id를 저장하세요

작업 흐름

1

블렌드 작업 제출

블렌드 엔드포인트를 통해 원본 이미지를 전송하고 반환된 task id를 저장하세요.
2

작업 폴링

task가 종료 상태에 도달할 때까지 단일 작업 가져오기를 사용하세요.
3

결과에서 계속 진행

액션 버튼이 표시되면 업스케일, variation 또는 기타 후속 단계를 위해 Action을 사용하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

본문

application/json
base64Array
string[]
필수

Two or more base64-encoded images to blend. Each item should be a data URI such as data:image/png;base64,xxx.

dimensions
enum<string>

Output aspect ratio.

사용 가능한 옵션:
PORTRAIT,
SQUARE,
LANDSCAPE
notifyHook
string

Webhook URL to receive task status updates. Falls back to your account-level webhook if omitted.

state
string

Custom state string. Returned as-is in the task result and webhook callback for your own tracking.

botType
enum<string>

Bot type to use. MID_JOURNEY for Midjourney (default), NIJI_JOURNEY for Niji.

사용 가능한 옵션:
MID_JOURNEY,
NIJI_JOURNEY

응답

200 - application/json

Success

code
integer
필수

Status code

description
string
필수

Human-readable description message corresponding to the status code

properties
object
필수

Additional properties or metadata

result
integer
필수

Returned task ID