Thực thi hành động
API origin:
https://api.openaihub.net. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.
OpenAPI Specification
Phần tiêu đề “OpenAPI Specification”openapi: 3.0.1info: title: '' description: '' version: 1.0.0paths: /mj/submit/action: post: summary: Thực thi hành động deprecated: false description: >- Thực hiện các thao tác Tăng độ phân giải, Biến thể, Tạo lại, Dịch chuyển khung hình và các thao tác khác trên một tác vụ hiện có. operationId: mj_sample tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - Midjourney parameters: [] requestBody: content: application/json: schema: type: object required: - customId - taskId properties: chooseSameChannel: type: boolean description: >- Có chọn một tài khoản từ cùng kênh Discord hay không; theo mặc định, chỉ tài khoản được liên kết với tác vụ mới được sử dụng customId: type: string description: Mã định danh hành động notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống state: type: string description: Tham số chuyển tiếp tùy chỉnh taskId: type: string description: Mã tác vụ refName: MjSampleRequest x-apifox-orders: - chooseSameChannel - customId - notifyHook - state - taskId x-apidog-orders: - chooseSameChannel - customId - notifyHook - state - taskId examples: action_single: value: botType: MID_JOURNEY customId: MJ::JOB::upsample::1::xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx taskId: '1743326750223591' summary: action_single description: Thực thi hành động action action_single_2: value: chooseSameChannel: true customId: MJ::JOB::upsample::2::3dbbd469-36af-4a0f-8f02-df6c579e7011 notifyHook: '' state: '' taskId: '14001934816969359' summary: action_single_2 description: Thực thi hành động responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer description: Thời gian tạo (dấu thời gian Unix) data: type: array items: type: object required: - url properties: url: type: string description: URL tài nguyên x-apifox-orders: - url x-apidog-orders: - url description: >- Phần dữ liệu (thường là Base64 hoặc một đối tượng có cấu trúc) refName: MjSampleResponse x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1589478378 data: - url: https://... - url: https://... headers: {} x-apidog-name: '' '400': description: Yêu cầu không hợp lệ hoặc xác thực thất bại content: application/json: schema: type: object required: - error properties: error: type: object required: - message - type properties: message: type: string description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu) type: type: string description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error examples: - new_api_error x-apifox-orders: - message - type x-apidog-orders: - message - type refName: NewApiError x-apifox-orders: - error x-apidog-orders: - error examples: example: summary: example value: error: message: >- Yêu cầu không hợp lệ (mã yêu cầu: 20260805120000123456789AbCdEfGh) type: new_api_error headers: {} x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại '401': description: Khóa API bị thiếu hoặc không hợp lệ content: application/json: schema: type: object required: - error properties: error: type: object required: - message - type properties: message: type: string description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu) type: type: string description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error examples: - new_api_error x-apifox-orders: - message - type x-apidog-orders: - message - type refName: NewApiError x-apifox-orders: - error x-apidog-orders: - error examples: example: summary: example value: error: message: >- Mã thông báo không hợp lệ (request id: 20260805120000123456789AbCdEfGh) type: new_api_error headers: {} x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208860-runcomponents: schemas: {} securitySchemes: {}servers: - url: https://api.openaihub.net description: Prod Envsecurity: []