API 레퍼런스
Create a JSON task
Unified JSON task creation for supported image and video tasks. Pass task_type and a params object. Optional webhook_url is stored on the task.
POST
/api/go/b2b/tasks/create요청
| Field | Type | Required | Description |
|---|---|---|---|
task_type | string | Required Yes | Supported task type such as API_TEXT_TO_IMAGE_GPT_IMAGE_2. |
params | object | Required Yes | Task-specific parameters. See the Task params tab. |
context | object | Required No | |
webhook_url | string | Required No | 처리 후 HTTP 2xx를 반환하세요. task_id로 중복을 제거하고 조회 방식도 유지하세요. 콜백 code=0이 생성 성공을 뜻하지는 않습니다. |
context.page_source | string | Required No | Optional caller-side source marker for analytics or debugging. |
응답 구조
| Field | Type | Required | Description |
|---|---|---|---|
task_id | string | Required Yes | Task UUID for polling and result lookup. |
status | string | Required Yes | PENDING / RUNNING / COMPLETED / FAILED / CANCELLED |
queue_position | integer | Required No | Queue position for async tasks. |
generation_params | object | Required No | Normalized task params saved by the backend. |
result | object | Required No | Returned immediately for synchronous tasks that complete during create. |
요청 예제
JSON
{
"task_type": "ANIMA_TEXT_TO_IMAGE",
"params": {
"amount": 1,
"height": 1024,
"prompt": "anime character in a sunlit flower garden, delicate watercolor illustration",
"turbo": true,
"use_aesthetic": true,
"watermark": false,
"width": 1024
}
}