Trộn hình ảnh
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/blend: post: summary: Trộn hình ảnh deprecated: false description: >- Tài liệu chính thức: https://docs.midjourney.com/hc/en-us/articles/32635189884557-Blend-Images-on-Discord
Trộn 2–5 hình ảnh thành một hình ảnh mới; cung cấp dữ liệu Base64 cho từng hình ảnh. operationId: mj_submit_blend tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: - name: Authorization in: header description: Khóa API Bearer required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - botType properties: base64Array: type: array items: type: string description: Mảng các chuỗi Base64 của hình ảnh; yêu cầu 2-5 hình ảnh botType: type: string enum: - NIJI_JOURNEY - MID_JOURNEY enumDetails: - value: NIJI_JOURNEY - value: MID_JOURNEY description: Loại bot, mj (mặc định) hoặc niji dimensions: type: string enum: - PORTRAIT - SQUARE - LANDSCAPE enumDetails: - value: CHÂN DUNG - value: HÌNH VUÔNG - value: KHỔ NGANG description: 'Tỷ lệ khung hình: DỌC (2:3); VUÔNG (1:1); NGANG (3:2)' notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống quality: type: string description: >- Chất lượng của hình ảnh sẽ được tạo. `hd` tạo ra hình ảnh có chi tiết sắc nét hơn và tính nhất quán cao hơn. Tham số này chỉ hỗ trợ `dall-e-3`. state: type: string description: Tham số chuyển tiếp tùy chỉnh refName: PostMjSubmitBlendRequest x-apifox-orders: - base64Array - botType - dimensions - notifyHook - quality - state x-apidog-orders: - base64Array - botType - dimensions - notifyHook - quality - state examples: blend_single: value: base64Array: - data:image/png;base64,xxx1 - data:image/png;base64,xxx2 botType: MID_JOURNEY dimensions: HÌNH VUÔNG notifyHook: '' state: '' summary: blend_single description: Gửi tác vụ Blend 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: PostMjSubmitBlendResponse 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/Gửi tác vụ x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208867-runcomponents: schemas: {} securitySchemes: {}servers: - url: https://api.openaihub.net description: Prod Envsecurity: []