Vẽ (wenshengtu/tushetu)
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/imagine: post: summary: Vẽ (wenshengtu/tushetu) deprecated: false description: >- Tài liệu chính thức: https://docs.midjourney.com/hc/en-us/articles/32023408776205-Prompt-Basics
Tạo hình ảnh từ lời nhắc văn bản; hỗ trợ hình ảnh tham chiếu (base64Array) và nhiều loại bot. operationId: mj_submit_imagine 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: - prompt properties: accountFilter: type: object properties: channelId: type: string description: ID kênh description: Tiêu chí lọc tài khoản (tùy chọn) x-apifox-orders: - channelId x-apidog-orders: - channelId base64Array: type: array items: type: string description: >- Danh sách chuỗi Base64 của hình ảnh tham chiếu, có định dạng `data:image/png;base64,...`, tối đa 5 hình ảnh botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY description: Loại bot; NIJI phù hợp với phong cách anime notifyHook: type: string description: URL gọi lại khi tác vụ hoàn tất (Webhook) prompt: type: string description: >- Câu lệnh mô tả hình ảnh; hỗ trợ các tham số Midjourney gốc (ví dụ: `--ar 16:9 --v 6.1`) examples: - >- một chú mèo dễ thương đang ngồi trên bệ cửa sổ --ar 1:1 --v 6.1 state: type: string description: >- Trường trạng thái được truyền nguyên vẹn và trả về không thay đổi trong hàm gọi lại refName: PostMjSubmitImagineRequest x-apifox-orders: - accountFilter - base64Array - botType - notifyHook - prompt - state x-apidog-orders: - accountFilter - base64Array - botType - notifyHook - prompt - state examples: imagine_single: value: base64Array: [] botType: MID_JOURNEY notifyHook: '' prompt: cat state: '' summary: imagine_single description: Gửi tác vụ Imagine imagine_single_2: value: base64Array: [] botType: MID_JOURNEY notifyHook: '' prompt: >- một chú ngựa trắng oai vệ đang chạy trong khu rừng phủ sương --ar 16:9 --v 6.1 state: '' summary: imagine_single_2 description: Nộp bài tập Imagine responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: Gửi thành công properties: discordChannelId: '1300842676874379336' discordInstanceId: '1572398367386955776' result: '1730621718151844' 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-45208864-runcomponents: schemas: {} securitySchemes: {}servers: - url: https://api.openaihub.net description: Prod Envsecurity: []