# "Tải ảnh lên" Nguồn: https://docs.openaihub.net/api-45208854/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/upload-discord-images: post: summary: Tải ảnh lên deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập trực tiếp nội dung từ đường dẫn, nhưng tôi sẽ dịch sang tiếng Việt và giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON cùng định dạng. operationId: mj_submit_upload_discord_images tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - Midjourney parameters: - name: content-type in: header description: Content-Type của phần thân yêu cầu, thường là application/json required: true example: application/json schema: type: string - 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: - base64Array properties: base64Array: type: array items: type: string description: Mảng các chuỗi Base64 của hình ảnh đầu vào x-apifox-orders: - base64Array x-apidog-orders: - base64Array examples: example_single: value: base64Array: - data:image/png;base64,iVBORw0KGgo... summary: example_single description: Tải ảnh lên responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: thành công result: '1720000000000000' 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 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-45208854-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Gửi tác vụ rút gọn" Nguồn: https://docs.openaihub.net/api-45208855/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/shorten: get: summary: Gửi tác vụ rút gọn deprecated: false description: '' operationId: get-mj-submit-shorten tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - mj parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY enumDetails: - value: MID_JOURNEY - value: NIJI_JOURNEY description: 'loại bot: mj (mặc định) hoặc niji' notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống prompt: type: string description: lời nhắc để phân tích / cô đọng state: 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`. x-apifox-orders: - botType - notifyHook - prompt - state x-apidog-orders: - botType - notifyHook - prompt - state examples: {} responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: thành công result: '1720000000000000' headers: {} x-apidog-name: Được '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-45208855-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Gửi tác vụ Imagine" Nguồn: https://docs.openaihub.net/api-45208856/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/imagine: post: summary: Gửi tác vụ Imagine 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 - 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 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208856-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy trạng thái tác vụ theo ID" Nguồn: https://docs.openaihub.net/api-45208857/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/task/{id}/fetch: get: summary: Lấy trạng thái tác vụ theo ID deprecated: false description: >- Truy vấn trạng thái/kết quả hiện tại của một tác vụ được gửi qua `POST /mj/submit/imagine`, `/mj/submit/action`, v.v. Khi `status` là `SUCCESS`, `imageUrl` hợp lệ và `buttons` liệt kê các thao tác tiếp theo khả dụng (`customId`). operationId: mj_task_fetch tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - Midjourney parameters: - name: id in: path description: Mã tác vụ required: true example: '1743326750223591' schema: type: string - name: Authorization in: header description: Khóa API Bearer required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: {} examples: {} responses: '200': description: '' content: application/json: schema: type: object required: - id - action - customId - botType - prompt - promptEn - description - state - submitTime - startTime - finishTime - imageUrl - status - progress - failReason - buttons - maskBase64 - properties properties: action: type: string description: Loại hành động botType: type: string description: Loại bot buttons: type: array items: type: object required: - customId - emoji - label - type - style properties: customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh emoji: type: string description: Định danh biểu tượng cảm xúc label: type: string description: Nhãn hiển thị style: type: integer description: Tham số phong cách type: type: integer description: Kiểu x-apifox-orders: - customId - emoji - label - style - type x-apidog-orders: - customId - emoji - label - style - type description: Danh sách các nút / hành động có thể thực hiện tiếp theo customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh description: type: string description: Mô tả failReason: type: string description: Ly do that bai finishTime: type: integer description: Thời gian hoàn thành id: type: string description: ID tài nguyên hoặc tác vụ imageUrl: type: string description: URL hình ảnh kết quả maskBase64: type: string description: Base64 của ảnh mặt nạ progress: type: string description: Tiến trình (0-100 hoặc 0-1, tùy thuộc vào nền tảng) prompt: type: string description: Lời nhắc văn bản promptEn: type: string description: Lời nhắc bằng tiếng Anh properties: type: object required: - finalPrompt - finalZhPrompt properties: finalPrompt: type: string description: Lời nhắc cuối cùng thực sự được sử dụng finalZhPrompt: type: string description: Lời nhắc cuối cùng bằng tiếng Trung description: Thuộc tính mở rộng x-apifox-orders: - finalPrompt - finalZhPrompt x-apidog-orders: - finalPrompt - finalZhPrompt startTime: type: integer description: Thời gian bắt đầu state: type: string description: Trạng thái chuyển tiếp tùy chỉnh status: type: string description: Trạng thái submitTime: type: integer description: Thời gian gửi refName: GetMjTaskFetchResponse x-apifox-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime x-apidog-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime examples: '1': summary: '1' value: '[long payload omitted: 2,247 units]' 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-45208857-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Truy vấn các tác vụ dựa trên danh sách ID" Nguồn: https://docs.openaihub.net/api-45208858/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/task/list-by-condition: post: summary: Truy vấn các tác vụ dựa trên danh sách ID deprecated: false description: Truy vấn hàng loạt nhiều tác vụ theo danh sách ID. operationId: mj_task_list_by_condition tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - 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: - ids properties: ids: type: array items: type: string description: Danh sách ID x-apifox-orders: - ids x-apidog-orders: - ids examples: example_single: value: ids: - '1743326750223591' - '1743326750223592' summary: example_single description: Danh sách tác vụ truy vấn theo lô id_single: value: ids: - '1743326750223591' summary: id_single description: Truy vấn các tác vụ dựa trên danh sách ID responses: '200': description: thành công content: application/json: schema: type: object properties: code: type: integer description: Mã trạng thái nghiệp vụ data: type: array items: type: object properties: action: type: string description: >- Loại hành động (TƯỞNG TƯỢNG / NÂNG ĐỘ PHÂN GIẢI / BIẾN THỂ, v.v.) buttons: type: array items: type: object properties: customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh emoji: type: string description: Định danh biểu tượng cảm xúc label: type: string description: Nhãn hiển thị style: type: integer description: Tham số phong cách type: type: integer description: Kiểu x-apifox-orders: - customId - emoji - label - style - type x-apidog-orders: - customId - emoji - label - style - type description: >- Danh sách các nút thao tác (cho các hành động tiếp theo) description: type: string description: Mô tả tác vụ failReason: type: string description: Ly do that bai finishTime: type: integer description: Dấu thời gian hoàn tất (ms) id: type: string description: Mã tác vụ imageUrl: type: string description: URL ảnh được tạo progress: type: string description: 'Phần trăm tiến độ (ví dụ: `25%`, `50%`)' prompt: type: string description: Lời nhắc đã dùng promptEn: type: string description: Lời nhắc bằng tiếng Anh (do MJ dịch) startTime: type: integer description: Mốc thời gian bắt đầu (ms) state: type: string description: Trường trạng thái được truyền nguyên vẹn status: type: string enum: - NOT_START - SUBMITTED - IN_PROGRESS - FAILURE - SUCCESS description: Trạng thái tác vụ submitTime: type: integer description: Gửi dấu thời gian (ms) refName: MjTask x-apifox-orders: - action - buttons - description - failReason - finishTime - id - imageUrl - progress - prompt - promptEn - startTime - state - status - submitTime x-apidog-orders: - action - buttons - description - failReason - finishTime - id - imageUrl - progress - prompt - promptEn - startTime - state - status - submitTime description: >- Phần dữ liệu (thường là Base64 hoặc một đối tượng có cấu trúc) refName: PostMjTaskListByConditionResponse x-apifox-orders: - code - data x-apidog-orders: - code - data examples: example: summary: example value: code: 0 data: - action: chuỗi buttons: - customId: chuỗi emoji: chuỗi label: chuỗi style: 0 type: 0 description: chuỗi failReason: chuỗi finishTime: 0 id: string imageUrl: chuỗi progress: chuỗi prompt: chuỗi promptEn: chuỗi startTime: 0 state: chuỗi status: NOT_START submitTime: 0 headers: {} x-apidog-name: thành công '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-45208858-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy hạt giống hình ảnh" Nguồn: https://docs.openaihub.net/api-45208859/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/task/{id}/image-seed: get: summary: Lấy hạt giống hình ảnh deprecated: false description: >- Lấy hạt giống (hạt giống ngẫu nhiên) của hình ảnh được tạo bởi tác vụ được chỉ định; có thể dùng để tái tạo hoặc tinh chỉnh quá trình tạo với cùng hạt giống. operationId: mj_task_image_seed tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - Midjourney parameters: - name: id in: path description: ID tài nguyên / tác vụ trong đường dẫn required: true example: '' schema: type: string - name: Authorization in: header description: Khóa API Bearer required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: ids: type: array items: type: string description: Danh sách ID examples: - - '1231234123' - '456456456' example: - '1231234123' - '456456456' examples: {} responses: '200': description: '' content: application/json: schema: type: object required: - id - action - customId - botType - prompt - promptEn - description - state - submitTime - startTime - finishTime - imageUrl - status - progress - failReason - buttons - maskBase64 - properties properties: action: type: string description: Loại hành động botType: type: string description: Loại bot buttons: type: array items: type: object required: - customId - emoji - label - type - style properties: customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh emoji: type: string description: Định danh biểu tượng cảm xúc label: type: string description: Nhãn hiển thị style: type: integer description: Tham số phong cách type: type: integer description: Kiểu x-apifox-orders: - customId - emoji - label - style - type x-apidog-orders: - customId - emoji - label - style - type description: Danh sách các nút / hành động có thể thực hiện tiếp theo customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh description: type: string description: Mô tả failReason: type: string description: Ly do that bai finishTime: type: integer description: Thời gian hoàn thành id: type: string description: ID tài nguyên hoặc tác vụ imageUrl: type: string description: URL hình ảnh kết quả maskBase64: type: string description: Base64 của ảnh mặt nạ progress: type: string description: Tiến trình (0-100 hoặc 0-1, tùy thuộc vào nền tảng) prompt: type: string description: Lời nhắc văn bản promptEn: type: string description: Lời nhắc bằng tiếng Anh properties: type: object required: - finalPrompt - finalZhPrompt properties: finalPrompt: type: string description: Lời nhắc cuối cùng thực sự được sử dụng finalZhPrompt: type: string description: Lời nhắc cuối cùng bằng tiếng Trung description: Thuộc tính mở rộng x-apifox-orders: - finalPrompt - finalZhPrompt x-apidog-orders: - finalPrompt - finalZhPrompt startTime: type: integer description: Thời gian bắt đầu state: type: string description: Trạng thái chuyển tiếp tùy chỉnh status: type: string description: Trạng thái submitTime: type: integer description: Thời gian gửi refName: GetMjTaskIdImageSeedResponse x-apifox-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime x-apidog-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime examples: example: summary: example value: '[long payload omitted: 2,247 units]' 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-45208859-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Thực thi hành động" Nguồn: https://docs.openaihub.net/api-45208860/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /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-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Gửi tác vụ Blend" Nguồn: https://docs.openaihub.net/api-45208861/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/blend: post: summary: Gửi tác vụ Blend 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 - 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 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208861-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Gửi tác vụ Mô tả" Nguồn: https://docs.openaihub.net/api-45208862/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/describe: post: summary: Gửi tác vụ Mô tả deprecated: false description: >- Tài liệu chính thức: https://docs.midjourney.com/hc/en-us/articles/32497889043981-Describe Phân tích một hình ảnh và trả về bốn mô tả dạng văn bản (prompt ngược) để dùng với imagine sau này. operationId: mj_submit_describe tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - 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: base64: type: string description: >- Dữ liệu ảnh Base64 được dùng cho tác vụ Describe, theo định dạng `data:image/png;base64,`. botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY enumDetails: - value: MID_JOURNEY - value: NIJI_JOURNEY description: Loại bot, mj (mặc định) hoặc niji notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống state: 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`. refName: PostMjSubmitDescribeRequest x-apifox-orders: - base64 - botType - notifyHook - state x-apidog-orders: - base64 - botType - notifyHook - state examples: describe_single: value: base64: data:image/png;base64,iVBORw0KGgo... botType: MID_JOURNEY notifyHook: '' state: '' summary: describe_single description: Gửi tác vụ Mô tả describe_single_2: value: base64: data:image/png;base64,iVBORw0KGgo... botType: MID_JOURNEY summary: describe_single_2 description: Gửi tác vụ Mô tả 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: PostMjSubmitDescribeResponse 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-45208862-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Hộp thoại gửi" Nguồn: https://docs.openaihub.net/api-45208863/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/modal: post: summary: Hộp thoại gửi deprecated: false description: >- Thực hiện tô bù cục bộ trên một vùng cụ thể (Biến đổi vùng / Tô bù); bắt buộc phải có mặt nạ. operationId: mj_submit_modal tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney - 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: - taskId properties: botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY description: Loại bot maskBase64: type: string description: Ảnh mặt nạ Base64 (các vùng màu trắng là vùng được vẽ lại) notifyHook: type: string description: URL gọi lại prompt: type: string description: >- Lời nhắc mới để vẽ lại cục bộ (không bắt buộc; để trống để giữ nguyên lời nhắc ban đầu) state: type: string description: Trạng thái chuyển tiếp tùy chỉnh taskId: type: string description: ID tác vụ gốc refName: PostMjSubmitModalRequest x-apifox-orders: - botType - maskBase64 - notifyHook - prompt - state - taskId x-apidog-orders: - botType - maskBase64 - notifyHook - prompt - state - taskId examples: modal_single: value: maskBase64: '' prompt: '' taskId: '14001934816969359' summary: modal_single description: Hộp thoại gửi 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: PostMjSubmitModalResponse 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-45208863-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Vẽ (wenshengtu/tushetu)" Nguồn: https://docs.openaihub.net/api-45208864/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /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-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Thực hiện các thao tác (thu phóng/biến thể/di chuyển/vẽ lại, v.v.)" Nguồn: https://docs.openaihub.net/api-45208865/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/action: post: summary: Thực hiện các thao tác (thu phóng/biến thể/di chuyển/vẽ lại, v.v.) 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/Gửi tác vụ - 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/Gửi tác vụ x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208865-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Xác nhận cửa sổ (bước thứ hai sau khi thao tác trả về mã:21)" Nguồn: https://docs.openaihub.net/api-45208866/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/modal: post: summary: Xác nhận cửa sổ (bước thứ hai sau khi thao tác trả về mã:21) deprecated: false description: >- Thực hiện tô bù cục bộ trên một vùng cụ thể (Biến đổi vùng / Tô bù); bắt buộc phải có mặt nạ. operationId: mj_submit_modal 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: - taskId properties: botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY description: Loại bot maskBase64: type: string description: Ảnh mặt nạ Base64 (các vùng màu trắng là vùng được vẽ lại) notifyHook: type: string description: URL gọi lại prompt: type: string description: >- Lời nhắc mới để vẽ lại cục bộ (không bắt buộc; để trống để giữ nguyên lời nhắc ban đầu) state: type: string description: Trạng thái chuyển tiếp tùy chỉnh taskId: type: string description: ID tác vụ gốc refName: PostMjSubmitModalRequest x-apifox-orders: - botType - maskBase64 - notifyHook - prompt - state - taskId x-apidog-orders: - botType - maskBase64 - notifyHook - prompt - state - taskId examples: modal_single: value: maskBase64: '' prompt: '' taskId: '14001934816969359' summary: modal_single description: Hộp thoại gửi 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: PostMjSubmitModalResponse 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-45208866-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Trộn hình ảnh" Nguồn: https://docs.openaihub.net/api-45208867/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /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-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Hình ảnh và văn bản (các từ gợi ý được suy ngược)" Nguồn: https://docs.openaihub.net/api-45208868/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/describe: post: summary: Hình ảnh và văn bản (các từ gợi ý được suy ngược) deprecated: false description: >- Tài liệu chính thức: https://docs.midjourney.com/hc/en-us/articles/32497889043981-Describe Phân tích một hình ảnh và trả về bốn mô tả dạng văn bản (prompt ngược) để dùng với imagine sau này. operationId: mj_submit_describe 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: base64: type: string description: >- Dữ liệu ảnh Base64 được dùng cho tác vụ Describe, theo định dạng `data:image/png;base64,`. botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY enumDetails: - value: MID_JOURNEY - value: NIJI_JOURNEY description: Loại bot, mj (mặc định) hoặc niji notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống state: 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`. refName: PostMjSubmitDescribeRequest x-apifox-orders: - base64 - botType - notifyHook - state x-apidog-orders: - base64 - botType - notifyHook - state examples: describe_single: value: base64: data:image/png;base64,iVBORw0KGgo... botType: MID_JOURNEY notifyHook: '' state: '' summary: describe_single description: Gửi tác vụ Mô tả describe_single_2: value: base64: data:image/png;base64,iVBORw0KGgo... botType: MID_JOURNEY summary: describe_single_2 description: Gửi tác vụ Mô tả 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: PostMjSubmitDescribeResponse 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-45208868-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Phân tích từ ngữ trong lời nhắc (không có kênh)" Nguồn: https://docs.openaihub.net/api-45208869/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/shorten: post: summary: Phân tích từ ngữ trong lời nhắc (không có kênh) deprecated: false description: >- Phân tích một lời nhắc và trả về phiên bản rút gọn để tối ưu hóa các lời nhắc dài. operationId: mj_submit_shorten tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: botType: type: string enum: - MID_JOURNEY - NIJI_JOURNEY description: Loại bot notifyHook: type: string description: URL gọi lại prompt: type: string description: Lời nhắc cần rút gọn state: type: string description: Trạng thái chuyển tiếp tùy chỉnh refName: PostMjSubmitShortenRequest x-apifox-orders: - botType - notifyHook - prompt - state x-apidog-orders: - botType - notifyHook - prompt - state examples: shorten_single: value: botType: MID_JOURNEY prompt: >- một chú ngựa trắng vô cùng xinh đẹp và oai vệ với bờm dài tung bay, đang phi nước đại xuyên qua một khu rừng huyền bí đầy mê hoặc, nơi những tia nắng vàng xuyên qua các cây cổ thụ cao vút summary: shorten_single description: Gửi tác vụ Shorten responses: '200': description: thành công content: application/json: schema: type: object properties: code: type: integer description: >- Mã trạng thái: 1=đã gửi, 21=đang chờ, 22=đã tồn tại, 24=tham số không hợp lệ examples: - 1 description: type: string description: Mô tả trạng thái examples: - Gửi thành công properties: type: object description: Thuộc tính mở rộng x-apidog-orders: [] result: type: string description: Mã tác vụ examples: - '1743326750223591' refName: MjSubmitResponse x-apifox-orders: - code - description - properties - result x-apidog-orders: - code - description - properties - result examples: example: summary: example value: code: 1 description: Gửi thành công properties: {} result: '1743326750223591' headers: {} x-apidog-name: thành công '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-45208869-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Thay đổi khuôn mặt (chức năng phiên bản nâng cao) (không có kênh)" Nguồn: https://docs.openaihub.net/api-45208870/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/insight-face/swap: post: summary: Thay đổi khuôn mặt (chức năng phiên bản nâng cao) (không có kênh) deprecated: false description: Thay khuôn mặt trong ảnh đích bằng khuôn mặt từ ảnh nguồn. operationId: mj_insight_face_swap tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: [] requestBody: content: application/json: schema: type: object required: - sourceBase64 - targetBase64 properties: notifyHook: type: string description: URL gọi lại sourceBase64: type: string description: >- Hình ảnh khuôn mặt nguồn dạng Base64 (hình ảnh cung cấp khuôn mặt) state: type: string description: Trạng thái chuyển tiếp tùy chỉnh targetBase64: type: string description: Ảnh đích dạng Base64 (ảnh có khuôn mặt sẽ được thay thế) refName: PostMjInsightFaceSwapRequest x-apifox-orders: - notifyHook - sourceBase64 - state - targetBase64 x-apidog-orders: - notifyHook - sourceBase64 - state - targetBase64 examples: {} responses: '200': description: thành công content: application/json: schema: type: object properties: code: type: integer description: >- Mã trạng thái: 1=đã gửi, 21=đang chờ, 22=đã tồn tại, 24=tham số không hợp lệ examples: - 1 description: type: string description: Mô tả trạng thái examples: - Gửi thành công properties: type: object description: Thuộc tính mở rộng x-apidog-orders: [] result: type: string description: Mã tác vụ examples: - '1743326750223591' refName: MjSubmitResponse x-apifox-orders: - code - description - properties - result x-apidog-orders: - code - description - properties - result examples: example: summary: example value: code: 1 description: Gửi thành công properties: {} result: '1743326750223591' headers: {} x-apidog-name: thành công '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-45208870-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa hình ảnh (phiên bản nâng cao)" Nguồn: https://docs.openaihub.net/api-45208871/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/edits: post: summary: Chỉnh sửa hình ảnh (phiên bản nâng cao) deprecated: false description: >- Chỉnh sửa một vùng được che trên hình ảnh hiện có; có thể tùy chọn hướng dẫn bằng lời nhắc. operationId: mj_submit_edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: [] requestBody: content: application/json: schema: type: object required: - taskId - prompt properties: maskBase64: type: string description: Base64 của ảnh mặt nạ (các vùng màu trắng là vùng chỉnh sửa) notifyHook: type: string description: URL gọi lại prompt: type: string description: Lời nhắc mới cho vùng đã chỉnh sửa state: type: string description: Trạng thái chuyển tiếp tùy chỉnh taskId: type: string description: ID tác vụ gốc refName: PostMjSubmitEditsRequest x-apifox-orders: - maskBase64 - notifyHook - prompt - state - taskId x-apidog-orders: - maskBase64 - notifyHook - prompt - state - taskId examples: {} responses: '200': description: thành công content: application/json: schema: type: object properties: code: type: integer description: >- Mã trạng thái: 1=đã gửi, 21=đang chờ, 22=đã tồn tại, 24=tham số không hợp lệ examples: - 1 description: type: string description: Mô tả trạng thái examples: - Gửi thành công properties: type: object description: Thuộc tính mở rộng x-apidog-orders: [] result: type: string description: Mã tác vụ examples: - '1743326750223591' refName: MjSubmitResponse x-apifox-orders: - code - description - properties - result x-apidog-orders: - code - description - properties - result examples: example: summary: example value: code: 1 description: Gửi thành công properties: {} result: '1743326750223591' headers: {} x-apidog-name: thành công '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-45208871-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Video sinh từ hình ảnh (chức năng phiên bản nâng cao)" Nguồn: https://docs.openaihub.net/api-45208872/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/video: post: summary: Video sinh từ hình ảnh (chức năng phiên bản nâng cao) deprecated: false description: '' operationId: post-mj-submit-video tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - mj parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image properties: base64: type: string description: >- base64 của ảnh gốc; cùng giá trị với ảnh trên máy khách; chuyển tiếp nguyên trạng image: type: string description: >- Ảnh gốc ở dạng base64 (tiền tố data URL). Ảnh cơ sở I2V; được truyền nguyên trạng; không được khai báo trong struct backend mode: type: string enum: - FAST - RELAX - TURBO enumDetails: - value: NHANH description: mặc định - value: NỚI LỎNG - value: TURBO description: Che do tao (truyen thang). FAST(mac dinh)/RELAX/TURBO motion: type: string enum: - low - high enumDetails: - value: thấp description: mặc định - value: cao description: >- Cường độ chuyển động (truyền nguyên trạng). thấp (mặc định)/cao notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống prompt: type: string description: nội dung video / mô tả chuyển động state: 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`. taskId: type: string description: >- Tùy chọn. Đối với video từ một tác vụ MJ hiện có, hãy truyền ID của tác vụ đó (relay-mj.go:690 cần taskId); không cần cho I2V có hình ảnh x-apifox-orders: - base64 - image - mode - motion - notifyHook - prompt - state - taskId x-apidog-orders: - base64 - image - mode - motion - notifyHook - prompt - state - taskId examples: {} responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: thành công result: '1720000000000000' headers: {} x-apidog-name: Được '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-45208872-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Phóng to/biến thể bản gốc, nhấn chỉ mục" Nguồn: https://docs.openaihub.net/api-45208873/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/change: post: summary: Phóng to/biến thể bản gốc, nhấn chỉ mục deprecated: false description: >- Dịch chuyển (mở rộng theo hướng) hoặc Thu nhỏ (mở rộng khung vẽ) trên một hình ảnh hiện có. operationId: mj_submit_change tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: [] requestBody: content: application/json: schema: type: object required: - taskId - action properties: action: type: string enum: - PAN_LEFT - PAN_RIGHT - PAN_UP - PAN_DOWN - ZOOM_OUT_2X - ZOOM_OUT_1_5X description: Loại hành động notifyHook: type: string description: URL gọi lại state: type: string description: Trạng thái chuyển tiếp tùy chỉnh taskId: type: string description: ID tác vụ gốc refName: PostMjSubmitChangeRequest x-apifox-orders: - action - notifyHook - state - taskId x-apidog-orders: - action - notifyHook - state - taskId examples: changepan_zoom_single: value: action: PAN_RIGHT taskId: '1743326750223591' summary: changepan_zoom_single description: Gửi tác vụ Thay đổi (Di chuyển/Thu phóng) responses: '200': description: thành công content: application/json: schema: type: object properties: code: type: integer description: >- Mã trạng thái: 1=đã gửi, 21=đang chờ, 22=đã tồn tại, 24=tham số không hợp lệ examples: - 1 description: type: string description: Mô tả trạng thái examples: - Gửi thành công properties: type: object description: Thuộc tính mở rộng x-apidog-orders: [] result: type: string description: Mã tác vụ examples: - '1743326750223591' refName: MjSubmitResponse x-apifox-orders: - code - description - properties - result x-apidog-orders: - code - description - properties - result examples: example: summary: example value: code: 1 description: Gửi thành công properties: {} result: '1743326750223591' headers: {} x-apidog-name: thành công '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-45208873-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chuyển đổi lệnh văn bản (nội dung)" Nguồn: https://docs.openaihub.net/api-45208874/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/simple-change: post: summary: Chuyển đổi lệnh văn bản (nội dung) deprecated: false description: '' operationId: post-mj-submit-simple-change tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - mj parameters: [] requestBody: content: application/json: schema: type: object required: - content properties: content: type: string description: >- Chuyển đổi văn bản lệnh như "taskId action", ví dụ: "1719999999999000 U1" notifyHook: type: string description: URL callback; dùng notifyHook toàn cục khi để trống state: 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`. x-apifox-orders: - content - notifyHook - state x-apidog-orders: - content - notifyHook - state examples: {} responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: thành công result: '1720000000000000' headers: {} x-apidog-name: Được '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-45208874-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Kiểm tra các tác vụ theo từng lô dựa trên các điều kiện" Nguồn: https://docs.openaihub.net/api-45208875/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /: post: summary: Kiểm tra các tác vụ theo từng lô dựa trên các điều kiện deprecated: false description: '' operationId: post tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Các điểm cuối parameters: [] responses: '200': description: '' content: application/json: schema: type: object properties: {} headers: {} x-apidog-name: Success 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-45208875-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tải lên hình ảnh tham chiếu (trả về mảng URL" Nguồn: https://docs.openaihub.net/api-45208876/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/submit/upload-discord-images: post: summary: Tải lên hình ảnh tham chiếu (trả về mảng URL deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập trực tiếp nội dung từ đường dẫn, nhưng tôi sẽ dịch sang tiếng Việt và giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON cùng định dạng. operationId: mj_submit_upload_discord_images tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Gửi tác vụ - Midjourney parameters: - name: content-type in: header description: Content-Type của phần thân yêu cầu, thường là application/json required: true example: application/json schema: type: string - 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: - base64Array properties: base64Array: type: array items: type: string description: Mảng các chuỗi Base64 của hình ảnh đầu vào x-apifox-orders: - base64Array x-apidog-orders: - base64Array examples: example_single: value: base64Array: - data:image/png;base64,iVBORw0KGgo... summary: example_single description: Tải ảnh lên responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 1 description: thành công result: '1720000000000000' 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 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-45208876-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Truy vấn chi tiết tác vụ" Nguồn: https://docs.openaihub.net/api-45208877/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/task/{id}/fetch: get: summary: Truy vấn chi tiết tác vụ deprecated: false description: >- Truy vấn trạng thái/kết quả hiện tại của một tác vụ được gửi qua `POST /mj/submit/imagine`, `/mj/submit/action`, v.v. Khi `status` là `SUCCESS`, `imageUrl` hợp lệ và `buttons` liệt kê các thao tác tiếp theo khả dụng (`customId`). operationId: mj_task_fetch tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Các tác vụ truy vấn - Midjourney parameters: - name: id in: path description: Mã tác vụ required: true example: '1743326750223591' schema: type: string - name: Authorization in: header description: Khóa API Bearer required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: {} examples: {} responses: '200': description: '' content: application/json: schema: type: object required: - id - action - customId - botType - prompt - promptEn - description - state - submitTime - startTime - finishTime - imageUrl - status - progress - failReason - buttons - maskBase64 - properties properties: action: type: string description: Loại hành động botType: type: string description: Loại bot buttons: type: array items: type: object required: - customId - emoji - label - type - style properties: customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh emoji: type: string description: Định danh biểu tượng cảm xúc label: type: string description: Nhãn hiển thị style: type: integer description: Tham số phong cách type: type: integer description: Kiểu x-apifox-orders: - customId - emoji - label - style - type x-apidog-orders: - customId - emoji - label - style - type description: Danh sách các nút / hành động có thể thực hiện tiếp theo customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh description: type: string description: Mô tả failReason: type: string description: Ly do that bai finishTime: type: integer description: Thời gian hoàn thành id: type: string description: ID tài nguyên hoặc tác vụ imageUrl: type: string description: URL hình ảnh kết quả maskBase64: type: string description: Base64 của ảnh mặt nạ progress: type: string description: Tiến trình (0-100 hoặc 0-1, tùy thuộc vào nền tảng) prompt: type: string description: Lời nhắc văn bản promptEn: type: string description: Lời nhắc bằng tiếng Anh properties: type: object required: - finalPrompt - finalZhPrompt properties: finalPrompt: type: string description: Lời nhắc cuối cùng thực sự được sử dụng finalZhPrompt: type: string description: Lời nhắc cuối cùng bằng tiếng Trung description: Thuộc tính mở rộng x-apifox-orders: - finalPrompt - finalZhPrompt x-apidog-orders: - finalPrompt - finalZhPrompt startTime: type: integer description: Thời gian bắt đầu state: type: string description: Trạng thái chuyển tiếp tùy chỉnh status: type: string description: Trạng thái submitTime: type: integer description: Thời gian gửi refName: GetMjTaskFetchResponse x-apifox-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime x-apidog-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime examples: '1': summary: '1' value: '[long payload omitted: 2,247 units]' 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/Các tác vụ truy vấn x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208877-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Kiểm tra seed" Nguồn: https://docs.openaihub.net/api-45208878/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /mj/task/{id}/image-seed: get: summary: Kiểm tra seed deprecated: false description: >- Lấy hạt giống (hạt giống ngẫu nhiên) của hình ảnh được tạo bởi tác vụ được chỉ định; có thể dùng để tái tạo hoặc tinh chỉnh quá trình tạo với cùng hạt giống. operationId: mj_task_image_seed tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Midjourney/Các tác vụ truy vấn - Midjourney parameters: - name: id in: path description: ID tài nguyên / tác vụ trong đường dẫn required: true example: '' schema: type: string - name: Authorization in: header description: Khóa API Bearer required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: ids: type: array items: type: string description: Danh sách ID examples: - - '1231234123' - '456456456' example: - '1231234123' - '456456456' examples: {} responses: '200': description: '' content: application/json: schema: type: object required: - id - action - customId - botType - prompt - promptEn - description - state - submitTime - startTime - finishTime - imageUrl - status - progress - failReason - buttons - maskBase64 - properties properties: action: type: string description: Loại hành động botType: type: string description: Loại bot buttons: type: array items: type: object required: - customId - emoji - label - type - style properties: customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh emoji: type: string description: Định danh biểu tượng cảm xúc label: type: string description: Nhãn hiển thị style: type: integer description: Tham số phong cách type: type: integer description: Kiểu x-apifox-orders: - customId - emoji - label - style - type x-apidog-orders: - customId - emoji - label - style - type description: Danh sách các nút / hành động có thể thực hiện tiếp theo customId: type: string description: Mã định danh chuyển tiếp tùy chỉnh description: type: string description: Mô tả failReason: type: string description: Ly do that bai finishTime: type: integer description: Thời gian hoàn thành id: type: string description: ID tài nguyên hoặc tác vụ imageUrl: type: string description: URL hình ảnh kết quả maskBase64: type: string description: Base64 của ảnh mặt nạ progress: type: string description: Tiến trình (0-100 hoặc 0-1, tùy thuộc vào nền tảng) prompt: type: string description: Lời nhắc văn bản promptEn: type: string description: Lời nhắc bằng tiếng Anh properties: type: object required: - finalPrompt - finalZhPrompt properties: finalPrompt: type: string description: Lời nhắc cuối cùng thực sự được sử dụng finalZhPrompt: type: string description: Lời nhắc cuối cùng bằng tiếng Trung description: Thuộc tính mở rộng x-apifox-orders: - finalPrompt - finalZhPrompt x-apidog-orders: - finalPrompt - finalZhPrompt startTime: type: integer description: Thời gian bắt đầu state: type: string description: Trạng thái chuyển tiếp tùy chỉnh status: type: string description: Trạng thái submitTime: type: integer description: Thời gian gửi refName: GetMjTaskIdImageSeedResponse x-apifox-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime x-apidog-orders: - action - botType - buttons - customId - description - failReason - finishTime - id - imageUrl - maskBase64 - progress - prompt - promptEn - properties - startTime - state - status - submitTime examples: example: summary: example value: '[long payload omitted: 2,247 units]' 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/Các tác vụ truy vấn x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208878-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo gpt-image-1" Nguồn: https://docs.openaihub.net/api-45208879/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo gpt-image-1 deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208879-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "chỉnh sửa hình ảnh" Nguồn: https://docs.openaihub.net/api-45208880/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: chỉnh sửa hình ảnh deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: v1_images_edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208880-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Mặt nạ gpt-image-1" Nguồn: https://docs.openaihub.net/api-45208881/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: Mặt nạ gpt-image-1 deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: post-v1-images-edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208881-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa gpt-image-1.5" Nguồn: https://docs.openaihub.net/api-45208882/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: Chỉnh sửa gpt-image-1.5 deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: post-v1-images-edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208882-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo gpt-image-2" Nguồn: https://docs.openaihub.net/api-45208883/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo gpt-image-2 deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: post-v1-images-generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208883-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa gpt-image-2" Nguồn: https://docs.openaihub.net/api-45208884/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: Chỉnh sửa gpt-image-2 deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: post-v1-images-edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208884-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo gpt-image-2.5" Nguồn: https://docs.openaihub.net/api-45208885/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo gpt-image-2.5 deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: post-v1-images-generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208885-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa gpt-image-2.5" Nguồn: https://docs.openaihub.net/api-45208886/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: Chỉnh sửa gpt-image-2.5 deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: post-v1-images-edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/GPT Image-1 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208886-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo hình ảnh" Nguồn: https://docs.openaihub.net/api-45208887/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo hình ảnh deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Grok - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Grok x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208887-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "chỉnh sửa hình ảnh" Nguồn: https://docs.openaihub.net/api-45208888/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: chỉnh sửa hình ảnh deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: v1_images_edits tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Grok - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Grok x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208888-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo DALL·E 3" Nguồn: https://docs.openaihub.net/api-45208889/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo DALL·E 3 deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/DALL·E 3 - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/DALL·E 3 x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208889-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo/chỉnh sửa hình ảnh" Nguồn: https://docs.openaihub.net/api-45208890/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo/chỉnh sửa hình ảnh deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/định dạng tương thích với GPT - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/định dạng tương thích với GPT x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208890-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa Flux (định dạng dall-e-3 của OpenAI)" Nguồn: https://docs.openaihub.net/api-45208891/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/edits: post: summary: Chỉnh sửa Flux (định dạng dall-e-3 của OpenAI) deprecated: false description: >- Với một lời nhắc, mô hình này sẽ trả về một hoặc nhiều phần hoàn chỉnh được dự đoán, đồng thời cũng có thể trả về xác suất của các token thay thế tại mỗi vị trí. Tạo các phần hoàn chỉnh cho lời nhắc và tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/createEdit operationId: v1_images_edits tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/định dạng tương thích với GPT - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: multipart/form-data: schema: type: object properties: background: type: string description: >- Cho phép thiết lập độ trong suốt của nền cho hình ảnh được tạo. Các tùy chọn: opaque, transparent, auto (mặc định). Khi sử dụng auto, mô hình sẽ tự động xác định nền phù hợp nhất cho hình ảnh. Nên sử dụng định dạng png hoặc webp khi chọn transparent. examples: - tự động example: tự động image: type: string format: binary description: >- Hình ảnh cần chỉnh sửa. Phải là một tệp hình ảnh được hỗ trợ hoặc một mảng hình ảnh. Số lượng hình ảnh phải ít hơn 16 và tổng dung lượng không vượt quá 50MB. Hình ảnh đầu vào cho API chỉnh sửa. Tải lên bằng multipart/form-data. examples: - '' example: '' mask: type: string description: >- Một hình ảnh bổ sung có các vùng hoàn toàn trong suốt (ví dụ: giá trị alpha bằng không) cho biết vị trí cần chỉnh sửa hình ảnh. Nếu cung cấp nhiều hình ảnh, mặt nạ sẽ được áp dụng cho hình ảnh đầu tiên. Tệp phải là PNG hợp lệ, có dung lượng nhỏ hơn 4MB và có cùng kích thước với hình ảnh. examples: - '' example: '' model: type: string description: >- Mô hình được dùng để tạo hình ảnh. Chỉ hỗ trợ gpt-image-2.5-flare và gpt-image-2.5-sunburst. examples: - gpt-image-2.5-flare example: gpt-image-2.5-flare moderation: type: string description: >- Kiểm soát mức độ kiểm duyệt nội dung. Có thể đặt thành `low` để lọc ít hạn chế hơn hoặc `auto` (mặc định). examples: - tự động example: tự động 'n': type: string description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. examples: - '1' example: '1' prompt: type: string description: Mô tả bằng văn bản về hình ảnh mong muốn. examples: - '' example: '' quality: type: string description: |- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) examples: - tự động example: tự động size: type: string description: >- Kích thước hình ảnh 1024x1024 Hình vuông 1536x1024 Hình ngang 1024x1536 Hình dọc 2048x2048 Hình vuông 2K 2048x1152 Hình ngang 2K 3840x2160 Hình ngang 4K 2160x3840 Hình dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 examples: - 1024x1536 example: 1024x1536 required: - image - prompt examples: example: value: model: gpt-image-1 'n': 1 prompt: Một chú heo con luôn đáng yêu size: 1024x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.png headers: {} x-apidog-name: '' security: [] x-apidog-folder: >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/định dạng tương thích với GPT x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208891-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-kontext-dev" Nguồn: https://docs.openaihub.net/api-45208892/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-kontext-dev/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-kontext-dev deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-kontext-dev operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_kontext_dev_predictions tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch. - Tái tạo 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 properties: input: type: object required: - prompt - input_image properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Sử dụng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Giá trị mặc định: "match_input_image". go_fast: type: boolean description: >- Giúp mô hình chạy nhanh hơn, chất lượng đầu ra có thể giảm nhẹ đối với các lời nhắc khó hơn. Giá trị mặc định: true. guidance: type: number description: >- Các từ gợi ý điều chỉnh cường độ. Giá trị mặc định: 2.5. Giá trị tối thiểu: 0, giá trị tối đa: 10 input_image: type: string description: >- Hình ảnh dùng làm tài liệu tham khảo. Phải có định dạng jpeg, png, gif hoặc webp. num_inference_steps: type: integer description: >- Số bước suy luận, mặc định: 28. Giá trị tối thiểu: 4, giá trị tối đa: 50. output_format: type: string description: 'Định dạng ảnh đầu ra. Mặc định: "webp".' output_quality: type: integer description: >- Chất lượng lưu hình ảnh đầu ra, từ 0 đến 100. 100 là chất lượng tốt nhất, 0 là chất lượng thấp nhất. Không liên quan đến đầu ra .png. Giá trị mặc định: 80. Giá trị nhỏ nhất: 0, giá trị lớn nhất: 100. prompt: type: string description: >- Mô tả bằng văn bản về nội dung bạn muốn tạo, hoặc hướng dẫn cách chỉnh sửa một hình ảnh được cung cấp. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - go_fast - guidance - input_image - num_inference_steps - output_format - output_quality - prompt x-apidog-orders: - aspect_ratio - go_fast - guidance - input_image - num_inference_steps - output_format - output_quality - prompt x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_kontext_dev_single: value: input: aspect_ratio: match_input_image go_fast: true guidance: 2.5 input_image: >- https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg num_inference_steps: 30 output_format: jpg output_quality: 80 prompt: Đổi màu xe thành màu đỏ, bật đèn pha summary: black_forest_labsflux_kontext_dev_single description: Tạo tác vụ black-forest-labs/flux-kontext-dev responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsBlackForestLabsFluxKontextDevPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-29T07:12:42.163Z' data_removed: false id: tpdf40dypdrma0cram394vvzkg input: aspect_ratio: match_input_image go_fast: true guidance: 2.5 input_image: >- https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg num_inference_steps: 30 output_format: jpg output_quality: 80 prompt: Đổi màu xe thành màu đỏ, bật đèn pha logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/tpdf40dypdrma0cram394vvzkg/cancel get: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp URL này. stream: >- Vui lòng dán nội dung tài liệu cần dịch vào đây; tôi không thể truy cập trực tiếp URL được cung cấp. web: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ liên kết đã cung cấp. version: ẩn 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/FLUX/Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch. x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208892-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Các tác vụ truy vấn" Nguồn: https://docs.openaihub.net/api-45208893/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/predictions/{id}: get: summary: Các tác vụ truy vấn deprecated: false description: Truy vấn trạng thái và kết quả tác vụ dựa trên ID dự đoán. operationId: replicate_replicate_v1_predictions_2 tags: - >- OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/FLUX/Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch. - Tái tạo parameters: - name: id in: path description: ID tài nguyên / tác vụ trong đường dẫn required: true example: '' schema: type: string responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK headers: {} x-apidog-name: thành công '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/FLUX/Vui lòng cung cấp nội dung tài liệu kỹ thuật cần dịch. x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208893-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo hình ảnh" Nguồn: https://docs.openaihub.net/api-45208894/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: Tạo hình ảnh deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Doubao - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Doubao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208894-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Seedream 5.0 Pro" Nguồn: https://docs.openaihub.net/api-45208895/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /api/v3/images/generations: post: summary: Seedream 5.0 Pro deprecated: false description: '' operationId: post-api-v3-images-generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Doubao - volc parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: guidance_scale: type: number description: Mức độ tuân thủ lời nhắc; phạm vi [1, 10] image: oneOf: - type: string format: uri - type: array items: type: string format: uri description: >- Tham chiếu (chính thức). Một chuỗi URL đơn hoặc mảng URL (chỉnh sửa tương tác / I2I, tối đa khoảng 10) images: oneOf: - type: string format: uri - type: array items: type: string format: uri description: >- trường tương thích; cổng kết nối chuẩn hóa thành image. Dùng trường này hoặc image model: type: string enum: - doubao-seedream-5-0-pro-260628 description: Tên mô hình 'n': type: integer description: Số lượng hình ảnh; Pro thường là 1 optimize_prompt_options: type: object required: - mode properties: mode: type: string enum: - standard - fast description: chế độ tối ưu hóa description: cài đặt tối ưu hóa lời nhắc x-apifox-orders: - mode x-apidog-orders: - mode output_format: type: string enum: - jpeg - png description: định dạng tệp hình ảnh prompt: type: string description: lời nhắc tạo / chỉnh sửa response_format: type: string enum: - url - b64_json description: cấu trúc phản hồi seed: type: integer description: Hạt giống ngẫu nhiên, phạm vi [-1, 2147483647], mặc định -1 size: type: string enum: - 1K - 2K - 1024x1024 - 1152x864 - 864x1152 - 1424x800 - 800x1424 - 1248x832 - 832x1248 - 1568x672 - 2048x2048 - 2368x1776 - 1776x2368 - 2816x1584 - 1584x2816 - 2496x1664 - 1664x2496 - 3136x1344 description: >- Mức độ phân giải hoặc số pixel. Thường là 1K/2K; cũng có thể là 1024x1024, 2048x2048, 2816x1584. Nếu để trống, chi phí sẽ được tính theo mức cao hơn watermark: type: boolean description: Có thêm hình mờ hay không x-apifox-orders: - guidance_scale - image - images - model - 'n' - optimize_prompt_options - output_format - prompt - response_format - seed - size - watermark x-apidog-orders: - guidance_scale - image - images - model - 'n' - optimize_prompt_options - output_format - prompt - response_format - seed - size - watermark examples: example: value: model: doubao-seedream-5-0-pro-260628 prompt: Một con mèo response_format: url size: 2K watermark: false summary: example responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: code: 0 data: task_id: task_example_001 message: thành công headers: {} x-apidog-name: Được '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/Doubao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208895-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy kết quả yêu cầu" Nguồn: https://docs.openaihub.net/api-45208896/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/{model_name}/requests/{request_id}: get: summary: Lấy kết quả yêu cầu deprecated: false description: >- Truy vấn kết quả tác vụ bất đồng bộ của Fal.ai; trả về đầu ra là hình ảnh hoặc video. operationId: fal_ai_fal_ai_requests tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: - name: model_name in: path description: >- Tên mô hình, tự động Hệ thống của chúng tôi sẽ tự động xác định model_name required: true example: tự động schema: type: string - name: request_id in: path description: mã tác vụ required: true example: 5ed6b6bb-eaa3-4006-859b-e2f3fa748d8c schema: type: string responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: has_nsfw_concepts: - false images: - content_type: image/jpeg height: 1024 url: >- https://fal.media/files/tiger/BwdOcvXOx0UmkCyCMZGmZ_1ee10db761e146a28fdaadafa528d239.jpg width: 1024 prompt: >- Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ nữ. request: guidance_scale: 3.5 image_urls: - >- https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp - >- Vui lòng tải hình ảnh lên trực tiếp để tôi có thể đọc và dịch nội dung. num_images: 1 output_format: jpeg prompt: >- Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ nữ. safety_tolerance: '2' seed: 2841475369 timings: {} headers: {} x-apidog-name: '' '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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208896-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/nano-banana Tạo ảnh từ văn bản" Nguồn: https://docs.openaihub.net/api-45208897/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/nano-banana: post: summary: /fal-ai/nano-banana Tạo ảnh từ văn bản deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/nano-banana' operationId: fal_ai_fal_ai_nano_banana tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: num_images: type: integer description: >- Số lượng hình ảnh được tạo. Phạm vi giá trị: 1-4. Giá trị mặc định: 1 prompt: type: string description: Tạo các từ gợi ý cho hình ảnh. refName: PostFalAiNanoBananaRequest x-apifox-orders: - num_images - prompt x-apidog-orders: - num_images - prompt examples: fal_ainano_banana_single: value: num_images: 1 prompt: >- Cảnh hành động chụp một chú chó Labrador đen đang bơi trong hồ bơi âm đất ở khu ngoại ô. Máy ảnh được đặt chính xác trên mặt nước, chia đôi hình ảnh, cho thấy cả đầu chú chó nhô lên khỏi mặt nước với một quả bóng tennis ngậm trong miệng, lẫn những bàn chân đang quẫy dưới nước. summary: fal_ainano_banana_single description: /fal-ai/nano-banana Tạo ảnh từ văn bản responses: '200': description: '' content: application/json: schema: type: object required: - status - request_id - response_url - status_url - cancel_url - logs - metrics - queue_position properties: cancel_url: type: string description: URL hủy tác vụ logs: type: array items: type: string description: Nhật ký chạy nullable: true metrics: type: object description: Số liệu chạy x-apidog-orders: [] queue_position: type: integer description: Vị trí trong hàng đợi request_id: type: string description: ID truy vết yêu cầu response_url: type: string description: URL truy vấn kết quả status: type: string description: Trạng thái status_url: type: string description: URL truy vấn trạng thái refName: PostFalAiNanoBananaResponse x-apifox-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url x-apidog-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/cancel logs: [] metrics: {} queue_position: 0 request_id: e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca response_url: >- Vui lòng dịch nội dung tài liệu kỹ thuật tại URL sau sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại bất kỳ chữ Hán nào: https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/nano-banana/requests/e7e9202c-efb8-40f2-81c3-13b3f7aaa4ca/status 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 security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208897-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/nano-banana/edit Chỉnh sửa hình ảnh" Nguồn: https://docs.openaihub.net/api-45208898/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/nano-banana/edit: post: summary: /fal-ai/nano-banana/edit Chỉnh sửa hình ảnh deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/nano-banana/edit' operationId: fal_ai_fal_ai_nano_banana_edit tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_urls properties: image_urls: type: array items: type: string description: URL hình ảnh cần được chỉnh sửa. num_images: type: integer description: >- Số lượng hình ảnh được tạo. Phạm vi giá trị: 1-4. Giá trị mặc định: 1 prompt: type: string description: Các từ khóa gợi ý để chỉnh sửa hình ảnh. refName: PostFalAiNanoBananaEditRequest x-apifox-orders: - image_urls - num_images - prompt x-apidog-orders: - image_urls - num_images - prompt examples: fal_ainano_bananaedit_single: value: image_urls: - >- https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input.png - >- https://storage.googleapis.com/falserverless/example_inputs/nano-banana-edit-input-2.png num_images: 1 prompt: >- tạo một bức ảnh người đàn ông đang lái xe dọc theo bờ biển California summary: fal_ainano_bananaedit_single description: /fal-ai/nano-banana/edit Chỉnh sửa hình ảnh responses: '200': description: '' content: application/json: schema: type: object required: - status - request_id - response_url - status_url - cancel_url - logs - metrics - queue_position properties: cancel_url: type: string description: URL hủy tác vụ logs: type: array items: type: string description: Nhật ký chạy nullable: true metrics: type: object description: Số liệu chạy x-apidog-orders: [] queue_position: type: integer description: Vị trí trong hàng đợi request_id: type: string description: ID truy vết yêu cầu response_url: type: string description: URL truy vấn kết quả status: type: string description: Trạng thái status_url: type: string description: URL truy vấn trạng thái refName: PostFalAiNanoBananaEditResponse x-apifox-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url x-apidog-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/nano-banana/requests/f8837f29-26cb-4213-90f5-22b2911a0ea7/cancel logs: [] metrics: {} queue_position: 0 request_id: f8837f29-26cb-4213-90f5-22b2911a0ea7 response_url: >- Vui lòng cung cấp nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp URL này. status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/nano-banana/requests/f8837f29-26cb-4213-90f5-22b2911a0ea7/status 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 security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208898-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy kết quả yêu cầu" Nguồn: https://docs.openaihub.net/api-45208899/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/{model_name}/requests/{request_id}: get: summary: Lấy kết quả yêu cầu deprecated: false description: >- Truy vấn kết quả tác vụ bất đồng bộ của Fal.ai; trả về đầu ra là hình ảnh hoặc video. operationId: fal_ai_fal_ai_requests tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: - name: model_name in: path description: >- Tên mô hình, tự động Hệ thống của chúng tôi sẽ tự động xác định model_name required: true example: tự động schema: type: string - name: request_id in: path description: mã tác vụ required: true example: 5ed6b6bb-eaa3-4006-859b-e2f3fa748d8c schema: type: string responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: has_nsfw_concepts: - false images: - content_type: image/jpeg height: 1024 url: >- https://fal.media/files/tiger/BwdOcvXOx0UmkCyCMZGmZ_1ee10db761e146a28fdaadafa528d239.jpg width: 1024 prompt: >- Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ nữ. request: guidance_scale: 3.5 image_urls: - >- https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp - >- Vui lòng tải hình ảnh lên trực tiếp để tôi có thể đọc và dịch nội dung. num_images: 1 output_format: jpeg prompt: >- Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ nữ. safety_tolerance: '2' seed: 2841475369 timings: {} headers: {} x-apidog-name: '' '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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208899-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-1/dev" Nguồn: https://docs.openaihub.net/api-45208900/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-1/dev: post: summary: /fal-ai/flux-1/dev deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-1/dev' operationId: fal_ai_fal_ai_flux_1_dev tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: acceleration: type: string description: >- Tốc độ tạo. Tốc độ càng cao thì quá trình dựng càng nhanh. Giá trị mặc định: "regular" . Hỗ trợ: default, none, regular, high enable_safety_checker: type: boolean description: >- Nếu được đặt thành `true`, trình kiểm tra bảo mật sẽ được bật. Giá trị mặc định: `true` guidance_scale: type: number description: >- Thang CFG (Classifier Free Guidance - Huong dan khong can bo phan phan loai) do muc do ban muon mo hinh bam sat cac goi y khi tim hinh anh phu hop. Gia tri mac dinh: 3.5. Pham vi gia tri: 1-20 image_size: type: string description: >- Kích thước của hình ảnh được tạo. Mặc định: landscape_4_3, phạm vi (3:4, 4:3, 16:9, 9:16) num_images: type: integer description: >- Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị trong khoảng: 1-4 num_inference_steps: type: integer description: >- Số bước suy luận cần thực hiện. Giá trị mặc định: 28. Phạm vi giá trị: 0-50 output_format: type: string description: >- Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg". Các định dạng được hỗ trợ: default, JPEG, png prompt: type: string description: Lời nhắc văn bản refName: PostFalAiFlux1DevRequest x-apifox-orders: - acceleration - enable_safety_checker - guidance_scale - image_size - num_images - num_inference_steps - output_format - prompt x-apidog-orders: - acceleration - enable_safety_checker - guidance_scale - image_size - num_images - num_inference_steps - output_format - prompt examples: fal_aiflux_1dev_single: value: acceleration: thông thường enable_safety_checker: true guidance_scale: 3.5 image_size: landscape_4_3 num_images: 1 num_inference_steps: 28 output_format: jpeg prompt: >- Cảnh cực cận của một mắt hổ duy nhất, nhìn thẳng từ chính diện. Mống mắt và đồng tử chi tiết. Lấy nét sắc nét vào kết cấu và màu sắc của mắt. Ánh sáng tự nhiên làm nổi bật độ long lanh và chiều sâu chân thực của mắt. Từ "FLUX" được vẽ đè lên trên bằng những nét cọ lớn màu trắng, với kết cấu hiện rõ. summary: fal_aiflux_1dev_single description: /fal-ai/flux-1/dev responses: '200': description: '' content: application/json: schema: type: object required: - status - request_id - response_url - status_url - cancel_url - logs - metrics - queue_position properties: cancel_url: type: string description: URL hủy tác vụ logs: type: array items: type: string description: Nhật ký chạy nullable: true metrics: type: object description: Số liệu chạy x-apidog-orders: [] queue_position: type: integer description: Vị trí trong hàng đợi request_id: type: string description: ID truy vết yêu cầu response_url: type: string description: URL truy vấn kết quả status: type: string description: Trạng thái status_url: type: string description: URL truy vấn trạng thái refName: PostFalAiFlux1DevResponse x-apifox-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url x-apidog-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-1/requests/3892f1e8-5fb1-469f-87b0-696d6054c9f2/cancel logs: [] metrics: {} queue_position: 0 request_id: 3892f1e8-5fb1-469f-87b0-696d6054c9f2 response_url: >- https://queue.fal.run/fal-ai/flux-1/requests/3892f1e8-5fb1-469f-87b0-696d6054c9f2 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-1/requests/3892f1e8-5fb1-469f-87b0-696d6054c9f2/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208900-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-1/dev/image-to-image" Nguồn: https://docs.openaihub.net/api-45208901/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-1/dev/image-to-image: post: summary: /fal-ai/flux-1/dev/image-to-image deprecated: false description: >- Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-1/dev/image-to-image operationId: post-fal-ai-flux-1-dev-image-to-image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - image_url - prompt properties: acceleration: type: string description: >- Tốc độ tạo. Giá trị cao hơn thì nhanh hơn. Mặc định: "regular". Được hỗ trợ: default, none, regular, high enable_safety_checker: type: boolean description: Có bật bộ kiểm tra an toàn hay không guidance_scale: type: number description: >- Thang CFG (hướng dẫn không cần bộ phân loại): mức độ bám sát lời nhắc. Mặc định: 3.5. Phạm vi: 1–20 image_url: type: string description: >- Thả một tệp vào đây hoặc cung cấp URL dữ liệu base64. Định dạng được chấp nhận: jpg, jpeg, png, webp, gif, avif num_images: type: integer description: 'Số lượng hình ảnh cần tạo. Mặc định: 1. Phạm vi: 1–4' num_inference_steps: type: integer description: 'Số bước suy luận. Mặc định: 40. Phạm vi: 10–50' output_format: type: string description: >- Định dạng ảnh đầu ra. Mặc định: "jpeg". Được hỗ trợ: default, png, jpeg prompt: type: string description: Câu lệnh tạo hình ảnh strength: type: number description: >- Mức độ ảnh hưởng của ảnh ban đầu. Giá trị cao hơn sẽ phụ thuộc nhiều hơn vào mô hình. Mặc định: 0.95. Phạm vi: 0.01–1 x-apifox-orders: - acceleration - enable_safety_checker - guidance_scale - image_url - num_images - num_inference_steps - output_format - prompt - strength x-apidog-orders: - acceleration - enable_safety_checker - guidance_scale - image_url - num_images - num_inference_steps - output_format - prompt - strength examples: example: value: acceleration: thông thường enable_safety_checker: true guidance_scale: 3.5 image_url: >- Vui lòng tải ảnh trực tiếp lên cuộc trò chuyện để tôi có thể đọc và dịch nội dung. num_images: 1 num_inference_steps: 40 output_format: jpeg prompt: >- Một chú mèo mặc trang phục phù thủy với khu rừng huyền bí làm nền. strength: 0.95 summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208901-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-1/dev/redux" Nguồn: https://docs.openaihub.net/api-45208902/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-1/dev/redux: post: summary: /fal-ai/flux-1/dev/redux deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL này: https://fal.ai/models/fal-ai/flux-1/dev/redux operationId: fal_ai_fal_ai_flux_1_dev_redux tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - image_url properties: acceleration: type: string description: >- Tốc độ tạo. Tốc độ càng cao thì quá trình dựng càng nhanh. Giá trị mặc định: "regular"; hỗ trợ các giá trị default, none, regular và high enable_safety_checker: type: boolean description: >- Nếu được đặt thành `true`, trình kiểm tra bảo mật sẽ được bật. Giá trị mặc định: `true` guidance_scale: type: number description: >- Thang CFG (Classifier Free Guidance) đo mức độ bạn muốn mô hình bám sát các gợi ý khi tìm hình ảnh phù hợp. Giá trị mặc định: 3.5 Phạm vi giá trị: 1-20 image_size: type: string description: >- Kích thước của hình ảnh được tạo. Mặc định: landscape_4_3, phạm vi (3:4, 4:3, 16:9, 9:16) image_url: type: string description: >- Kéo và thả tệp vào đây, hoặc cung cấp URL dữ liệu được mã hóa base64 Các loại tệp được chấp nhận: jpg, jpeg, png, webp, gif, avif num_images: type: integer description: >- Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị trong khoảng 1-4 num_inference_steps: type: integer description: >- Số bước suy luận cần thực hiện. Giá trị mặc định: 28 Giá trị trong khoảng: 1-50 output_format: type: string description: >- Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg". Hỗ trợ: default, png, jpeg refName: PostFalAiFlux1DevReduxRequest x-apifox-orders: - acceleration - enable_safety_checker - guidance_scale - image_size - image_url - num_images - num_inference_steps - output_format x-apidog-orders: - acceleration - enable_safety_checker - guidance_scale - image_size - image_url - num_images - num_inference_steps - output_format examples: fal_aiflux_1devredux_single: value: acceleration: thông thường enable_safety_checker: true guidance_scale: 3.5 image_size: landscape_4_3 image_url: https://fal.media/files/kangaroo/acQvq-Kmo2lajkgvcEHdv.png num_images: 1 num_inference_steps: 28 output_format: jpeg summary: fal_aiflux_1devredux_single description: /fal-ai/flux-1/dev/redux responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel logs: [] metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208902-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-1/schnell/redux" Nguồn: https://docs.openaihub.net/api-45208903/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-1/schnell/redux: post: summary: /fal-ai/flux-1/schnell/redux deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL này trong phiên hiện tại. operationId: fal_ai_fal_ai_flux_1_schnell_redux tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - image_url properties: acceleration: type: string description: >- Tốc độ tạo. Tốc độ càng cao thì quá trình dựng càng nhanh. Giá trị mặc định: "regular"; hỗ trợ các giá trị default, none, regular và high enable_safety_checker: type: boolean description: >- Nếu được đặt thành `true`, trình kiểm tra bảo mật sẽ được bật. Giá trị mặc định: `true` image_size: type: string description: >- Kích thước của hình ảnh được tạo. Mặc định: landscape_4_3, phạm vi (3:4, 4:3, 16:9, 9:16) image_url: type: string description: >- Kéo và thả tệp vào đây, hoặc cung cấp URL dữ liệu được mã hóa base64 Các loại tệp được chấp nhận: jpg, jpeg, png, webp, gif, avif num_images: type: integer description: >- Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị trong khoảng 1-4 num_inference_steps: type: integer description: >- Số bước suy luận cần thực hiện. Giá trị mặc định: 4 Giá trị trong khoảng: 1-12 output_format: type: string description: >- Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg". Hỗ trợ: default, png, jpeg refName: PostFalAiFlux1SchnellReduxRequest x-apifox-orders: - acceleration - enable_safety_checker - image_size - image_url - num_images - num_inference_steps - output_format x-apidog-orders: - acceleration - enable_safety_checker - image_size - image_url - num_images - num_inference_steps - output_format examples: fal_aiflux_1schnellredux_single: value: acceleration: thông thường enable_safety_checker: true image_size: landscape_4_3 image_url: https://fal.media/files/kangaroo/acQvq-Kmo2lajkgvcEHdv.png num_images: 1 num_inference_steps: 4 output_format: jpeg summary: fal_aiflux_1schnellredux_single description: /fal-ai/flux-1/schnell/redux responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel logs: [] metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208903-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-pro/kontext" Nguồn: https://docs.openaihub.net/api-45208904/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-pro/kontext: post: summary: /fal-ai/flux-pro/kontext deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-pro/kontext' operationId: fal_ai_fal_ai_flux_pro_kontext tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: guidance_scale: type: number description: >- Thang CFG (Dẫn hướng không dùng bộ phân loại) là thước đo mức độ bạn muốn mô hình bám sát các gợi ý khi tìm hình ảnh liên quan. Giá trị mặc định: 3.5 Phạm vi giá trị: 1-20 image_url: type: string description: >- Kéo và thả tệp vào đây, hoặc cung cấp URL dữ liệu được mã hóa base64 Các loại tệp được chấp nhận: jpg, jpeg, png, webp, gif, avif num_images: type: integer description: >- Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị trong khoảng 1-4 output_format: type: string description: >- Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg". Hỗ trợ: default, png, jpeg prompt: type: string description: Mẹo tạo hình ảnh safety_tolerance: type: string description: >- Mức độ dung sai an toàn của hình ảnh được tạo. 1 là nghiêm ngặt nhất và 5 là ít nghiêm ngặt nhất. Giá trị mặc định: "2" refName: PostFalAiFluxProKontextRequest x-apifox-orders: - guidance_scale - image_url - num_images - output_format - prompt - safety_tolerance x-apidog-orders: - guidance_scale - image_url - num_images - output_format - prompt - safety_tolerance examples: fal_aiflux_prokontext_single: value: guidance_scale: 3.5 image_url: >- https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png num_images: 1 output_format: jpeg prompt: Đặt một chiếc bánh vòng cạnh bột mì. safety_tolerance: '2' summary: fal_aiflux_prokontext_single description: /fal-ai/flux-pro/kontext responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel logs: [] metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208904-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-pro/kontext/text-to-image" Nguồn: https://docs.openaihub.net/api-45208905/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-pro/kontext/text-to-image: post: summary: /fal-ai/flux-pro/kontext/text-to-image deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. Tôi sẽ giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON và định dạng. operationId: fal_ai_fal_ai_flux_pro_kontext_text_to_image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "1:1". Hỗ trợ: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 guidance_scale: type: number description: >- Thang CFG (Dẫn hướng không dùng bộ phân loại) là thước đo mức độ bạn muốn mô hình bám sát các gợi ý khi tìm hình ảnh liên quan. Giá trị mặc định: 3.5 Phạm vi giá trị: 1-20 num_images: type: integer description: >- Số lượng hình ảnh được tạo. Giá trị mặc định: 1 Giá trị trong khoảng 1-4 output_format: type: string description: >- Định dạng của hình ảnh được tạo. Giá trị mặc định: "jpeg". Hỗ trợ: default, png, jpeg prompt: type: string description: Mẹo tạo hình ảnh. safety_tolerance: type: string description: >- Mức độ dung sai an toàn của hình ảnh được tạo. 1 là nghiêm ngặt nhất và 5 là ít nghiêm ngặt nhất. Giá trị mặc định: "2" refName: PostFalAiFluxProKontextTextToImageRequest x-apifox-orders: - aspect_ratio - guidance_scale - num_images - output_format - prompt - safety_tolerance x-apidog-orders: - aspect_ratio - guidance_scale - num_images - output_format - prompt - safety_tolerance examples: fal_aiflux_prokontexttext_to_image_single: value: aspect_ratio: '1:1' guidance_scale: 3.5 num_images: 1 output_format: jpeg prompt: >- Cảnh cực cận của một mắt hổ duy nhất, nhìn thẳng từ chính diện. Mống mắt và đồng tử chi tiết. Lấy nét sắc nét vào kết cấu và màu sắc của mắt. Ánh sáng tự nhiên làm nổi bật độ long lanh và chiều sâu chân thực của mắt. Từ "FLUX" được vẽ đè lên trên bằng những nét cọ lớn màu trắng, với kết cấu hiện rõ. safety_tolerance: '2' summary: fal_aiflux_prokontexttext_to_image_single description: /fal-ai/flux-pro/kontext/text-to-image responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel logs: [] metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208905-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-pro/kontext/max" Nguồn: https://docs.openaihub.net/api-45208906/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-pro/kontext/max: post: summary: /fal-ai/flux-pro/kontext/max deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL này, nhưng tôi có thể dịch toàn bộ sang tiếng Việt đồng thời giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. operationId: fal_ai_fal_ai_flux_pro_kontext_max tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - output_format - image_url properties: aspect_ratio: type: string description: >- Kích thước hình ảnh, các giá trị liệt kê: 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 guidance_scale: type: number description: 'Giá trị phạm vi: 1-20' image_url: type: string description: URL hình ảnh num_images: type: integer description: 'Số lượng hình ảnh đầu ra, phạm vi giá trị: 1-4' output_format: type: string description: 'Định dạng đầu ra của hình ảnh: "jpeg", "png"' prompt: type: string description: từ trong lời nhắc safety_tolerance: type: string description: dung sai an toàn seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập sync_mode: type: boolean description: chế độ đồng bộ refName: PostFalAiFluxProKontextMaxRequest x-apifox-orders: - aspect_ratio - guidance_scale - image_url - num_images - output_format - prompt - safety_tolerance - seed - sync_mode x-apidog-orders: - aspect_ratio - guidance_scale - image_url - num_images - output_format - prompt - safety_tolerance - seed - sync_mode examples: fal_aiflux_prokontextmax_single: value: aspect_ratio: chuỗi guidance_scale: 3.5 image_url: >- https://v3.fal.media/files/rabbit/rmgBxhwGYb2d3pl3x9sKf_output.png num_images: 1 output_format: jpeg prompt: Đặt một chiếc bánh vòng cạnh bột mì. safety_tolerance: '2' seed: 0 sync_mode: false summary: fal_aiflux_prokontextmax_single description: /fal-ai/flux-pro/kontext/max responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/e36fc67f-afa7-416a-a288-50d90a630d7a/cancel logs: [] metrics: {} queue_position: 0 request_id: e36fc67f-afa7-416a-a288-50d90a630d7a response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/e36fc67f-afa7-416a-a288-50d90a630d7a status: IN_QUEUE status_url: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp URL này. 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208906-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-pro/kontext/max/multi" Nguồn: https://docs.openaihub.net/api-45208907/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-pro/kontext/max/multi: post: summary: /fal-ai/flux-pro/kontext/max/multi deprecated: false description: >- Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-pro/kontext/max/multi operationId: fal_ai_fal_ai_flux_pro_kontext_max_multi tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_urls properties: guidance_scale: type: number description: 'Giá trị phạm vi: 1-20' image_urls: type: array items: type: string description: URL hình ảnh num_images: type: integer description: 'Số lượng hình ảnh được tạo, phạm vi: 1-4' output_format: type: string description: 'Định dạng đầu ra của hình ảnh: "jpeg", "png"' prompt: type: string description: từ trong lời nhắc safety_tolerance: type: string description: dung sai an toàn refName: PostFalAiFluxProKontextMaxMultiRequest x-apifox-orders: - guidance_scale - image_urls - num_images - output_format - prompt - safety_tolerance x-apidog-orders: - guidance_scale - image_urls - num_images - output_format - prompt - safety_tolerance examples: fal_aiflux_prokontextmaxmulti_single: value: guidance_scale: 3.5 image_urls: - >- https://v3.fal.media/files/penguin/XoW0qavfF-ahg-jX4BMyL_image.webp - >- Vui lòng tải hình ảnh lên trực tiếp để tôi có thể đọc và dịch nội dung. num_images: 1 output_format: jpeg prompt: Đặt chú vịt con nhỏ lên phía trên áo thun của người phụ nữ. safety_tolerance: '2' summary: fal_aiflux_prokontextmaxmulti_single description: /fal-ai/flux-pro/kontext/max/multi responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/30bc4aeb-0543-4198-929c-da97da4d14c9/cancel logs: [] metrics: {} queue_position: 0 request_id: 30bc4aeb-0543-4198-929c-da97da4d14c9 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/30bc4aeb-0543-4198-929c-da97da4d14c9 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/30bc4aeb-0543-4198-929c-da97da4d14c9/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208907-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/wan/v2.2-a14b/image-to-image" Nguồn: https://docs.openaihub.net/api-45208908/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/wan/v2.2-a14b/image-to-image: post: summary: /fal-ai/wan/v2.2-a14b/image-to-image deprecated: false description: >- Vui lòng dán nội dung tài liệu Markdown cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. operationId: fal_ai_fal_ai_wan_v2_2_a14b_image_to_image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - image_url - prompt properties: acceleration: type: string description: >- Tốc độ tạo hình ảnh, giá trị liệt kê: "thông thường", "không có" aspect_ratio: type: string description: Kích thước hình ảnh enable_prompt_expansion: type: boolean description: Bật phần mở rộng lời nhắc enable_safety_checker: type: boolean description: 'Bật các kiểm tra bảo mật, giá trị mặc định: true' guidance_scale: type: number description: 'Giá trị phạm vi: 1-10' guidance_scale_2: type: integer description: 'Giá trị phạm vi: 1-10' image_format: type: string description: 'Định dạng đầu ra của hình ảnh: "jpeg", "png"' image_url: type: string description: URL hình ảnh num_inference_steps: type: integer description: 'Giá trị phạm vi: 2-40' prompt: type: string description: từ trong lời nhắc shift: type: integer description: 'Giá trị phạm vi: 1-10' strength: type: number description: 'Độ mạnh, phạm vi giá trị: 0-1' refName: PostFalAiWanV22A14bImageToImageRequest x-apifox-orders: - acceleration - aspect_ratio - enable_prompt_expansion - enable_safety_checker - guidance_scale - guidance_scale_2 - image_format - image_url - num_inference_steps - prompt - shift - strength x-apidog-orders: - acceleration - aspect_ratio - enable_prompt_expansion - enable_safety_checker - guidance_scale - guidance_scale_2 - image_format - image_url - num_inference_steps - prompt - shift - strength examples: fal_aiwanv22_a14bimage_to_image_single: value: acceleration: thông thường aspect_ratio: tự động enable_prompt_expansion: false enable_safety_checker: true guidance_scale: 3.5 guidance_scale_2: 4 image_format: jpeg image_url: >- https://storage.googleapis.com/falserverless/example_inputs/wan-image-to-image-input.png num_inference_steps: 27 prompt: >- Một cảnh quay điện ảnh về một thành phố cổ lúc hoàng hôn, những tòa nhà bằng đá tinh xảo, ánh sáng vàng ấm áp shift: 2 strength: 0.5 summary: fal_aiwanv22_a14bimage_to_image_single description: /fal-ai/wan/v2.2-a14b/image-to-image responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/cancel logs: [] metrics: {} queue_position: 0 request_id: f88f1b41-b325-4f23-926b-da51481bf6c6 response_url: >- https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/wan/requests/f88f1b41-b325-4f23-926b-da51481bf6c6/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208908-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/bytedance/seedream/v4/text-to-image" Nguồn: https://docs.openaihub.net/api-45208909/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/bytedance/seedream/v4/text-to-image: post: summary: /fal-ai/bytedance/seedream/v4/text-to-image deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL được cung cấp. operationId: fal_ai_fal_ai_bytedance_seedream_v4_text_to_image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object x-apidog-orders: [] examples: fal_aibytedanceseedreamv4text_to_image_single: value: enable_safety_checker: true image_size: height: 1280 width: 1280 num_images: 1 prompt: >- Vẽ một biểu đồ thể hiện sự phân bố thảm thực vật điển hình ở bốn vùng khí hậu khác nhau: rừng mưa nhiệt đới, rừng ôn đới, sa mạc và lãnh nguyên. summary: fal_aibytedanceseedreamv4text_to_image_single description: /fal-ai/bytedance/seedream/v4/text-to-image responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel logs: [] metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208909-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/bytedance/seedream/v4/edit" Nguồn: https://docs.openaihub.net/api-45208910/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/bytedance/seedream/v4/edit: post: summary: /fal-ai/bytedance/seedream/v4/edit deprecated: false description: >- Tài liệu chính thức: https://fal.ai/models/fal-ai/bytedance/seedream/v4/edit operationId: fal_ai_fal_ai_bytedance_seedream_v4_edit tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_urls properties: enable_safety_checker: type: boolean description: 'Bật các kiểm tra bảo mật, giá trị mặc định: true' image_size: type: object required: - height - width properties: height: type: integer description: Chiều cao (pixel) width: type: integer description: Chiều rộng (pixel) description: >- Kích thước, chiều rộng và chiều cao của hình ảnh phải nằm trong khoảng: 1024-4096. x-apifox-orders: - height - width x-apidog-orders: - height - width image_urls: type: array items: type: string description: URL hình ảnh num_images: type: integer description: 'Số lượng ảnh được tạo: 1-6' prompt: type: string description: từ trong lời nhắc refName: PostFalAiBytedanceSeedreamV4EditRequest x-apifox-orders: - enable_safety_checker - image_size - image_urls - num_images - prompt x-apidog-orders: - enable_safety_checker - image_size - image_urls - num_images - prompt examples: fal_aibytedanceseedreamv4edit_single: value: enable_safety_checker: true image_size: height: 1280 width: 1280 image_urls: - >- https://storage.googleapis.com/falserverless/example_inputs/seedream4_edit_input_1.png - >- https://storage.googleapis.com/falserverless/example_inputs/seedream4_edit_input_2.png - >- https://storage.googleapis.com/falserverless/example_inputs/seedream4_edit_input_3.png - >- https://storage.googleapis.com/falserverless/example_inputs/seedream4_edit_input_4.png num_images: 1 prompt: Mặc quần áo và giày cho người mẫu. summary: fal_aibytedanceseedreamv4edit_single description: /fal-ai/bytedance/seedream/v4/edit responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/bytedance/requests/42a7eb80-8916-43ae-b27b-02e79f479977/cancel logs: [] metrics: {} queue_position: 0 request_id: 42a7eb80-8916-43ae-b27b-02e79f479977 response_url: >- https://queue.fal.run/fal-ai/bytedance/requests/42a7eb80-8916-43ae-b27b-02e79f479977 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/bytedance/requests/42a7eb80-8916-43ae-b27b-02e79f479977/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208910-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/vidu/reference-to-image" Nguồn: https://docs.openaihub.net/api-45208911/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/vidu/reference-to-image: post: summary: /fal-ai/vidu/reference-to-image deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. operationId: fal_ai_fal_ai_vidu_reference_to_image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - reference_image_urls properties: aspect_ratio: type: string description: 'Tỷ lệ hình ảnh, các giá trị liệt kê: 1:1, 16:9, 9:16' prompt: type: string description: từ trong lời nhắc reference_image_urls: type: array items: type: string description: URL hình ảnh tham khảo refName: PostFalAiViduReferenceToImageRequest x-apifox-orders: - aspect_ratio - prompt - reference_image_urls x-apidog-orders: - aspect_ratio - prompt - reference_image_urls examples: fal_aividureference_to_image_single: value: aspect_ratio: '16:9' prompt: >- Con quỷ nhỏ đang nhìn quả táo trên bãi biển và đi vòng quanh nó. reference_image_urls: - >- https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference1.png - >- https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference2.png - >- https://storage.googleapis.com/falserverless/web-examples/vidu/new-examples/reference3.png summary: fal_aividureference_to_image_single description: /fal-ai/vidu/reference-to-image responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/cancel logs: [] metrics: {} queue_position: 0 request_id: 405a114e-04bd-463a-a98c-895502cfdce9 response_url: >- Vui lòng dán nội dung tài liệu cần dịch vào đây vì tôi không thể truy cập trực tiếp đường dẫn này. status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/vidu/requests/405a114e-04bd-463a-a98c-895502cfdce9/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208911-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/imagen4/preview" Nguồn: https://docs.openaihub.net/api-45208912/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/imagen4/preview: post: summary: /fal-ai/imagen4/preview deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/imagen4/preview' operationId: post-fal-ai-imagen4-preview tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình. Kiểu liệt kê: 1:1, 16:9, 9:16, 3:4, 4:3' num_images: type: integer description: 'Số lượng hình ảnh cần tạo. Phạm vi: 1–4' prompt: type: string description: Lời nhắc resolution: type: string description: 'Độ phân giải. Kiểu liệt kê: "1K", "2K"' x-apifox-orders: - aspect_ratio - num_images - prompt - resolution x-apidog-orders: - aspect_ratio - num_images - prompt - resolution examples: example: value: aspect_ratio: '1:1' num_images: 1 prompt: >- Ghi lại một cảnh cận cảnh thân mật, ngập trong ánh nắng cuối buổi chiều ấm áp, dịu nhẹ, len vào một căn bếp đậm chất thập niên 1960. Tâm điểm là một gói bột mì đa dụng cổ điển có thiết kế duyên dáng, được đặt đầy mời gọi trên mặt bàn Formica lốm đốm. Bao bì gợi lên cảm giác hoài niệm thuần khiết: có thể làm từ giấy dày, hơi sần, mang tông kem ấm, được trang trí bằng kiểu chữ đơn giản, đậm nét (chữ có chân thân thiện hoặc chữ viết tay) với hai màu đỏ và xanh lam kinh điển, ghi “ALL-PURPOSE FLOUR”, cùng một hình minh họa thú vị như bó lúa mì cách điệu hoặc nhân vật thợ làm bánh vui vẻ. Ở phần cuối bao bì, bằng chữ in đậm nhỏ hơn: “NET WT 5 LBS (80 OZ) 2.27kg”. Lấy nét rõ vào các chi tiết của bao bì – các mép hơi mềm của túi giấy, kết cấu của kỹ thuật in cổ điển, dòng chữ "All-Purpose Flour" đầy cuốn hút. Những gợi ý tinh tế về căn bếp thập niên 1960 tạo khung cho cảnh chụp – viền crôm của mặt bàn ánh lên dịu nhẹ, một thoáng mờ của tấm ốp tường bằng gạch men màu vàng nhạt, hoặc góc của một bộ hộp đựng bằng kim loại cổ điển nằm ngay ngoài vùng nét. Độ sâu trường ảnh nông giữ sự chú ý tập trung hoàn toàn vào bao bì được thiết kế đẹp mắt, tạo nên một thẩm mỹ giàu sự ấm áp, chân thực và sức hấp dẫn hoài cổ. resolution: 1K summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3/cancel metrics: {} queue_position: 0 request_id: 484ccb37-5477-44fe-8e75-6d6f6e9160b3 response_url: >- https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/imagen4/requests/484ccb37-5477-44fe-8e75-6d6f6e9160b3/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208912-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/qwen-image-edit-lora" Nguồn: https://docs.openaihub.net/api-45208913/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/qwen-image-edit-lora: post: summary: /fal-ai/qwen-image-edit-lora deprecated: false description: '' operationId: post-fal-ai-qwen-image-edit-lora tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: acceleration: type: string description: 'Mức tăng tốc tạo hình ảnh. Enum: ''none'', ''regular'', ''high''' enable_safety_checker: type: boolean description: 'Bật trình kiểm tra an toàn. Mặc định: true' guidance_scale: type: integer description: 'Phạm vi: 2–100' image_url: type: string description: URL hình ảnh negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) num_images: type: integer description: 'Số lượng hình ảnh cần tạo. Phạm vi: 1–4' num_inference_steps: type: integer description: 'Phạm vi: 2–100' output_format: type: string description: 'Định dạng ảnh đầu ra: jpeg, png' prompt: type: string description: Lời nhắc x-apifox-orders: - acceleration - enable_safety_checker - guidance_scale - image_url - negative_prompt - num_images - num_inference_steps - output_format - prompt x-apidog-orders: - acceleration - enable_safety_checker - guidance_scale - image_url - negative_prompt - num_images - num_inference_steps - output_format - prompt examples: example: value: acceleration: thông thường enable_safety_checker: true guidance_scale: 4 image_url: >- Không thể truy cập nội dung hình ảnh từ URL được cung cấp. Vui lòng tải hình ảnh lên trực tiếp hoặc dán nội dung tài liệu cần dịch. negative_prompt: mờ, xấu num_images: 1 num_inference_steps: 30 output_format: png prompt: Đổi túi thành Apple MacBook summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208913-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/qwen-image-edit-plus" Nguồn: https://docs.openaihub.net/api-45208914/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/qwen-image-edit-plus: post: summary: /fal-ai/qwen-image-edit-plus deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/qwen-image-edit-plus' operationId: post-fal-ai-qwen-image-edit-plus tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_urls properties: enable_safety_checker: type: boolean description: 'Bật trình kiểm tra an toàn. Mặc định: true' guidance_scale: type: integer description: 'Phạm vi: 0–20' image_size: type: string description: >- Enum kích thước hình ảnh: square、square_hd、landscape_4_3、landscape_16_9、portrait_3_4、portrait_9_16 image_urls: type: array items: type: string description: URL hình ảnh negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) num_images: type: integer description: 'Số lượng hình ảnh cần tạo. Phạm vi: 1–4' num_inference_steps: type: integer description: 'Phạm vi: 2–100' output_format: type: string description: 'Định dạng ảnh đầu ra: jpeg, png' prompt: type: string description: Lời nhắc. x-apifox-orders: - enable_safety_checker - guidance_scale - image_size - image_urls - negative_prompt - num_images - num_inference_steps - output_format - prompt x-apidog-orders: - enable_safety_checker - guidance_scale - image_size - image_urls - negative_prompt - num_images - num_inference_steps - output_format - prompt examples: example: value: enable_safety_checker: true guidance_scale: 4 image_size: square_hd image_urls: - >- Vui lòng tải ảnh lên trực tiếp để tôi có thể đọc và dịch nội dung. - >- https://v3.fal.media/files/penguin/BCOZp6teRhSQFuOXpbBOa_da8ef9b4982347a2a62a516b737d4f21.png - >- Vui lòng tải ảnh trực tiếp lên cuộc trò chuyện hoặc dán nội dung tài liệu cần dịch. Tôi không thể đọc nội dung ảnh chỉ từ URL này. negative_prompt: mờ, xấu num_images: 1 num_inference_steps: 50 output_format: png prompt: >- Chân dung cận cảnh một người phụ nữ đứng trước chiếc xe này trên đường cao tốc này summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121/cancel metrics: {} queue_position: 0 request_id: 9c08e7d8-312c-402d-a691-c207a9cb8121 response_url: >- https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/qwen-image-edit-plus/requests/9c08e7d8-312c-402d-a691-c207a9cb8121/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208914-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/kling-video/v2.5-turbo/pro/text-to-video" Nguồn: https://docs.openaihub.net/api-45208915/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/kling-video/v2.5-turbo/pro/text-to-video: post: summary: /fal-ai/kling-video/v2.5-turbo/pro/text-to-video deprecated: false description: '' operationId: post-fal-ai-kling-video-v2-5-turbo-pro-text-to-video tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: aspect_ratio: type: string description: 'Kiểu liệt kê tỷ lệ khung hình video: 16:9, 9:16, 1:1' cfg_scale: type: number description: 'Phạm vi: 0–1' duration: type: string description: 'Gia tri liet ke thoi luong video duoc tao: 5, 10' negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Câu lệnh tạo video. x-apifox-orders: - aspect_ratio - cfg_scale - duration - negative_prompt - prompt x-apidog-orders: - aspect_ratio - cfg_scale - duration - negative_prompt - prompt examples: example: value: aspect_ratio: '16:9' cfg_scale: 0.5 duration: '5' negative_prompt: mờ, biến dạng và chất lượng thấp prompt: >- Một vị lãnh chúa cao quý bước đi giữa thần dân của mình, sự hiện diện của ngài mang lại cảm giác an tâm và ấm áp. Ngài chào đón họ bằng một nụ cười hiền hòa, hiện thân cho những hy vọng của họ và giành được sự kính trọng qua những tương tác giản dị. Bầu không khí gần gũi và chân thành, làm nổi bật mối gắn kết giữa người lãnh đạo và cộng đồng. summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208915-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/kling-video/v2.5-turbo/pro/image-to-video" Nguồn: https://docs.openaihub.net/api-45208916/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/kling-video/v2.5-turbo/pro/image-to-video: post: summary: /fal-ai/kling-video/v2.5-turbo/pro/image-to-video deprecated: false description: >- Tài liệu chính thức: https://fal.ai/models/fal-ai/kling-video/v2.5-turbo/pro/image-to-video operationId: post-fal-ai-kling-video-v2-5-turbo-pro-image-to-video tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: cfg_scale: type: number description: 'Phạm vi: 0–1' duration: type: string description: 'Gia tri liet ke thoi luong video duoc tao: 5, 10' image_url: type: string description: 'URL hình ảnh; chấp nhận: jpg, jpeg, png, webp, gif, avif' negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Lời nhắc x-apifox-orders: - cfg_scale - duration - image_url - negative_prompt - prompt x-apidog-orders: - cfg_scale - duration - image_url - negative_prompt - prompt examples: example: value: cfg_scale: 0.5 duration: '5' image_url: >- https://v3.fal.media/files/panda/HnY2yf-BbzlrVQxR-qP6m_9912d0932988453aadf3912fc1901f52.jpg negative_prompt: mờ, biến dạng và chất lượng thấp prompt: >- Một vạch xuất phát nổi bật phân chia hai chiếc xe mạnh mẽ, động cơ gầm vang trước thử thách phía trước. Chúng lao vút lên trong sức nóng của cuộc tranh tài, hòa thành một dải tốc độ và ánh crôm nhòe đi. Vạch đích hiện ra trước mắt khi cả hai quyết liệt tranh giành chiến thắng. summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/kling-video/requests/727028ec-aa98-4073-9bcd-0acb386abcfc/cancel metrics: {} queue_position: 0 request_id: 727028ec-aa98-4073-9bcd-0acb386abcfc response_url: >- https://queue.fal.run/fal-ai/kling-video/requests/727028ec-aa98-4073-9bcd-0acb386abcfc status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/kling-video/requests/727028ec-aa98-4073-9bcd-0acb386abcfc/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208916-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-lora" Nguồn: https://docs.openaihub.net/api-45208917/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-lora: post: summary: /fal-ai/flux-lora deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-lora' operationId: post-fal-ai-flux-lora tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: enable_safety_checker: type: boolean description: 'Bật trình kiểm tra an toàn. Mặc định: true' guidance_scale: type: number description: 'Phạm vi: 0–35' image_size: type: string description: >- Kiểu liệt kê kích thước hình ảnh: square、square pro、landscape_4_3、landscape_16_9、portrait_3_4 num_images: type: integer description: Số lượng hình ảnh, phạm vi 1–4 num_inference_steps: type: integer description: >- Vui lòng cung cấp nội dung tài liệu kỹ thuật trong phạm vi 1–50 để tôi dịch sang tiếng Việt. output_format: type: string description: 'Định dạng ảnh đầu ra: jpeg, png' prompt: type: string description: Lời nhắc x-apifox-orders: - enable_safety_checker - guidance_scale - image_size - num_images - num_inference_steps - output_format - prompt x-apidog-orders: - enable_safety_checker - guidance_scale - image_size - num_images - num_inference_steps - output_format - prompt examples: example: value: enable_safety_checker: true guidance_scale: 3.5 image_size: landscape_4_3 num_images: 1 num_inference_steps: 28 output_format: jpeg prompt: >- Cảnh cực cận của một mắt hổ duy nhất, nhìn thẳng từ chính diện. Mống mắt và đồng tử chi tiết. Lấy nét sắc nét vào kết cấu và màu sắc của mắt. Ánh sáng tự nhiên làm nổi bật độ long lanh và chiều sâu chân thực của mắt. Từ "FLUX" được vẽ đè lên trên bằng những nét cọ lớn màu trắng, với kết cấu hiện rõ. summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/cancel metrics: {} queue_position: 0 request_id: 07e0be22-3380-4699-a377-48729443435c response_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/07e0be22-3380-4699-a377-48729443435c/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208917-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-lora/image-to-image" Nguồn: https://docs.openaihub.net/api-45208918/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-lora/image-to-image: post: summary: /fal-ai/flux-lora/image-to-image deprecated: false description: >- Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-lora/image-to-image operationId: post-fal-ai-flux-lora-image-to-image tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: enable_safety_checker: type: boolean description: 'Bật trình kiểm tra an toàn. Mặc định: true' guidance_scale: type: number description: 'Phạm vi: 0–35' image_url: type: string description: 'URL hình ảnh; chấp nhận: jpg, jpeg, png, webp, gif, avif' num_images: type: integer description: Số lượng hình ảnh, phạm vi 1–4 num_inference_steps: type: integer description: >- Vui lòng cung cấp nội dung tài liệu kỹ thuật trong phạm vi 1–50 để tôi dịch sang tiếng Việt. output_format: type: string description: 'Định dạng ảnh đầu ra: jpeg, png' prompt: type: string description: Lời nhắc strength: type: number description: độ mạnh, phạm vi 0.01–1 x-apifox-orders: - enable_safety_checker - guidance_scale - image_url - num_images - num_inference_steps - output_format - prompt - strength x-apidog-orders: - enable_safety_checker - guidance_scale - image_url - num_images - num_inference_steps - output_format - prompt - strength examples: example: value: enable_safety_checker: true guidance_scale: 3.5 image_url: >- https://storage.googleapis.com/falserverless/example_inputs/dog.png num_images: 1 num_inference_steps: 28 output_format: jpeg prompt: >- Một bức ảnh chụp một con sư tử đang ngồi trên một băng ghế đá strength: 0.85 summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/cancel metrics: {} queue_position: 0 request_id: 9b54828d-3c2b-4e0e-ac8c-ac234504015e response_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/9b54828d-3c2b-4e0e-ac8c-ac234504015e/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208918-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/flux-lora/inpainting" Nguồn: https://docs.openaihub.net/api-45208919/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/flux-lora/inpainting: post: summary: /fal-ai/flux-lora/inpainting deprecated: false description: 'Tài liệu chính thức: https://fal.ai/models/fal-ai/flux-lora/inpainting' operationId: post-fal-ai-flux-lora-inpainting tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai - fal-ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url - mask_url properties: enable_safety_checker: type: boolean description: 'Bật trình kiểm tra an toàn. Mặc định: true' guidance_scale: type: number description: 'Phạm vi: 0–35' image_url: type: string description: 'URL hình ảnh; chấp nhận: jpg, jpeg, png, webp, gif, avif' mask_url: type: string description: >- URL mặt nạ; định dạng được chấp nhận: jpg, jpeg, png, webp, gif, avif num_images: type: integer description: Số lượng hình ảnh, phạm vi 1–4 num_inference_steps: type: integer description: >- Vui lòng cung cấp nội dung tài liệu kỹ thuật trong phạm vi 1–50 để tôi dịch sang tiếng Việt. output_format: type: string description: 'Định dạng ảnh đầu ra: jpeg, png' prompt: type: string description: Lời nhắc strength: type: number description: độ mạnh, phạm vi 0.01–1 x-apifox-orders: - enable_safety_checker - guidance_scale - image_url - mask_url - num_images - num_inference_steps - output_format - prompt - strength x-apidog-orders: - enable_safety_checker - guidance_scale - image_url - mask_url - num_images - num_inference_steps - output_format - prompt - strength examples: example: value: enable_safety_checker: true guidance_scale: 3.5 image_url: >- https://storage.googleapis.com/falserverless/example_inputs/dog.png mask_url: >- https://storage.googleapis.com/falserverless/example_inputs/dog_mask.png num_images: 1 num_inference_steps: 28 output_format: jpeg prompt: >- Một bức ảnh chụp một con sư tử đang ngồi trên một băng ghế đá strength: 0.85 summary: example responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: '1': summary: '1' value: cancel_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/cancel metrics: {} queue_position: 0 request_id: acf05732-7cb3-445b-9f39-fdaeccb1d730 response_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-pro/requests/acf05732-7cb3-445b-9f39-fdaeccb1d730/status '2': summary: '2' value: cancel_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9/cancel metrics: {} queue_position: 0 request_id: 72a35804-b407-4b09-894b-3a35559c38f9 response_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/flux-lora/requests/72a35804-b407-4b09-894b-3a35559c38f9/status 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/Fal.ai x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208919-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/veo3" Nguồn: https://docs.openaihub.net/api-45208920/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/veo3: post: summary: /fal-ai/veo3 deprecated: false description: 'Địa chỉ tài liệu chính thức: https://fal.ai/models/fal-ai/veo3' operationId: fal_ai_fal_ai_veo3 tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai/falai-veo3 tạo video - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của video được tạo. Nếu đặt thành 1:1, video sẽ bị kéo giãn. Giá trị mặc định: "16:9", phạm vi [16:9,9:16,1:1] auto_fix: type: boolean description: >- Có tự động thử sửa các câu lệnh không đáp ứng chính sách nội dung hoặc các bước kiểm tra tính hợp lệ khác bằng cách viết lại hay không. Mặc định: true duration: type: string description: >- Thời lượng của video được tạo (tính bằng giây) Giá trị mặc định: "8s" enhance_prompt: type: boolean description: >- Có tăng cường quá trình tạo video hay không. Giá trị mặc định: true generate_audio: type: boolean description: >- Có tạo âm thanh cho video hay không. Nếu là false, số điểm sẽ giảm %33. Giá trị mặc định: true prompt: type: string description: Lời nhắc văn bản resolution: type: string description: >- Độ phân giải mặc định của video được tạo: "720p" Phạm vi giá trị [720p, 1080p] refName: PostFalAiVeo3Request x-apifox-orders: - aspect_ratio - auto_fix - duration - enhance_prompt - generate_audio - prompt - resolution x-apidog-orders: - aspect_ratio - auto_fix - duration - enhance_prompt - generate_audio - prompt - resolution examples: fal_aiveo3_single: value: aspect_ratio: '16:9' auto_fix: true duration: 8s enhance_prompt: true generate_audio: true prompt: >- Một cuộc phỏng vấn đường phố tự nhiên trên vỉa hè đông đúc ở Thành phố New York vào buổi chiều. Người phỏng vấn cầm một chiếc micrô đơn giản, không có thương hiệu và hỏi: Bạn đã xem mô hình Veo3 mới của Google chưa? Đây là một mô hình cực kỳ tốt. Người được hỏi trả lời: Rồi, tôi đã xem, nó đã có sẵn trên fal. Nó tốt đến khó tin. resolution: 720p summary: fal_aiveo3_single description: /fal-ai/veo3 responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827/cancel logs: [] metrics: {} queue_position: 0 request_id: 57b19308-8d3e-4196-b8bf-5ca80fa90827 response_url: >- https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/veo3/requests/57b19308-8d3e-4196-b8bf-5ca80fa90827/status 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/Fal.ai/falai-veo3 tạo video x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208920-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/veo3/fast/image-to-video" Nguồn: https://docs.openaihub.net/api-45208921/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/veo3/fast/image-to-video: post: summary: /fal-ai/veo3/fast/image-to-video deprecated: false description: >- Địa chỉ tài liệu chính thức: https://fal.ai/models/fal-ai/veo3/fast/image-to-video operationId: fal_ai_fal_ai_veo3_fast_image_to_video tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai/falai-veo3 tạo video - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình mặc định cho video được tạo: "tự động"' duration: type: string description: >- Thời lượng của video được tạo (tính bằng giây) Giá trị mặc định: "8s" generate_audio: type: boolean description: >- Có tạo âm thanh cho video hay không. Nếu là false, số điểm sẽ giảm %33. Giá trị mặc định: true image_url: type: string description: >- URL của hình ảnh đầu vào cần tạo hiệu ứng chuyển động. Độ phân giải nên từ 720p trở lên, với tỷ lệ khung hình 16:9. Nếu tỷ lệ khung hình của hình ảnh không phải là 16:9, hình ảnh sẽ được cắt để vừa khung. prompt: type: string description: >- Một gợi ý bằng văn bản mô tả cách hình ảnh nên được tạo hiệu ứng chuyển động resolution: type: string description: >- Độ phân giải mặc định của video được tạo: "720p" Phạm vi giá trị [720p, 1080p] refName: PostFalAiVeo3FastImageToVideoRequest x-apifox-orders: - aspect_ratio - duration - generate_audio - image_url - prompt - resolution x-apidog-orders: - aspect_ratio - duration - generate_audio - image_url - prompt - resolution examples: fal_aiveo3fastimage_to_video_single: value: aspect_ratio: '16:9' duration: 8s generate_audio: true image_url: >- https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png prompt: >- Một phụ nữ nhìn vào máy quay, hít vào, rồi hào hứng thốt lên: "mọi người đã thử Veo3 Image-to-Video trên Fal chưa? Nó tuyệt vời lắm!" resolution: 720p summary: fal_aiveo3fastimage_to_video_single description: /fal-ai/veo3/fast/image-to-video responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061/cancel logs: [] metrics: {} queue_position: 0 request_id: 1b24b3ae-16a2-4d19-b10d-1e323ebff061 response_url: >- https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/veo3/requests/1b24b3ae-16a2-4d19-b10d-1e323ebff061/status 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/Fal.ai/falai-veo3 tạo video x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208921-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/veo3/fast" Nguồn: https://docs.openaihub.net/api-45208922/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/veo3/fast: post: summary: /fal-ai/veo3/fast deprecated: false description: 'Địa chỉ tài liệu chính thức: https://fal.ai/models/fal-ai/veo3/fast' operationId: fal_ai_fal_ai_veo3_fast tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai/falai-veo3 tạo video - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của video được tạo. Nếu đặt thành 1:1, video sẽ bị kéo giãn. Giá trị mặc định: "16:9", phạm vi [16:9,9:16,1:1] auto_fix: type: boolean description: >- Có tự động thử sửa các câu lệnh không đáp ứng chính sách nội dung hoặc các bước kiểm tra tính hợp lệ khác bằng cách viết lại hay không. Mặc định: true duration: type: string description: >- Thời lượng của video được tạo (tính bằng giây) Giá trị mặc định: "8s" enhance_prompt: type: boolean description: >- Có tăng cường quá trình tạo video hay không. Giá trị mặc định: true generate_audio: type: boolean description: >- Có tạo âm thanh cho video hay không. Nếu là false, số điểm sẽ giảm %33. Giá trị mặc định: true prompt: type: string description: Một gợi ý bằng văn bản mô tả video cần tạo resolution: type: string description: >- Độ phân giải mặc định của video được tạo: "720p" Phạm vi giá trị [720p, 1080p] refName: PostFalAiVeo3FastRequest x-apifox-orders: - aspect_ratio - auto_fix - duration - enhance_prompt - generate_audio - prompt - resolution x-apidog-orders: - aspect_ratio - auto_fix - duration - enhance_prompt - generate_audio - prompt - resolution examples: fal_aiveo3fast_single: value: aspect_ratio: '16:9' auto_fix: true duration: 4s enhance_prompt: true generate_audio: false prompt: >- Một cuộc phỏng vấn đường phố tự nhiên trên vỉa hè đông đúc ở Thành phố New York vào buổi chiều. Người phỏng vấn cầm một chiếc micrô đơn giản, không có thương hiệu và hỏi: Bạn đã xem mô hình Veo3 mới của Google chưa? Đây là một mô hình cực kỳ tốt. Người được hỏi trả lời: Rồi, tôi đã xem, nó đã có sẵn trên fal. Nó tốt đến khó tin. resolution: 720p summary: fal_aiveo3fast_single description: /fal-ai/veo3/fast responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/veo3/requests/fabda298-3a7c-43f6-ba3a-2bde5b344173/cancel logs: [] metrics: {} queue_position: 0 request_id: fabda298-3a7c-43f6-ba3a-2bde5b344173 response_url: >- https://queue.fal.run/fal-ai/veo3/requests/fabda298-3a7c-43f6-ba3a-2bde5b344173 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/veo3/requests/fabda298-3a7c-43f6-ba3a-2bde5b344173/status 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/Fal.ai/falai-veo3 tạo video x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208922-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/veo3/image-to-video" Nguồn: https://docs.openaihub.net/api-45208923/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/veo3/image-to-video: post: summary: /fal-ai/veo3/image-to-video deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ đường dẫn đã cung cấp. operationId: fal_ai_fal_ai_veo3_image_to_video tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai/falai-veo3 tạo video - Fal.ai parameters: [] requestBody: content: application/json: schema: type: object required: - prompt - image_url properties: aspect_ratio: type: string description: >- Kích thước, giá trị liệt kê: 16:9, 9:16, auto, giá trị mặc định: "auto" duration: type: string description: 'Thời lượng video, giá trị mặc định: "8 giây"' generate_audio: type: boolean description: 'Tạo âm thanh, giá trị mặc định: true' image_url: type: string description: URL hình ảnh tham chiếu prompt: type: string description: từ trong lời nhắc resolution: type: string description: 'Độ phân giải, giá trị liệt kê: "720p", "1080p"' refName: PostFalAiVeo3ImageToVideoRequest x-apifox-orders: - aspect_ratio - duration - generate_audio - image_url - prompt - resolution x-apidog-orders: - aspect_ratio - duration - generate_audio - image_url - prompt - resolution examples: fal_aiveo3image_to_video_single: value: aspect_ratio: tự động duration: 8s generate_audio: true image_url: >- https://storage.googleapis.com/falserverless/example_inputs/veo3-i2v-input.png prompt: >- Một phụ nữ nhìn vào máy quay, hít vào, rồi hào hứng thốt lên: "mọi người đã thử Veo3 Image-to-Video trên Fal chưa? Nó tuyệt vời lắm!" resolution: 720p summary: fal_aiveo3image_to_video_single description: /fal-ai/veo3/image-to-video responses: '200': description: '' content: application/json: schema: type: object required: - status - request_id - response_url - status_url - cancel_url - logs - metrics - queue_position properties: cancel_url: type: string description: URL hủy tác vụ logs: type: array items: type: string description: Nhật ký chạy nullable: true metrics: type: object description: Số liệu chạy x-apidog-orders: [] queue_position: type: integer description: Vị trí trong hàng đợi request_id: type: string description: ID truy vết yêu cầu response_url: type: string description: URL truy vấn kết quả status: type: string description: Trạng thái status_url: type: string description: URL truy vấn trạng thái refName: PostFalAiVeo3ImageToVideoResponse x-apifox-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url x-apidog-orders: - cancel_url - logs - metrics - queue_position - request_id - response_url - status - status_url examples: example: summary: example value: cancel_url: >- https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10/cancel logs: [] metrics: {} queue_position: 0 request_id: bcd3b436-b7af-42f3-8649-204657bfaf10 response_url: >- https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10 status: IN_QUEUE status_url: >- https://queue.fal.run/fal-ai/veo3/requests/bcd3b436-b7af-42f3-8649-204657bfaf10/status 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/Fal.ai/falai-veo3 tạo video x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208923-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "/fal-ai/veo3/requests/{request_id}" Nguồn: https://docs.openaihub.net/api-45208924/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /fal-ai/veo3/requests/{request_id}: get: summary: /fal-ai/veo3/requests/{request_id} deprecated: false description: Truy vấn trạng thái và kết quả của tác vụ tạo video Veo3. operationId: fal_ai_fal_ai_veo3_requests tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai/falai-veo3 tạo video - Fal.ai parameters: - name: request_id in: path description: ID truy vết yêu cầu required: true example: 46d69eca-9cf3-475b-974d-8e8fc405cd67 schema: type: string responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK headers: {} x-apidog-name: '' '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/Fal.ai/falai-veo3 tạo video x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208924-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy kết quả yêu cầu" Nguồn: https://docs.openaihub.net/api-45208925/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /tencent-vod/v1/query/{task_id}: get: summary: Lấy kết quả yêu cầu deprecated: false description: >- Truy vấn trạng thái/kết quả của một tác vụ bất đồng bộ được tạo qua `POST /tencent-vod/v1/aigc-image`, `/aigc-video` hoặc `/template-effect`. operationId: tencent_vod_query_task tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ảnh thô AIGC của Tencent - VOD của Tencent Cloud parameters: - name: task_id in: path description: ID tác vụ bất đồng bộ required: true example: '' schema: type: string responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: Response: RequestId: req-example TaskId: task-example headers: {} x-apidog-name: thành công '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/Ảnh thô AIGC của Tencent x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208925-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ" Nguồn: https://docs.openaihub.net/api-45208926/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /tencent-vod/v1/aigc-image: post: summary: Tạo tác vụ deprecated: false description: >- Tạo ảnh theo yêu cầu trên Đám mây Tencent. Tài liệu chính thức: https://cloud.tencent.com/document/product/266/126240 operationId: tencent_vod_sample tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ảnh thô AIGC của Tencent - VOD của Tencent Cloud parameters: [] requestBody: content: application/json: schema: type: object required: - model_name - prompt - model_version properties: enhance_prompt: type: string description: >- Có tự động tối ưu hóa từ ngữ trong lời nhắc hay không. Khi được bật, các lời nhắc gửi đến sẽ tự động được tối ưu hóa để cải thiện chất lượng bản dựng. Các giá trị gồm: Enabled: bật; Disabled: tắt; ext_info: type: string description: >- Các trường dành riêng, được sử dụng cho các mục đích đặc biệt. Giá trị ví dụ: myextinfo file_infos: type: array items: type: object properties: file_id: type: string description: >- ID tệp phương tiện của tệp hình ảnh, là mã định danh duy nhất toàn cục của tệp trên dịch vụ đám mây theo yêu cầu, được hệ thống nền của dịch vụ đám mây theo yêu cầu cấp sau khi tải lên thành công. Có thể lấy trường này trong thông báo sự kiện hoàn tất tải video lên hoặc trên bảng điều khiển đám mây theo yêu cầu. Tham số này hợp lệ khi giá trị của Type là File. Mô tả: 1. Nên sử dụng hình ảnh có kích thước nhỏ hơn 7M; 2. Các giá trị định dạng hình ảnh là: jpeg, jpg, png, webp. Giá trị ví dụ: 3704211***509819 text: type: string description: >- Nhập thông tin mô tả của hình ảnh để giúp mô hình hiểu hình ảnh. Chỉ hợp lệ với GEM 2.5 và GEM 3.0. Giá trị ví dụ: Bối cảnh tác vụ: Đây là tòa nhà chính cần được cải tạo (Hình 1), không được thay đổi hình dạng của tòa nhà. type: type: string description: |- Loại tệp video đầu vào. Các giá trị gồm: File: tệp phương tiện theo yêu cầu; Url: URL có thể truy cập; Giá trị ví dụ: File url: type: string description: >- URL tệp có thể truy cập được. Tham số này hợp lệ khi giá trị của Type là Url. Mô tả: 1. Nên sử dụng hình ảnh nhỏ hơn 7M; 2. Giá trị định dạng hình ảnh là: jpeg, jpg, png, webp. Giá trị ví dụ: https://test.com/1.png x-apifox-orders: - file_id - text - type - url x-apidog-orders: - file_id - text - type - url description: Danh sách thông tin tệp model_name: type: string description: |- Tên mô hình. Giá trị: GEM: Gemini; Qwen: Qianwen. Hunyuan: Hunyuan. Giá trị ví dụ: GEM model_version: type: string description: |- phien ban mo hinh. Gia tri: Khi ModelName la GEM, cac gia tri tuy chon la 2.5 va 3.0; Khi ModelName la Qwen, gia tri tuy chon la 0925; Khi ModelName la Hunyuan, gia tri tuy chon la 3.0; Gia tri vi du: 2.5 negative_prompt: type: string description: Từ khóa trong câu lệnh để ngăn mô hình tạo hình ảnh. output_config: type: object properties: aspect_ratio: type: string description: >- Chỉ định tỷ lệ khung hình của hình ảnh được tạo. Khi ModelName là GEM, các giá trị tùy chọn gồm 1:1, 3:2, 2:3, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9 và 21:9; Khi ModelName là Qwen hoặc Jimeng, tính năng này hiện chưa được hỗ trợ. Jimeng sẽ kết hợp ý định trong Prompt với kích thước hình ảnh tham chiếu, và mô hình sẽ xác định tỷ lệ khung hình của hình ảnh đầu ra một cách thông minh. Giá trị ví dụ: 16:9 input_compliance_check: type: string description: >- Có bật kiểm tra tuân thủ cho nội dung đầu vào hay không. Các giá trị gồm: Enabled: bật; Disabled: tắt; Giá trị ví dụ: Enabled output_compliance_check: type: string description: >- Có bật kiểm tra tính tuân thủ của nội dung đầu ra hay không. Các giá trị gồm: Enabled: bật; Disabled: tắt; Giá trị ví dụ: Enabled person_generation: type: string description: >- Có cho phép tạo nhân vật hoặc khuôn mặt hay không. Các giá trị gồm: AllowAdult: Cho phép tạo người trưởng thành; Disallowed: Không được phép đưa người hoặc khuôn mặt vào hình ảnh; Giá trị ví dụ: AllowAdult resolution: type: string description: >- Độ phân giải của hình ảnh được tạo. Các giá trị tùy chọn gồm 720P, 1080P, 2K, 4K, 1024x1024, 2048x2048, 2304x1728, 2496x1664, 2560x1440 , 3024x1296, 4096x4096, 4694x3520, 4992x3328, 5404x3040, 6198x2656. Khi sử dụng mô hình Jimeng, bạn nên chỉ định độ phân giải và tỷ lệ khung hình của hình ảnh thông qua Prompt. Giá trị ví dụ: 1024x1024 storage_mode: type: string description: >- Chế độ lưu trữ. Các giá trị gồm: Permanent: Lưu trữ vĩnh viễn, các tệp hình ảnh được tạo sẽ được lưu trữ trên đám mây khi có yêu cầu, và có thể lấy FileId trong thông báo sự kiện; Temporary: Lưu trữ tạm thời. Các tệp hình ảnh được tạo sẽ không được lưu trữ trên đám mây khi có yêu cầu. Có thể lấy URL truy cập tạm thời trong thông báo sự kiện; Giá trị mặc định: Temporary description: Cấu hình tệp phương tiện đầu ra của tác vụ tạo ảnh. x-apifox-orders: - aspect_ratio - input_compliance_check - output_compliance_check - person_generation - resolution - storage_mode x-apidog-orders: - aspect_ratio - input_compliance_check - output_compliance_check - person_generation - resolution - storage_mode prompt: type: string description: từ trong lời nhắc session_context: type: string description: >- Ngữ cảnh nguồn, được dùng để truyền thông tin yêu cầu của người dùng một cách minh bạch. Lệnh gọi lại khi hoàn tất quá trình tái tạo chất lượng âm thanh và video sẽ trả về giá trị của trường này, với độ dài tối đa là 1000 ký tự. Giá trị ví dụ: mySessionContext session_id: type: string description: >- Mã định danh được dùng để loại bỏ yêu cầu trùng lặp. Nếu có yêu cầu sử dụng cùng mã định danh trong vòng ba ngày, yêu cầu này sẽ trả về lỗi. Độ dài tối đa là 50 ký tự; không cung cấp giá trị hoặc dùng chuỗi rỗng để biểu thị rằng không loại bỏ yêu cầu trùng lặp. Giá trị ví dụ: mysession tasks_priority: type: integer description: >- Mức độ ưu tiên của tác vụ. Giá trị càng lớn thì mức độ ưu tiên càng cao. Phạm vi giá trị là từ -10 đến 10. Nếu để trống, giá trị được hiểu là 0. Giá trị ví dụ: 10 refName: TencentVodSampleRequest x-apifox-orders: - enhance_prompt - ext_info - file_infos - model_name - model_version - negative_prompt - output_config - prompt - session_context - session_id - tasks_priority x-apidog-orders: - enhance_prompt - ext_info - file_infos - model_name - model_version - negative_prompt - output_config - prompt - session_context - session_id - tasks_priority examples: example_single: value: enhance_prompt: Đã bật ext_info: '' file_infos: - file_id: '387702299774574677' text: Thông tin mô tả của hình ảnh gốc type: file url: '' model_name: GEM model_version: '3.0' negative_prompt: mờ, méo mó output_config: aspect_ratio: '1:1' input_compliance_check: Đã bật output_compliance_check: Đã bật person_generation: AllowAdult resolution: 1080P storage_mode: Tạm thời prompt: chuyển hình ảnh này sang phong cách anime session_context: '{"user_id": "123", "scene": "anh_dai_dien"}' session_id: image-task-67890 tasks_priority: 10 summary: example_single description: Tạo tác vụ responses: '200': description: '' content: application/json: schema: type: object required: - Response properties: Response: type: object required: - TaskId - RequestId properties: RequestId: type: string description: Mã yêu cầu TaskId: type: string description: Mã tác vụ description: Phần thân phản hồi theo phong cách Tencent Cloud x-apifox-orders: - RequestId - TaskId x-apidog-orders: - RequestId - TaskId refName: TencentVodSampleResponse description: >- Khi gửi thành công, hệ thống trả về `Response.TaskId`, được dùng cho truy vấn `GET /tencent-vod/v1/query/{task_id}` tiếp theo. x-apifox-orders: - Response x-apidog-orders: - Response examples: example: summary: example value: Response: RequestId: f50d7667-72d8-46bb-a7e3-0613588971b6 TaskId: 251007502-AigcImage***2782aff1e896673f1ft 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/Ảnh thô AIGC của Tencent x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208926-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "qwen-image-edit-2509" Nguồn: https://docs.openaihub.net/api-45208927/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: qwen-image-edit-2509 deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Qwen - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Qwen x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208927-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "qwen-image-max-2025-12-30 địa chỉ mới" Nguồn: https://docs.openaihub.net/api-45208928/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /alibailian/api/v1/services/aigc/multimodal-generation/generation: post: summary: qwen-image-max-2025-12-30 địa chỉ mới deprecated: false description: Các khả năng đa phương thức như TTS. operationId: alibailian_sample tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Qwen - Xưởng mô hình Alibaba parameters: [] requestBody: content: application/json: schema: type: object required: - model - input properties: input: type: object required: - text - voice properties: language_type: type: string description: Loại ngôn ngữ text: type: string description: Vui lòng cung cấp nội dung văn bản cần dịch. voice: type: string description: Mã định danh giọng nói description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - language_type - text - voice x-apidog-orders: - language_type - text - voice model: type: string description: Tên mô hình / mã định danh mô hình refName: AlibailianSampleRequest x-apifox-orders: - input - model x-apidog-orders: - input - model examples: {} responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: output: task_id: task-example request_id: req-example headers: {} x-apidog-name: Được '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/Qwen x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208928-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "wan2.7-image-pro" Nguồn: https://docs.openaihub.net/api-45208929/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /v1/images/generations: post: summary: wan2.7-image-pro deprecated: false description: >- Với một lời nhắc, mô hình sẽ trả về một hoặc nhiều phần hoàn thành được dự đoán, đồng thời cũng có thể trả về xác suất của các mã từ thay thế tại mỗi vị trí. Tạo các phần hoàn thành cho lời nhắc và các tham số được cung cấp. Tài liệu chính thức: https://platform.openai.com/docs/api-reference/images/create operationId: v1_images_generations tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Wan - API tạo ảnh từ văn bản/GPT Image-1 parameters: - name: Content-Type in: header description: '' required: true example: application/json schema: type: string - name: Accept in: header description: '' required: true example: application/json schema: type: string - name: Authorization in: header description: '' required: false example: Bearer {{YOUR_API_KEY}} schema: type: string requestBody: content: application/json: schema: type: object required: - prompt - model - 'n' properties: background: type: string enum: - auto - opaque - transparent description: |- Nền Các tùy chọn: auto (mặc định), opaque, transparent Khi transparent, định dạng phải là png hoặc webp format: type: string description: >- Định dạng hình ảnh Các tùy chọn: png, jpeg, webp Sử dụng png hoặc webp cho nền trong suốt. (Tên trường chính thức là output_format, nhưng cổng này dùng nhất quán format như trong bảng điều khiển gỡ lỗi gpt-image-2.) model: type: string enum: - gpt-image-2.5-flare - gpt-image-2.5-sunburst enumDetails: - value: gpt-image-2.5-flare displayName: Flare - value: gpt-image-2.5-sunburst displayName: Biểu đồ tia nắng description: >- Tên mô hình gpt-image-2.5-flare Nhanh hơn, phù hợp cho việc tạo nội dung hằng ngày hoặc với mức độ đồng thời cao gpt-image-2.5-sunburst Độ chính xác cao hơn, phù hợp cho việc tinh chỉnh và sản xuất nội dung sáng tạo moderation: type: string enum: - auto - low description: |- Mức độ nghiêm ngặt của kiểm duyệt nội dung Các tùy chọn: auto (mặc định), low 'n': type: integer description: >- Số lượng hình ảnh cần tạo. Phải nằm trong khoảng từ 1 đến 10. Mặc định là 1 nếu không được cung cấp. prompt: type: string description: >- Mô tả bằng văn bản về hình ảnh mong muốn. Độ dài tối đa là 1000 ký tự. quality: type: string description: >- Chất lượng hình ảnh Các tùy chọn: low, medium, high, xhigh, max, auto (mặc định) So với gpt-image-2, xhigh và max là các tùy chọn mới. low phù hợp với bản nháp; xhigh / max cung cấp nhiều chi tiết hơn nhưng có độ trễ và chi phí cao hơn. response_format: type: string enum: - url - b64_json enumDetails: - value: url - value: b64_json size: type: string description: >- Kích thước hình ảnh 1024x1024 Vuông 1536x1024 Ngang 1024x1536 Dọc 2048x2048 Vuông 2K 2048x1152 Ngang 2K 3840x2160 Ngang 4K 2160x3840 Dọc 4K auto Mặc định Các quy tắc giới hạn kích thước nghiêm ngặt 1. Độ dài cạnh tối đa của hình ảnh ≤ 3840px 2. Cả chiều rộng và chiều cao phải là bội số của 16px 3. Tỷ lệ cạnh dài / cạnh ngắn ≤ 3:1 4. Phạm vi tổng số điểm ảnh: tối thiểu 655360 ~ tối đa 8294400 Các độ phân giải trên 2560x1440 được xem là các khả năng thử nghiệm. x-apifox-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size x-apidog-orders: - background - format - model - moderation - 'n' - prompt - quality - response_format - size examples: example: value: format: webp model: gpt-image-2.5-flare 'n': 1 prompt: >- Ảnh tĩnh sản phẩm: bàn phím cơ màu đen nhám, ánh sáng trường quay, không có chữ quality: trung bình response_format: url size: 1536x1024 summary: example responses: '200': description: '' content: application/json: schema: type: object required: - created - data properties: created: type: integer data: type: array items: type: object properties: url: type: string x-apifox-orders: - url x-apidog-orders: - url x-apifox-orders: - created - data x-apidog-orders: - created - data examples: example: summary: example value: created: 1773100000 data: - url: >- https://cdn.example.com/images/gpt-image-2.5-flare/req_abc123/0.webp headers: {} x-apidog-name: '' security: [] x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Wan x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208929-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video Vincent" Nguồn: https://docs.openaihub.net/api-45208930/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/text/generate: post: summary: Tạo video Vincent deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_text_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoTextGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208930-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video Tusheng" Nguồn: https://docs.openaihub.net/api-45208931/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/img/generate: post: summary: Tạo video Tusheng deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_img_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) img_id: type: integer description: ID hình ảnh nhận được thông qua giao diện tải lên model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoImgGenerateRequest x-apifox-orders: - aspect_ratio - duration - img_id - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - img_id - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208931-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video từ khung hình đầu tiên và khung hình cuối cùng" Nguồn: https://docs.openaihub.net/api-45208932/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/transition/generate: post: summary: Tạo video từ khung hình đầu tiên và khung hình cuối cùng deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_transition_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) first_frame_img: type: integer description: Hình ảnh khung hình đầu tiên last_frame_img: type: integer description: Hình ảnh khung hình cuối model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoTransitionGenerateRequest x-apifox-orders: - aspect_ratio - duration - first_frame_img - last_frame_img - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - first_frame_img - last_frame_img - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208932-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy trạng thái video" Nguồn: https://docs.openaihub.net/api-45208933/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/result/{video_id}: get: summary: Lấy trạng thái video deprecated: false description: Truy vấn trạng thái và kết quả của tác vụ tạo video bằng video_id. operationId: pixverse_video_result_get tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: - name: video_id in: path description: Mã tác vụ video required: true example: '' schema: type: string - name: API-KEY in: header description: Khóa API nền tảng (tiêu đề yêu cầu) required: true example: '{{YOUR_API_KEY}}' schema: type: string responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: '' '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208933-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video đồng bộ chuyển động môi" Nguồn: https://docs.openaihub.net/api-45208934/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/lip_sync/generate: post: summary: Tạo video đồng bộ chuyển động môi deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_lip_sync_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' audio_url: type: string description: URL âm thanh duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập video_id: type: integer description: ID video refName: PostOpenapiV2VideoLipSyncGenerateRequest x-apifox-orders: - aspect_ratio - audio_url - duration - model - negative_prompt - prompt - quality - seed - video_id x-apidog-orders: - aspect_ratio - audio_url - duration - model - negative_prompt - prompt - quality - seed - video_id examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208934-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Lấy âm thanh TTS" Nguồn: https://docs.openaihub.net/api-45208935/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/lip_sync/tts_list: get: summary: Lấy âm thanh TTS deprecated: false description: Liệt kê các giọng nói TTS có sẵn để tạo video đồng bộ khẩu hình. operationId: pixverse_video_lip_sync_tts_list tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208935-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video mở rộng" Nguồn: https://docs.openaihub.net/api-45208936/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/extend/generate: post: summary: Tạo video mở rộng deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_extend_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập video_id: type: integer description: ID video gốc refName: PostOpenapiV2VideoExtendGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed - video_id x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed - video_id examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208936-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Giao diện tạo hiệu ứng âm thanh (sound_effect)" Nguồn: https://docs.openaihub.net/api-45208937/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/sound_effect/generate: post: summary: Giao diện tạo hiệu ứng âm thanh (sound_effect) deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_sound_effect_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoSoundEffectGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208937-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video đa tác tử (đa tham chiếu)" Nguồn: https://docs.openaihub.net/api-45208938/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/fusion/generate: post: summary: Tạo video đa tác tử (đa tham chiếu) deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_fusion_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) img_ids: type: array items: type: integer description: Danh sách mã định danh tài nguyên hình ảnh model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoFusionGenerateRequest x-apifox-orders: - aspect_ratio - duration - img_ids - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - img_ids - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208938-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Vẽ lại video để tạo video" Nguồn: https://docs.openaihub.net/api-45208939/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/restyle/generate: post: summary: Vẽ lại video để tạo video deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_restyle_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoRestyleGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208939-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo mặt nạ thay thế cơ thể (Swap)" Nguồn: https://docs.openaihub.net/api-45208940/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/mask/selection: post: summary: Tạo mặt nạ thay thế cơ thể (Swap) deprecated: false description: Lấy mặt nạ video. operationId: pixverse_video_mask_selection tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - video_id properties: video_id: type: integer description: ID video x-apifox-orders: - video_id x-apidog-orders: - video_id examples: {} responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208940-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video thay thế chủ thể (Hoán đổi)" Nguồn: https://docs.openaihub.net/api-45208941/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/swap/generate: post: summary: Tạo video thay thế chủ thể (Hoán đổi) deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_swap_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập video_id: type: integer description: ID video refName: PostOpenapiV2VideoSwapGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed - video_id x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed - video_id examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208941-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video nhiều khung hình (nhiều chuyển cảnh)" Nguồn: https://docs.openaihub.net/api-45208942/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/multi_transition/generate: post: summary: Tạo video nhiều khung hình (nhiều chuyển cảnh) deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_multi_transition_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoMultiTransitionGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208942-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo video bắt chước hành động (Mimic)" Nguồn: https://docs.openaihub.net/api-45208943/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/mimic/generate: post: summary: Tạo video bắt chước hành động (Mimic) deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_mimic_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) img_id: type: integer description: Mã định danh tài nguyên hình ảnh model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập video_id: type: integer description: ID video refName: PostOpenapiV2VideoMimicGenerateRequest x-apifox-orders: - aspect_ratio - duration - img_id - model - negative_prompt - prompt - quality - seed - video_id x-apidog-orders: - aspect_ratio - duration - img_id - model - negative_prompt - prompt - quality - seed - video_id examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208943-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Chỉnh sửa video (Modify) tạo ra video" Nguồn: https://docs.openaihub.net/api-45208944/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/video/modify/generate: post: summary: Chỉnh sửa video (Modify) tạo ra video deprecated: false description: >- Tạo video bằng Pixverse; thăm dò kết quả qua GET /openapi/v2/video/result/{id} sau khi gửi yêu cầu. operationId: pixverse_video_modify_generate tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - model - prompt properties: aspect_ratio: type: string enum: - '16:9' - '9:16' - '1:1' - '4:3' - '3:4' description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' duration: type: integer enum: - 5 - 8 - 10 description: Thời lượng (giây hoặc đơn vị do nền tảng quy định) model: type: string enum: - v3.5 - v4 - v4.5 - v5 - v5.5 - v6 description: phiên bản mô hình examples: - v5.5 negative_prompt: type: string description: Lời nhắc phủ định (nội dung cần tránh) prompt: type: string description: Mô tả video quality: type: string enum: - 360p - 540p - 720p - 1080p description: Mức chất lượng đầu ra seed: type: integer description: >- Hạt giống ngẫu nhiên; cùng một hạt giống sẽ tạo ra kết quả có thể tái lập refName: PostOpenapiV2VideoModifyGenerateRequest x-apifox-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed x-apidog-orders: - aspect_ratio - duration - model - negative_prompt - prompt - quality - seed examples: v5_5: value: aspect_ratio: '16:9' duration: 5 model: v5.5 prompt: Một con mèo đang chạy trên cỏ quality: 720p summary: v5_5 description: Video Vincent responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208944-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tải ảnh lên" Nguồn: https://docs.openaihub.net/api-45208945/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/image/upload: post: summary: Tải ảnh lên deprecated: false description: tải lên nhiều phần. operationId: pixverse_image_upload tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: multipart/form-data: schema: type: object properties: image: type: string format: binary description: URL hình ảnh hoặc Base64 example: '' required: - image examples: {} responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208945-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tải tài nguyên lên (video/âm thanh)" Nguồn: https://docs.openaihub.net/api-45208946/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/media/upload: post: summary: Tải tài nguyên lên (video/âm thanh) deprecated: false description: tải video/âm thanh lên theo nhiều phần. operationId: pixverse_media_upload tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: multipart/form-data: schema: type: object properties: file: type: string format: binary description: Đối tượng tệp hoặc trường tệp example: '' required: - file examples: {} responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: thành công '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208946-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Giao diện tạo mẫu ảnh" Nguồn: https://docs.openaihub.net/api-45208947/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/image/template/generate: post: summary: Giao diện tạo mẫu ảnh deprecated: false description: Sử dụng mẫu để tạo hình ảnh. operationId: pixverse_sample tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: [] requestBody: content: application/json: schema: type: object required: - template_id properties: prompt: type: string description: Lời nhắc văn bản template_id: type: integer description: Mã mẫu refName: PixverseSampleRequest x-apifox-orders: - prompt - template_id x-apidog-orders: - prompt - template_id examples: {} responses: '200': description: Được content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: Được '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208947-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Giao diện truy vấn kết quả hình ảnh" Nguồn: https://docs.openaihub.net/api-45208948/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /openapi/v2/image/result/{image_id}: get: summary: Giao diện truy vấn kết quả hình ảnh deprecated: false description: Truy vấn trạng thái và kết quả của tác vụ tạo mẫu ảnh theo image_id. operationId: pixverse_image_result_get tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Ali Pix - Pixverse parameters: - name: image_id in: path description: Mã hình ảnh required: true example: '' schema: type: string - name: API-KEY in: header description: Khóa API nền tảng (tiêu đề yêu cầu) required: false example: '{{YOUR_API_KEY}}' schema: type: string responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: ErrCode: 0 ErrMsg: thành công RespData: id: 123456 headers: {} x-apidog-name: '' '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/Ali Pix x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208948-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-kontext-dev" Nguồn: https://docs.openaihub.net/api-45208949/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-kontext-dev/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-kontext-dev deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-kontext-dev operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_kontext_dev_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt - input_image properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Sử dụng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Giá trị mặc định: "match_input_image". go_fast: type: boolean description: >- Giúp mô hình chạy nhanh hơn, chất lượng đầu ra có thể giảm nhẹ đối với các lời nhắc khó hơn. Giá trị mặc định: true. guidance: type: number description: >- Các từ gợi ý điều chỉnh cường độ. Giá trị mặc định: 2.5. Giá trị tối thiểu: 0, giá trị tối đa: 10 input_image: type: string description: >- Hình ảnh dùng làm tài liệu tham khảo. Phải có định dạng jpeg, png, gif hoặc webp. num_inference_steps: type: integer description: >- Số bước suy luận, mặc định: 28. Giá trị tối thiểu: 4, giá trị tối đa: 50. output_format: type: string description: 'Định dạng ảnh đầu ra. Mặc định: "webp".' output_quality: type: integer description: >- Chất lượng lưu hình ảnh đầu ra, từ 0 đến 100. 100 là chất lượng tốt nhất, 0 là chất lượng thấp nhất. Không liên quan đến đầu ra .png. Giá trị mặc định: 80. Giá trị nhỏ nhất: 0, giá trị lớn nhất: 100. prompt: type: string description: >- Mô tả bằng văn bản về nội dung bạn muốn tạo, hoặc hướng dẫn cách chỉnh sửa một hình ảnh được cung cấp. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - go_fast - guidance - input_image - num_inference_steps - output_format - output_quality - prompt x-apidog-orders: - aspect_ratio - go_fast - guidance - input_image - num_inference_steps - output_format - output_quality - prompt x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_kontext_dev_single: value: input: aspect_ratio: match_input_image go_fast: true guidance: 2.5 input_image: >- https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg num_inference_steps: 30 output_format: jpg output_quality: 80 prompt: Đổi màu xe thành màu đỏ, bật đèn pha summary: black_forest_labsflux_kontext_dev_single description: Tạo tác vụ black-forest-labs/flux-kontext-dev responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsBlackForestLabsFluxKontextDevPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-29T07:12:42.163Z' data_removed: false id: tpdf40dypdrma0cram394vvzkg input: aspect_ratio: match_input_image go_fast: true guidance: 2.5 input_image: >- https://replicate.delivery/pbxt/N5YURZv4ifaW2bMwU7hmrwzgtxf99DTQXpBeobLt1O7dEc3h/pexels-jmark-253096.jpg num_inference_steps: 30 output_format: jpg output_quality: 80 prompt: Đổi màu xe thành màu đỏ, bật đèn pha logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/tpdf40dypdrma0cram394vvzkg/cancel get: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp URL này. stream: >- Vui lòng dán nội dung tài liệu cần dịch vào đây; tôi không thể truy cập trực tiếp URL được cung cấp. web: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ liên kết đã cung cấp. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208949-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-1.1-pro-ultra" Nguồn: https://docs.openaihub.net/api-45208950/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-1.1-pro-ultra/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-1.1-pro-ultra deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-1.1-pro-ultra operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_1_1_pro_ultra_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của ảnh được tạo, giá trị mặc định: "1:1". image_prompt_strength: type: number description: >- Sự kết hợp giữa câu lệnh và câu lệnh tạo hình ảnh. Giá trị tối thiểu: 0, giá trị tối đa: 1. output_format: type: string description: 'Định dạng của hình ảnh đầu ra. Giá trị mặc định: "jpg".' prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. raw: type: boolean description: >- Tạo ra hình ảnh ít qua xử lý hơn và tự nhiên hơn. Giá trị mặc định: false. safety_tolerance: type: integer description: >- Mức dung sai an toàn. 1 là nghiêm ngặt nhất và 6 là ít nghiêm ngặt nhất. Giá trị mặc định: 2. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - image_prompt_strength - output_format - prompt - raw - safety_tolerance x-apidog-orders: - aspect_ratio - image_prompt_strength - output_format - prompt - raw - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_11_pro_ultra_single: value: input: aspect_ratio: '3:2' image_prompt_strength: 0.1 output_format: jpg prompt: >- một đỉnh núi phủ tuyết hùng vĩ, đắm mình trong ánh sáng ấm áp của mặt trời lặn raw: false safety_tolerance: 2 summary: black_forest_labsflux_11_pro_ultra_single description: Tạo tác vụ black-forest-labs/flux-1.1-pro-ultra responses: '200': description: '' content: application/json: schema: type: object required: - input properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' image_prompt_strength: type: number description: Mức độ tác động của lời nhắc tạo ảnh output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản raw: type: boolean description: Có trả về đầu ra thô (chưa qua xử lý) hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - image_prompt_strength - output_format - prompt - raw - safety_tolerance x-apidog-orders: - aspect_ratio - image_prompt_strength - output_format - prompt - raw - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: example: summary: example value: created_at: '2025-07-29T05:45:44.464Z' data_removed: false id: brgfcps121rm80crajvr2x4jg4 input: aspect_ratio: '3:2' image_prompt_strength: 0.1 output_format: jpg prompt: >- một đỉnh núi phủ tuyết hùng vĩ, đắm mình trong ánh sáng ấm áp của mặt trời lặn raw: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-1.1-pro-ultra status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/brgfcps121rm80crajvr2x4jg4/cancel get: >- https://api.replicate.com/v1/predictions/brgfcps121rm80crajvr2x4jg4 stream: >- Vui lòng dán nội dung tài liệu cần dịch vào đây; tôi không thể truy cập trực tiếp liên kết này. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp nội dung từ URL này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208950-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-kontext-pro" Nguồn: https://docs.openaihub.net/api-45208951/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-kontext-pro/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-kontext-pro deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-kontext-pro operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_kontext_pro_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Sử dụng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Giá trị mặc định: "match_input_image", hỗ trợ 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:9, 9:21, 2:1, 1:2. input_image: type: string description: >- Hình ảnh dùng làm tài liệu tham khảo. Phải có định dạng jpeg, png, gif hoặc webp. output_format: type: string description: >- Định dạng đầu ra của hình ảnh được tạo. Giá trị mặc định: "png". prompt: type: string description: >- Mô tả bằng văn bản về nội dung bạn muốn tạo, hoặc hướng dẫn cách chỉnh sửa một hình ảnh được cung cấp. prompt_upsampling: type: boolean description: 'Tự động cải thiện lời nhắc. Giá trị mặc định: false.' safety_tolerance: type: integer description: >- Mức dung sai an toàn, 0 là nghiêm ngặt nhất và 6 là lỏng nhất. 2 hiện là giá trị tối đa được phép khi sử dụng hình ảnh đầu vào. Giá trị mặc định: 2 description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_kontext_pro_single: value: input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh trực tiếp lên để tôi có thể đọc và dịch nội dung, đồng thời giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. output_format: jpg prompt: Hãy biến hình này thành phim hoạt hình thập niên 90. prompt_upsampling: false safety_tolerance: 2 summary: black_forest_labsflux_kontext_pro_single description: Tạo tác vụ black-forest-labs/flux-kontext-pro responses: '200': description: '' content: application/json: schema: type: object required: - input properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: '1': summary: '1' value: created_at: '2025-07-29T06:51:12.591Z' data_removed: false id: b1qw7g8h9xrma0crakst3xbj8m input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh trực tiếp lên để tôi có thể đọc và dịch nội dung, đồng thời giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. output_format: jpg prompt: Hãy biến hình này thành phim hoạt hình thập niên 90. prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-pro status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/b1qw7g8h9xrma0crakst3xbj8m/cancel get: >- https://api.replicate.com/v1/predictions/b1qw7g8h9xrma0crakst3xbj8m stream: >- Không thể truy cập nội dung tài liệu từ URL được cung cấp. Vui lòng gửi trực tiếp nội dung cần dịch. web: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL này: https://replicate.com/p/b1qw7g8h9xrma0crakst3xbj8m version: ẩn '2': summary: '2' value: created_at: '2025-07-12T07:27:54.577Z' data_removed: false id: w44zs9cet5rmc0cqzp49gpkhf8 input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8/cancel get: >- Vui lòng truy xuất nội dung tại https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8 rồi dịch tài liệu kỹ thuật đó sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại ký tự Hán. stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi có thể dịch sang tiếng Việt và giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON cùng định dạng. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208951-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-kontext-max" Nguồn: https://docs.openaihub.net/api-45208952/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-kontext-max/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-kontext-max deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-kontext-max operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_kontext_max_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Sử dụng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Giá trị mặc định: "match_input_image". input_image: type: string description: >- Hình ảnh dùng làm tài liệu tham khảo. Phải có định dạng jpeg, png, gif hoặc webp. output_format: type: string description: >- Định dạng đầu ra của hình ảnh được tạo. Giá trị mặc định: "png". prompt: type: string description: >- Mô tả bằng văn bản về nội dung bạn muốn tạo, hoặc hướng dẫn cách chỉnh sửa một hình ảnh được cung cấp. prompt_upsampling: type: boolean description: 'Tự động cải thiện lời nhắc. Giá trị mặc định: false.' safety_tolerance: type: integer description: >- Mức dung sai an toàn, 0 là nghiêm ngặt nhất và 6 là lỏng nhất. 2 hiện là giá trị tối đa được phép khi sử dụng hình ảnh đầu vào. Giá trị mặc định: 2. Giá trị tối thiểu: 0, giá trị tối đa: 6. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_kontext_max_single: value: input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 summary: black_forest_labsflux_kontext_max_single description: Tạo tác vụ black-forest-labs/flux-kontext-max responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsBlackForestLabsFluxKontextMaxPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-29T07:21:33.309Z' data_removed: false id: 5pcmjq6sfnrmc0cram79p95eg4 input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-max status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/5pcmjq6sfnrmc0cram79p95eg4/cancel get: >- Vui lòng dán nội dung tài liệu cần dịch. Đường dẫn API này yêu cầu quyền truy cập nên tôi không thể lấy nội dung trực tiếp. stream: >- https://stream.replicate.com/v1/files/bcwr-o4bl6hrud4sg7ceoi45imkh7lq32nbyqvnsyg736v7ghpxwqxheq web: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208952-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ - truyền phiên bản mô hình (dự đoán)" Nguồn: https://docs.openaihub.net/api-45208953/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/predictions: post: summary: Tạo tác vụ - truyền phiên bản mô hình (dự đoán) deprecated: false description: |- Gửi tác vụ dự đoán ở chế độ phiên bản. Tài liệu chính thức: https://replicate.com/lucataco/remove-bg operationId: replicate_replicate_v1_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo parameters: [] requestBody: content: application/json: schema: type: object properties: input: type: object required: - image properties: image: type: string description: Xóa nền khỏi hình ảnh này. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - image x-apidog-orders: - image version: type: string description: Phiên bản refName: PostReplicateV1PredictionsRequest x-apifox-orders: - input - version x-apidog-orders: - input - version examples: lucatacoremove_bg_single: value: input: image: >- https://replicate.delivery/pbxt/JWsRA6DxCK24PlMYK5ENFYAFxJGUQTLr0JmLwsLb8uhv1JTU/shoe.jpg version: >- 95fcc2a26d3899cd6c2691c900465aaeff466285a65c14638cc5f36f34befaf1 summary: lucatacoremove_bg_single description: Tạo tác vụ lucataco/remove-bg responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1PredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: '2': summary: '2' value: created_at: '2025-07-12T07:27:54.577Z' data_removed: false id: w44zs9cet5rmc0cqzp49gpkhf8 input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8/cancel get: >- Vui lòng truy xuất nội dung tại https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8 rồi dịch tài liệu kỹ thuật đó sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại ký tự Hán. stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi có thể dịch sang tiếng Việt và giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON cùng định dạng. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208953-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Các tác vụ truy vấn" Nguồn: https://docs.openaihub.net/api-45208954/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/predictions/{id}: get: summary: Các tác vụ truy vấn deprecated: false description: Truy vấn trạng thái và kết quả tác vụ dựa trên ID dự đoán. operationId: replicate_replicate_v1_predictions_2 tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo parameters: - name: id in: path description: ID tài nguyên / tác vụ trong đường dẫn required: true example: '' schema: type: string responses: '200': description: thành công content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK headers: {} x-apidog-name: thành công '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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208954-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ minimax/video-01-live" Nguồn: https://docs.openaihub.net/api-45208955/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/minimax/video-01-live/predictions: post: summary: Tạo tác vụ minimax/video-01-live deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập trực tiếp nội dung từ URL https://replicate.com/minimax/video-01-live trong phiên này. operationId: replicate_replicate_v1_models_minimax_video_01_live_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt - first_frame_image properties: first_frame_image: type: string description: >- Dùng để tạo khung hình đầu tiên của video. Video đầu ra sẽ có cùng tỷ lệ khung hình với hình ảnh này. prompt: type: string description: Tạo lời nhắc dạng văn bản. prompt_optimizer: type: boolean description: 'Sử dụng trình tối ưu hóa gợi ý. Giá trị mặc định: true' description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - first_frame_image - prompt - prompt_optimizer x-apidog-orders: - first_frame_image - prompt - prompt_optimizer x-apifox-orders: - input x-apidog-orders: - input examples: minimaxvideo_01_live_single: value: input: first_frame_image: >- https://replicate.delivery/pbxt/M9jlcXgeaypBr2yQYGf9JXgxUCJWRt8ODUDvt90UWPUsQBXC/back-to-the-future.png prompt: một người đàn ông đang nói chuyện một cách giận dữ prompt_optimizer: true summary: minimaxvideo_01_live_single description: Tạo tác vụ minimax/video-01-live responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsMinimaxVideo01LivePredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T01:38:07.143Z' data_removed: false id: x18c1re8mxrma0crb3x8wbwqmg input: first_frame_image: >- https://replicate.delivery/pbxt/M9jlcXgeaypBr2yQYGf9JXgxUCJWRt8ODUDvt90UWPUsQBXC/back-to-the-future.png prompt: một người đàn ông đang nói chuyện một cách giận dữ prompt_optimizer: true logs: '' model: minimax/video-01-live status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/x18c1re8mxrma0crb3x8wbwqmg/cancel get: >- https://api.replicate.com/v1/predictions/x18c1re8mxrma0crb3x8wbwqmg stream: >- Vui long dan noi dung tai lieu vao day de toi co the dich sang tieng Viet. Toi khong the truy cap truc tiep noi dung tu URL nay. web: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập nội dung trực tiếp từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208955-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ minimax/video-01" Nguồn: https://docs.openaihub.net/api-45208956/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/minimax/video-01/predictions: post: summary: Tạo tác vụ minimax/video-01 deprecated: false description: 'Tài liệu chính thức: https://replicate.com/minimax/video-01' operationId: replicate_replicate_v1_models_minimax_video_01_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: prompt: type: string description: Tạo lời nhắc dạng văn bản. prompt_optimizer: type: boolean description: 'Sử dụng trình tối ưu hóa gợi ý. Giá trị mặc định: true' description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - prompt - prompt_optimizer x-apidog-orders: - prompt - prompt_optimizer x-apifox-orders: - input x-apidog-orders: - input examples: minimaxvideo_01_single: value: input: prompt: >- một người phụ nữ đang đi bộ trên một con phố đông đúc ở Tokyo vào ban đêm, cô ấy đeo kính râm màu tối prompt_optimizer: true summary: minimaxvideo_01_single description: Tạo tác vụ minimax/video-01 responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: prompt: type: string description: Lời nhắc văn bản prompt_optimizer: type: boolean description: Có bật tối ưu hóa lời nhắc hay không description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - prompt - prompt_optimizer x-apidog-orders: - prompt - prompt_optimizer logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsMinimaxVideo01PredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T01:41:10.089Z' data_removed: false id: ree8dymk95rmc0crb3yt2pqhr4 input: prompt: >- một người phụ nữ đang đi bộ trên một con phố đông đúc ở Tokyo vào ban đêm, cô ấy đeo kính râm màu tối prompt_optimizer: true logs: '' model: minimax/video-01 status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/ree8dymk95rmc0crb3yt2pqhr4/cancel get: >- Tôi không thể truy cập nội dung từ URL này. Vui lòng dán tài liệu kỹ thuật cần dịch vào đây. stream: >- https://stream.replicate.com/v1/files/bcwr-wykptlq2o5ws5ukylao2u654xfxv6aaaekgxijlr7aibzkftt7bq web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208956-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ recraft-ai/recraft-v3" Nguồn: https://docs.openaihub.net/api-45208957/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/recraft-ai/recraft-v3/predictions: post: summary: Tạo tác vụ recraft-ai/recraft-v3 deprecated: false description: 'Tài liệu chính thức: https://replicate.com/recraft-ai/recraft-v3' operationId: replicate_replicate_v1_models_recraft_ai_recraft_v3_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "Chưa thiết lập" prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. size: type: string description: >- Tạo chiều rộng và chiều cao của hình ảnh. Nếu tỷ lệ khung hình được thiết lập, các kích thước sẽ bị bỏ qua. Giá trị mặc định: "1024x1024" style: type: string description: >- Phong cách của hình ảnh được tạo. Giá trị mặc định: "any" description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - prompt - size - style x-apidog-orders: - aspect_ratio - prompt - size - style x-apifox-orders: - input x-apidog-orders: - input examples: recraft_airecraft_v3_single: value: input: aspect_ratio: Chưa đặt prompt: >- một bức ảnh động vật hoang dã chụp một chú gấu trúc đỏ đang sử dụng máy tính xách tay trong khu rừng phủ đầy tuyết size: 1365x1024 style: bất kỳ summary: recraft_airecraft_v3_single description: Tạo tác vụ recraft-ai/recraft-v3 responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsRecraftAiRecraftV3PredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T01:45:30.496Z' data_removed: false id: w5k77rccg1rma0crb40tssh86g input: aspect_ratio: Chưa đặt prompt: >- một bức ảnh động vật hoang dã chụp một chú gấu trúc đỏ đang sử dụng máy tính xách tay trong khu rừng phủ đầy tuyết size: 1365x1024 style: bất kỳ logs: '' model: recraft-ai/recraft-v3 status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w5k77rccg1rma0crb40tssh86g/cancel get: >- https://api.replicate.com/v1/predictions/w5k77rccg1rma0crb40tssh86g stream: >- Vui lòng truy xuất nội dung tại https://stream.replicate.com/v1/files/bcwr-otkjt5aiey7d63eore5rhoezsvrxwsc5q6ow2x5lpqh3l6x33hgq rồi dịch tài liệu kỹ thuật sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại ký tự Hán. web: https://replicate.com/p/w5k77rccg1rma0crb40tssh86g version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208957-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ recraft-ai/recraft-v3-svg" Nguồn: https://docs.openaihub.net/api-45208958/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/recraft-ai/recraft-v3-svg/predictions: post: summary: Tạo tác vụ recraft-ai/recraft-v3-svg deprecated: false description: 'Tài liệu chính thức: https://replicate.com/recraft-ai/recraft-v3-svg' operationId: replicate_replicate_v1_models_recraft_ai_recraft_v3_svg_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "Chưa thiết lập" prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. size: type: string description: >- Tạo chiều rộng và chiều cao của hình ảnh. Nếu tỷ lệ khung hình được thiết lập, các kích thước sẽ bị bỏ qua. Giá trị mặc định: "1024x1024" style: type: string description: >- Phong cách của hình ảnh được tạo. Giá trị mặc định: "any" description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - prompt - size - style x-apidog-orders: - aspect_ratio - prompt - size - style x-apifox-orders: - input x-apidog-orders: - input examples: recraft_airecraft_v3_svg_single: value: input: aspect_ratio: Chưa đặt prompt: >- chân dung một chú gấu trúc đỏ dễ thương đang sử dụng máy tính xách tay, áp phích có tiêu đề "Gấu trúc đỏ là Recraft v3", trên nền màu đỏ size: 1024x1024 style: bất kỳ summary: recraft_airecraft_v3_svg_single description: Tạo tác vụ recraft-ai/recraft-v3-svg responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsRecraftAiRecraftV3SvgPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T01:49:55.839Z' data_removed: false id: 21r1gkwrzxrme0crb42tx4qrem input: aspect_ratio: Chưa đặt prompt: >- chân dung một chú gấu trúc đỏ dễ thương đang sử dụng máy tính xách tay, áp phích có tiêu đề "Gấu trúc đỏ là Recraft v3", trên nền màu đỏ size: 1024x1024 style: bất kỳ logs: '' model: recraft-ai/recraft-v3-svg status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/21r1gkwrzxrme0crb42tx4qrem/cancel get: >- https://api.replicate.com/v1/predictions/21r1gkwrzxrme0crb42tx4qrem stream: >- https://stream.replicate.com/v1/files/bcwr-7u7q63im74v2xjin5o7xj5prlfisac3m7ni22gh22jfejdfwi22q web: https://replicate.com/p/21r1gkwrzxrme0crb42tx4qrem version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208958-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ flux-kontext-apps/multi-image-kontext-max" Nguồn: https://docs.openaihub.net/api-45208959/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/flux-kontext-apps/multi-image-kontext-max/predictions: post: summary: Tạo tác vụ flux-kontext-apps/multi-image-kontext-max deprecated: false description: >- Tài liệu chính thức: https://replicate.com/flux-kontext-apps/multi-image-kontext-max operationId: >- replicate_replicate_v1_models_flux_kontext_apps_multi_image_kontext_max_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt - input_image_1 - input_image_2 properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Dùng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Mặc định: "match_input_image" input_image_1: type: string description: >- Hình ảnh đầu vào đầu tiên. Phải ở định dạng jpeg, png, gif hoặc webp. input_image_2: type: string description: >- Hình ảnh đầu vào thứ hai. Phải ở định dạng jpeg, png, gif hoặc webp. output_format: type: string description: >- Định dạng đầu ra của hình ảnh được tạo. Giá trị mặc định: "png". prompt: type: string description: >- Mô tả bằng văn bản về cách kết hợp hoặc biến đổi hai hình ảnh đầu vào. safety_tolerance: type: integer description: >- Mức dung sai bảo mật, 0 là nghiêm ngặt nhất và 2 là lỏng nhất. Hiện tại, 2 là mức tối đa được phép. Giá trị mặc định: 2 description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance x-apidog-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: flux_kontext_appsmulti_image_kontext_max_single: value: input: aspect_ratio: '1:1' input_image_1: >- Vui lòng tải trực tiếp ảnh lên cuộc trò chuyện để tôi có thể đọc và dịch nội dung, đồng thời giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. input_image_2: >- https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp output_format: png prompt: Cho người phụ nữ mặc áo thun trắng có dòng chữ trên đó safety_tolerance: 2 summary: flux_kontext_appsmulti_image_kontext_max_single description: Tạo tác vụ flux-kontext-apps/multi-image-kontext-max responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object required: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image_1: type: string description: Hình ảnh đầu vào 1 (URL hoặc Base64) input_image_2: type: string description: Hình ảnh đầu vào 2 (URL hoặc Base64) output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance x-apidog-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsFluxKontextAppsMultiImageKontextMaxPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T02:08:26.368Z' data_removed: false id: b6k38vmb01rme0crb4bbr2apw4 input: aspect_ratio: '1:1' input_image_1: >- Vui lòng tải trực tiếp ảnh lên cuộc trò chuyện để tôi có thể đọc và dịch nội dung, đồng thời giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. input_image_2: >- https://replicate.delivery/pbxt/N5rSdTCgBqIRvbkedcfLfS5xTSEEOqMtX9FsR1hLK9JYryml/0_1.webp output_format: png prompt: Cho người phụ nữ mặc áo thun trắng có dòng chữ trên đó safety_tolerance: 2 logs: '' model: flux-kontext-apps/multi-image-kontext-max status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/b6k38vmb01rme0crb4bbr2apw4/cancel get: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp URL API này. stream: >- https://stream.replicate.com/v1/files/bcwr-4lncowbqyyr5toyxguv6tr47ffpade3muguvemzik5let3hnlryq web: >- Vui lòng dán nội dung tài liệu cần dịch vào đây; tôi không thể truy cập trực tiếp nội dung từ đường dẫn này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208959-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ flux-kontext-apps/multi-image-kontext-pro" Nguồn: https://docs.openaihub.net/api-45208960/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/flux-kontext-apps/multi-image-kontext-pro/predictions: post: summary: Tạo tác vụ flux-kontext-apps/multi-image-kontext-pro deprecated: false description: >- Tai lieu chinh thuc: https://replicate.com/flux-kontext-apps/multi-image-kontext-pro operationId: >- replicate_replicate_v1_models_flux_kontext_apps_multi_image_kontext_pro_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt - input_image_1 - input_image_2 properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Dùng "match_input_image" để khớp với tỷ lệ khung hình của hình ảnh đầu vào. Mặc định: "match_input_image" input_image_1: type: string description: >- Hình ảnh đầu vào đầu tiên. Phải ở định dạng jpeg, png, gif hoặc webp. input_image_2: type: string description: >- Hình ảnh đầu vào thứ hai. Phải ở định dạng jpeg, png, gif hoặc webp. output_format: type: string description: >- Định dạng đầu ra của hình ảnh được tạo. Giá trị mặc định: "png". prompt: type: string description: >- Mô tả bằng văn bản về cách kết hợp hoặc biến đổi hai hình ảnh đầu vào. safety_tolerance: type: integer description: >- Mức dung sai bảo mật, 0 là nghiêm ngặt nhất và 2 là ít nghiêm ngặt nhất. Hiện tại, 2 là mức tối đa được phép. Giá trị mặc định: 2. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance x-apidog-orders: - aspect_ratio - input_image_1 - input_image_2 - output_format - prompt - safety_tolerance x-apifox-orders: - input x-apidog-orders: - input examples: flux_kontext_appsmulti_image_kontext_pro_single: value: input: aspect_ratio: match_input_image input_image_1: >- https://replicate.delivery/pbxt/N7gRAUNcVF6HarL0hdAQA2JYNMlJD52LP1wyaIWRUXWeHzqT/0_1-1.webp input_image_2: >- https://replicate.delivery/pbxt/N7gRAK5kbPwdsbOpqgyAIOFQX45U6suTlbL6ws2N74SnGFpo/test.jpg output_format: png prompt: Đặt người phụ nữ bên cạnh ngôi nhà safety_tolerance: 2 summary: flux_kontext_appsmulti_image_kontext_pro_single description: Tạo tác vụ flux-kontext-apps/multi-image-kontext-pro responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsFluxKontextAppsMultiImageKontextProPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T02:15:51.786Z' data_removed: false id: 26t3agjpx9rme0crb4es5cbxx4 input: aspect_ratio: match_input_image input_image_1: >- https://replicate.delivery/pbxt/N7gRAUNcVF6HarL0hdAQA2JYNMlJD52LP1wyaIWRUXWeHzqT/0_1-1.webp input_image_2: >- https://replicate.delivery/pbxt/N7gRAK5kbPwdsbOpqgyAIOFQX45U6suTlbL6ws2N74SnGFpo/test.jpg output_format: png prompt: Đặt người phụ nữ bên cạnh ngôi nhà safety_tolerance: 2 logs: '' model: flux-kontext-apps/multi-image-kontext-pro status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/26t3agjpx9rme0crb4es5cbxx4/cancel get: >- https://api.replicate.com/v1/predictions/26t3agjpx9rme0crb4es5cbxx4 stream: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp URL này. web: >- Vui lòng dán nội dung tài liệu cần dịch vào đây. Tôi không thể truy cập nội dung từ liên kết đã cung cấp, nhưng sẽ giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON và định dạng. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208960-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ riffusion/riffusion" Nguồn: https://docs.openaihub.net/api-45208961/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/riffusion/riffusion/predictions: post: summary: Tạo tác vụ riffusion/riffusion deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. operationId: replicate_replicate_v1_models_riffusion_riffusion_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object properties: alpha: type: number description: >- Nếu sử dụng hai gợi ý, alpha sẽ được nội suy. Giá trị 0 nghĩa là sử dụng hoàn toàn prompt_a, còn giá trị 1 nghĩa là sử dụng hoàn toàn prompt_b. Giá trị mặc định: 0.5. Giá trị tối thiểu: 0, giá trị tối đa: 1. denoising: type: number description: >- Mức độ biến đổi phổ tần đầu vào. Giá trị mặc định: 0.75. Giá trị nhỏ nhất: 0, giá trị lớn nhất: 1. num_inference_steps: type: integer description: >- Số bước chạy mô hình khuếch tán. Giá trị mặc định: 50. Tối thiểu: 1. prompt_a: type: string description: Lời nhắc bằng âm thanh. prompt_b: type: string description: >- Lời nhắc thứ hai được nội suy từ lời nhắc thứ nhất, hoặc để trống nếu không thực hiện nội suy. seed_image_id: type: string description: ID ảnh khởi tạo / ảnh tham chiếu description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - alpha - denoising - num_inference_steps - prompt_a - prompt_b - seed_image_id x-apidog-orders: - alpha - denoising - num_inference_steps - prompt_a - prompt_b - seed_image_id version: type: string description: Phiên bản refName: PostReplicateV1ModelsRiffusionRiffusionPredictionsRequest x-apifox-orders: - input - version x-apidog-orders: - input - version examples: riffusionriffusion_single: value: input: alpha: 0.5 denoising: 0.75 num_inference_steps: 50 prompt_a: đoạn độc tấu synthesizer phong cách funk prompt_b: nhạc rap thập niên 90 seed_image_id: cảm xúc version: >- 8cf61ea6c56afd61d8f5b9ffd14d7c216c0a93844ce2d82ac1c9ecc9c7f24e05 summary: riffusionriffusion_single description: Tạo tác vụ riffusion/riffusion responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsRiffusionRiffusionPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: '2': summary: '2' value: created_at: '2025-07-12T07:27:54.577Z' data_removed: false id: w44zs9cet5rmc0cqzp49gpkhf8 input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8/cancel get: >- Vui lòng truy xuất nội dung tại https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8 rồi dịch tài liệu kỹ thuật đó sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại ký tự Hán. stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi có thể dịch sang tiếng Việt và giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON cùng định dạng. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208961-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ black-forest-labs/flux-fill-dev" Nguồn: https://docs.openaihub.net/api-45208962/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-fill-dev/predictions: post: summary: Tạo tác vụ black-forest-labs/flux-fill-dev deprecated: false description: >- Tài liệu chính thức: https://replicate.com/black-forest-labs/flux-fill-dev operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_fill_dev_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - image - prompt properties: guidance: type: integer description: >- Thông tin hướng dẫn tạo hình ảnh. Giá trị mặc định: 30. Giá trị tối thiểu: 0, giá trị tối đa: 100. image: type: string description: >- Hình ảnh cần được sửa chữa. Có thể bao gồm mặt nạ alpha. Nếu chiều rộng hoặc chiều cao của hình ảnh không phải là bội số của 32, hình ảnh sẽ được điều chỉnh theo bội số gần nhất của 32. Nếu kích thước hình ảnh vượt quá 1440x1440, hình ảnh sẽ được thu nhỏ để vừa trong giới hạn 1440x1440. lora_scale: type: integer description: >- Xác định cường độ áp dụng cho LoRA chính. Đối với suy luận cơ bản, giá trị hợp lý nằm trong khoảng từ 0 đến 1. Đối với go_fast, chúng tôi áp dụng hệ số nhân 1.5 lần cho giá trị này; thông thường, hiệu năng sẽ tốt khi nhân giá trị cơ sở với hệ số này. Bạn vẫn có thể cần thử nghiệm để tìm ra giá trị tốt nhất cho LoRA cụ thể của mình. Giá trị mặc định: 1. Giá trị nhỏ nhất: -1, giá trị lớn nhất: 3. mask: type: string description: >- Một hình ảnh đen trắng mô tả phần hình ảnh cần được khôi phục. Các vùng màu đen sẽ được giữ nguyên và các vùng màu trắng sẽ được sửa chữa. megapixels: type: string description: >- Số lượng pixel gần đúng của hình ảnh được tạo. Sử dụng match_input để khớp với kích thước của đầu vào (tối đa 1440x1440 pixel), mặc định: "1". num_inference_steps: type: integer description: >- Số bước khử nhiễu. Phạm vi khuyến nghị là 28-50; số bước càng ít thì chất lượng đầu ra càng thấp nhưng tốc độ càng nhanh. Giá trị mặc định: 28. Giá trị tối thiểu: 1, giá trị tối đa: 50. num_outputs: type: integer description: >- Số lượng đầu ra cần tạo. Giá trị mặc định: 1. Giá trị tối thiểu: 1, giá trị tối đa: 4. output_format: type: string description: 'Định dạng của hình ảnh đầu ra. Mặc định: "webp".' output_quality: type: integer description: >- Chất lượng lưu ảnh đầu ra, từ 0 đến 100. 100 là chất lượng tốt nhất, 0 là chất lượng thấp nhất. Không liên quan đến đầu ra .png. Mặc định: 80 prompt: type: string description: Lời nhắc để tạo hình ảnh. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - guidance - image - lora_scale - mask - megapixels - num_inference_steps - num_outputs - output_format - output_quality - prompt x-apidog-orders: - guidance - image - lora_scale - mask - megapixels - num_inference_steps - num_outputs - output_format - output_quality - prompt x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_fill_dev_single: value: input: guidance: 30 image: >- https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp lora_scale: 1 mask: >- https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png megapixels: '1' num_inference_steps: 28 num_outputs: 2 output_format: webp output_quality: 80 prompt: một con tàu vũ trụ summary: black_forest_labsflux_fill_dev_single description: Tạo tác vụ black-forest-labs/flux-fill-dev responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsBlackForestLabsFluxFillDevPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T03:03:25.864Z' data_removed: false id: tv3jnp73n1rmc0crb54b3srz94 input: guidance: 30 image: >- https://replicate.delivery/pbxt/M0hxMJeO7wFCMr7QYNZsjRxzHhz6ntlLllMteRQNsRD7f3Nf/flux-fill-dev.webp lora_scale: 1 mask: >- https://replicate.delivery/pbxt/M0hxLu8a1YBcybWuumSsfoEec8ooer6JZ2fR28vuM1U0CN9m/74b40bb1-364a-461a-bec5-200a38c7bc87.png megapixels: '1' num_inference_steps: 28 num_outputs: 1 output_format: webp output_quality: 80 prompt: một con tàu vũ trụ logs: '' model: black-forest-labs/flux-fill-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/tv3jnp73n1rmc0crb54b3srz94/cancel get: >- https://api.replicate.com/v1/predictions/tv3jnp73n1rmc0crb54b3srz94 stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi có thể dịch sang tiếng Việt mà vẫn giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON và định dạng. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập nội dung từ URL này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208962-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ `black-forest-labs/flux-fill-pro`" Nguồn: https://docs.openaihub.net/api-45208963/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/black-forest-labs/flux-fill-pro/predictions: post: summary: Tạo tác vụ `black-forest-labs/flux-fill-pro` deprecated: false description: >- Vui lòng dán nội dung tài liệu từ https://replicate.com/black-forest-labs/flux-fill-pro để tôi có thể dịch sang tiếng Việt và giữ nguyên Markdown, mã, định danh, URL, đường dẫn, phần giữ chỗ, cấu trúc JSON cùng định dạng. operationId: >- replicate_replicate_v1_models_black_forest_labs_flux_fill_pro_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - image - prompt properties: guidance: type: integer description: >- Kiểm soát sự cân bằng giữa mức độ tuân thủ lời nhắc văn bản và chất lượng/sự đa dạng của hình ảnh. Giá trị cao hơn giúp kết quả đầu ra bám sát lời nhắc hơn, nhưng có thể làm giảm chất lượng tổng thể của hình ảnh. Giá trị thấp hơn mang lại nhiều tự do sáng tạo hơn cho kết quả đầu ra, nhưng có thể ít liên quan hơn đến lời nhắc. Giá trị mặc định: 60. Giá trị tối thiểu: 1.5, giá trị tối đa: 100. image: type: string description: >- Các hình ảnh cần được sửa chữa. Có thể bao gồm mặt nạ alpha. Phải ở định dạng jpeg, png, gif hoặc webp. mask: type: string description: >- Một hình ảnh đen trắng mô tả phần hình ảnh cần được phục hồi. Các vùng màu đen sẽ được giữ nguyên và các vùng màu trắng sẽ được sửa chữa. Hình này phải có cùng kích thước với hình ảnh. Tham số này là tùy chọn nếu bạn đã cung cấp mặt nạ alpha trong hình ảnh gốc. Hình phải có định dạng jpeg, png, gif hoặc webp. outpaint: type: string description: >- Các tùy chọn để sửa nhanh hình ảnh đầu vào. Mặt nạ sẽ bị bỏ qua. Giá trị mặc định: "None" output_format: type: string description: 'Định dạng của hình ảnh đầu ra. Giá trị mặc định: "jpg".' prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. prompt_upsampling: type: boolean description: >- Tự động sửa đổi câu lệnh để tạo thêm nhiều ý tưởng. Giá trị mặc định: false safety_tolerance: type: integer description: >- Mức dung sai bảo mật, trong đó 1 là nghiêm ngặt nhất và 6 là lỏng lẻo nhất. Giá trị mặc định: 2. steps: type: integer description: >- Số bước khuếch tán. Giá trị cao hơn cung cấp chi tiết tinh tế hơn, nhưng cũng mất nhiều thời gian xử lý hơn. Giá trị mặc định: 50. Giá trị tối thiểu: 15, giá trị tối đa: 50. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - guidance - image - mask - outpaint - output_format - prompt - prompt_upsampling - safety_tolerance - steps x-apidog-orders: - guidance - image - mask - outpaint - output_format - prompt - prompt_upsampling - safety_tolerance - steps x-apifox-orders: - input x-apidog-orders: - input examples: black_forest_labsflux_fill_pro_single: value: input: guidance: 60 image: >- https://replicate.delivery/pbxt/M0gpKVE9wmEtOQFNDOpwz1uGs0u6nK2NcE85IihwlN0ZEnMF/kill-bill-poster.jpg mask: >- https://replicate.delivery/pbxt/M0gpLCYdCLbnhcz95Poy66q30XW9VSCN65DoDQ8IzdzlQonw/kill-bill-mask.png outpaint: Không có output_format: jpg prompt: áp phích phim ghi "FLUX FILL" prompt_upsampling: false safety_tolerance: 2 steps: 50 summary: black_forest_labsflux_fill_pro_single description: Tạo tác vụ `black-forest-labs/flux-fill-pro` responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsBlackForestLabsFluxFillProPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-30T03:10:33.786Z' data_removed: false id: w72vtvbb79rmc0crb57tckqt24 input: guidance: 60 image: >- https://replicate.delivery/pbxt/M0gpKVE9wmEtOQFNDOpwz1uGs0u6nK2NcE85IihwlN0ZEnMF/kill-bill-poster.jpg mask: >- https://replicate.delivery/pbxt/M0gpLCYdCLbnhcz95Poy66q30XW9VSCN65DoDQ8IzdzlQonw/kill-bill-mask.png outpaint: Không có output_format: jpg prompt: áp phích phim ghi "FLUX FILL" prompt_upsampling: false safety_tolerance: 2 steps: 50 logs: '' model: black-forest-labs/flux-fill-pro status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w72vtvbb79rmc0crb57tckqt24/cancel get: >- https://api.replicate.com/v1/predictions/w72vtvbb79rmc0crb57tckqt24 stream: >- Vui lòng dán nội dung tài liệu cần dịch vào đây; tôi không thể truy cập trực tiếp tệp từ URL này. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập nội dung từ đường dẫn này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208963-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ google/imagen-4-fast" Nguồn: https://docs.openaihub.net/api-45208964/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/google/imagen-4-fast/predictions: post: summary: Tạo tác vụ google/imagen-4-fast deprecated: false description: 'Tài liệu chính thức: https://replicate.com/google/imagen-4-fast' operationId: replicate_replicate_v1_models_google_imagen_4_fast_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "1:1". output_format: type: string description: 'Định dạng của hình ảnh đầu ra. Giá trị mặc định: "jpg".' prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. safety_filter_level: type: string description: >- block_low_and_above là mức nghiêm ngặt nhất, block_medium_and_above sẽ chặn một số lời nhắc, còn block_only_high là mức ít nghiêm ngặt nhất, nhưng một số lời nhắc vẫn sẽ bị chặn. Giá trị mặc định: "block_only_high" description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apidog-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apifox-orders: - input x-apidog-orders: - input examples: googleimagen_4_fast_single: value: input: aspect_ratio: '4:3' output_format: jpg prompt: >- Bức ảnh: Tạo một cảnh quay trung cảnh đậm chất điện ảnh, chân thực như ảnh chụp, ghi lại nguồn năng lượng cuốn hút của một bộ phim hành động đầy kịch tính. Tâm điểm là một cô gái trẻ có mái tóc sẫm màu tung bay trong gió, điểm những lọn tóc màu hồng, cùng nét mặt đầy quyết tâm; cô nhìn thẳng và chăm chú vào ống kính máy ảnh, với vị trí hơi lệch khỏi trung tâm. Cô mặc một chiếc áo khoác đua xe ôm sát màu hồng và vàng bên ngoài áo ba lỗ màu đen, trên ngực in dòng chữ "Imagen 4 Fast" theo kiểu chữ gợi chuyển động và ở dòng kế tiếp là "on Replicate", đồng thời đeo kính phi công được đẩy lên trên đầu. Ánh sáng đầy kịch tính với các vệt nhòe do chuyển động và ánh neon phản chiếu từ đèn thành phố lướt qua, tạo nên những quầng lóe trong ống kính và các vệt sáng sống động (chúng không che khuôn mặt cô). Phông nền cho thấy cảnh đô thị ban đêm bị làm nhòe, với những vệt đèn pha ô tô và các tòa nhà chọc trời rực sáng lao vụt qua, được thể hiện bằng hiệu ứng nhòe chuyển động mạnh và độ sâu trường ảnh nông. Ánh sáng có độ tương phản cao, bảng màu neon rực rỡ với sắc xanh lam đậm và vàng điện, cùng đôi mắt mãnh liệt của cô được lấy nét sắc như dao, làm nổi bật bầu không khí dồn dập và đầy phấn khích. Cô được chiếu sáng trong khi phông nền tối hơn. safety_filter_level: block_only_high summary: googleimagen_4_fast_single description: Tạo tác vụ google/imagen-4-fast responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsGoogleImagen4FastPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: '[long payload omitted: 1,953 units]' 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208964-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ google/imagen-4-ultra" Nguồn: https://docs.openaihub.net/api-45208965/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/google/imagen-4-ultra/predictions: post: summary: Tạo tác vụ google/imagen-4-ultra deprecated: false description: 'Tài liệu chính thức: https://replicate.com/google/imagen-4-ultra' operationId: replicate_replicate_v1_models_google_imagen_4_ultra_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "1:1". output_format: type: string description: 'Định dạng của ảnh đầu ra. Mặc định: "jpg"' prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. safety_filter_level: type: string description: >- block_low_and_above là mức nghiêm ngặt nhất, block_medium_and_above sẽ chặn một số lời nhắc, còn block_only_high là mức ít nghiêm ngặt nhất, nhưng một số lời nhắc vẫn sẽ bị chặn. Giá trị mặc định: "block_only_high" description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apidog-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apifox-orders: - input x-apidog-orders: - input examples: googleimagen_4_ultra_single: value: input: aspect_ratio: '16:9' output_format: jpg prompt: >- Bức ảnh: Tạo một cảnh quay trung cảnh đậm chất điện ảnh, chân thực như ảnh chụp, tái hiện sự ấm áp hoài niệm của một bộ phim độc lập giữa thập niên 2000. Chủ thể là một cô gái trẻ có mái tóc bob thẳng, bóng mượt, màu trắng bạch kim lạnh và làn da có tàn nhang, đang nhìn thẳng và chăm chú vào ống kính máy ảnh với nụ cười nhếch đầy ẩn ý, đầu cô hơi ngẩng lên. Cô mặc một chiếc áo thun ban nhạc dáng rộng có dòng chữ "Imagen 4 Ultra on Replicate" thật lớn với kiểu chữ cách điệu bên ngoài một chiếc áo dài tay kẻ sọc, cùng đôi khuyên tai bạc nhỏ đơn giản. Ánh sáng là nắng vàng dịu nhẹ lúc hoàng hôn, tạo hiệu ứng lóe sáng ống kính và làm các hạt bụi trong không khí bừng sáng. Phông nền là một khung cảnh đô thị ngoài trời được làm mờ với những bức tường phủ đầy hình vẽ graffiti (dòng graffiti ghi "ultra" bằng kiểu chữ graffiti cách điệu), được thể hiện với độ sâu trường ảnh nông. Hạt phim tự nhiên, bảng màu ấm và hơi trầm, cùng độ nét tập trung vào đôi mắt giàu biểu cảm của cô làm tăng cảm giác gần gũi, chân thực. safety_filter_level: block_only_high summary: googleimagen_4_ultra_single description: Tạo tác vụ google/imagen-4-ultra responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsGoogleImagen4UltraPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: '[long payload omitted: 1,759 units]' 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208965-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ google/imagen-4" Nguồn: https://docs.openaihub.net/api-45208966/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/google/imagen-4/predictions: post: summary: Tạo tác vụ google/imagen-4 deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ đường dẫn đã cung cấp. operationId: replicate_replicate_v1_models_google_imagen_4_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình của hình ảnh được tạo. Giá trị mặc định: "1:1". Hỗ trợ: 1:1, 9:16, 16:9, 3:4, 4:3 output_format: type: string description: 'Định dạng của hình ảnh đầu ra. Giá trị mặc định: "jpg".' prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. safety_filter_level: type: string description: >- block_low_and_above là mức nghiêm ngặt nhất, block_medium_and_above sẽ chặn một số lời nhắc, còn block_only_high là mức ít nghiêm ngặt nhất, nhưng một số lời nhắc vẫn sẽ bị chặn. Giá trị mặc định: "block_only_high" description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apidog-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apifox-orders: - input x-apidog-orders: - input examples: googleimagen_4_single: value: input: aspect_ratio: '16:9' output_format: jpg prompt: >- Bức ảnh: Tạo một cảnh quay trung cảnh đậm chất điện ảnh, chân thực như ảnh chụp, tái hiện sự ấm áp hoài niệm của một bộ phim độc lập cuối thập niên 90. Tâm điểm là một cô gái trẻ có mái tóc nhuộm màu vàng hồng rực rỡ và làn da đầy tàn nhang, đang nhìn thẳng và chăm chú vào ống kính với nụ cười đầy hy vọng nhưng hơi thiếu chắc chắn; cô đứng hơi lệch khỏi trung tâm. Cô mặc một chiếc áo thun ban nhạc cổ điển dáng rộng có dòng chữ "Replicate" (hơi sờn) bên ngoài áo dài tay kẻ sọc, cùng đôi khuyên tai bạc dạng đinh đơn giản. Ánh sáng là nắng dịu nhẹ màu vàng vào giờ hoàng kim, chiếu xuyên qua một ô cửa sổ hơi bám bụi, tạo hiệu ứng lóe sáng ống kính và làm nổi bật những hạt bụi lơ lửng trong không khí. Phông nền là một phòng ngủ bừa bộn được làm mờ, với áp phích trên tường và dây đèn trang trí, được thể hiện bằng độ sâu trường ảnh nông. Hạt phim tự nhiên, bảng màu ấm và hơi trầm, cùng độ nét tập trung vào đôi mắt giàu biểu cảm của cô làm tăng thêm cảm giác thân mật, chân thực. safety_filter_level: block_medium_and_above summary: googleimagen_4_single description: Tạo tác vụ google/imagen-4 responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object required: - aspect_ratio - output_format - prompt - safety_filter_level properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản safety_filter_level: type: string description: Mức bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - output_format - prompt - safety_filter_level x-apidog-orders: - aspect_ratio - output_format - prompt - safety_filter_level logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsGoogleImagen4PredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: '[long payload omitted: 1,747 units]' 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208966-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ prunaai/vace-14b" Nguồn: https://docs.openaihub.net/api-45208967/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/prunaai/vace-14b/predictions: post: summary: Tạo tác vụ prunaai/vace-14b deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. operationId: replicate_replicate_v1_models_prunaai_vace_14b_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: frame_num: type: integer description: 'Số lượng khung hình cần tạo. Giá trị mặc định: 81.' prompt: type: string description: Mô tả văn bản. sample_guide_scale: type: integer description: >- Dịch tài liệu kỹ thuật này sang tiếng Việt. Giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại bất kỳ chữ Hán nào. Thang hướng dẫn mẫu. Giá trị mặc định: 5 sample_shift: type: integer description: 'Độ lệch mẫu. Mặc định: 16' sample_solver: type: string description: 'Bộ giải lấy mẫu. Mặc định: "unipc"' sample_steps: type: integer description: 'Các bước ví dụ. Giá trị mặc định: 50' seed: type: integer description: Hạt giống ngẫu nhiên (-1 nghĩa là ngẫu nhiên) size: type: string description: 'Độ phân giải đầu ra. Giá trị mặc định: "832*480"' speed_mode: type: string description: >- Mức độ tối ưu hóa tốc độ. Mặc định: "Ép nhẹ 🍊 (ổn định hơn)" src_mask: type: string description: Nhập video hoặc hình ảnh đã che mà bạn muốn chỉnh sửa. src_ref_images: type: array items: type: string description: Nhập một hình ảnh tham chiếu để chỉnh sửa. src_video: type: string description: Nhập video bạn muốn chỉnh sửa. description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - frame_num - prompt - sample_guide_scale - sample_shift - sample_solver - sample_steps - seed - size - speed_mode - src_mask - src_ref_images - src_video x-apidog-orders: - frame_num - prompt - sample_guide_scale - sample_shift - sample_solver - sample_steps - seed - size - speed_mode - src_mask - src_ref_images - src_video version: type: string description: Phiên bản refName: PostReplicateV1ModelsPrunaaiVace14bPredictionsRequest x-apifox-orders: - input - version x-apidog-orders: - input - version examples: prunaaivace_14b_single: value: input: frame_num: 81 prompt: >- Video cho thấy một người đàn ông cưỡi ngựa trên một thảo nguyên rộng lớn. Anh ấy có mái tóc dài màu tím oải hương và mặc trang phục truyền thống gồm áo trắng và quần đen. Phong cách hoạt hình khiến anh ấy trông như đang tham gia một hoạt động ngoài trời hoặc biểu diễn. Phía sau là dãy núi hùng vĩ cùng bầu trời đầy mây, tạo cảm giác yên bình và bao la. Toàn bộ video được quay từ một góc máy cố định, tập trung vào người cưỡi và con ngựa của anh ấy. sample_guide_scale: 5 sample_shift: 16 sample_solver: unipc sample_steps: 50 seed: -1 size: 1280*720 speed_mode: Tăng tốc cực đại 🚀 (nhanh hơn nữa) src_mask: >- https://replicate.delivery/pbxt/N323tegI7AuoZmg0U5CuTKa7VBFC4gymhe0kT8Jk3o2sjUUj/src_mask.mp4 src_ref_images: - >- https://replicate.delivery/pbxt/N323t5X69JB1MPD4w4cDIxK4rm0BG0W2JOWBrDrR4O9HTcyp/src_ref_image_1.png src_video: >- https://replicate.delivery/pbxt/N323u1ljtNYyyaLrgw0ZLmXgepvWlBvxbJWi3sAa2VDPuNus/src_video.mp4 version: >- 51299232dc3d0946d5f5ed74935d85243e172698f747d291460db1e6ef3669fb summary: prunaaivace_14b_single description: Tạo tác vụ prunaai/vace-14b responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: PostReplicateV1ModelsPrunaaiVace14bPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: '2': summary: '2' value: created_at: '2025-07-12T07:27:54.577Z' data_removed: false id: w44zs9cet5rmc0cqzp49gpkhf8 input: aspect_ratio: match_input_image input_image: >- Vui lòng tải ảnh lên trực tiếp hoặc dán nội dung tài liệu để tôi có thể dịch sang tiếng Việt và giữ nguyên định dạng Markdown, mã, định danh, URL, đường dẫn, chỗ giữ chỗ cùng cấu trúc JSON. output_format: jpg prompt: >- Làm cho các chữ cái có hiệu ứng 3D, lơ lửng trong không gian trên một con phố thành thị prompt_upsampling: false safety_tolerance: 2 logs: '' model: black-forest-labs/flux-kontext-dev status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8/cancel get: >- Vui lòng truy xuất nội dung tại https://api.replicate.com/v1/predictions/w44zs9cet5rmc0cqzp49gpkhf8 rồi dịch tài liệu kỹ thuật đó sang tiếng Việt. Giữ nguyên Markdown, mã, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON và định dạng. Chỉ trả về văn bản đã dịch và không để lại ký tự Hán. stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi có thể dịch sang tiếng Việt và giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ dành sẵn, cấu trúc JSON cùng định dạng. web: >- Vui lòng dán nội dung tài liệu cần dịch; tôi không thể truy cập trực tiếp nội dung từ liên kết này. version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208967-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ ideogram-ai/ideogram-v2-turbo" Nguồn: https://docs.openaihub.net/api-45208968/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/ideogram-ai/ideogram-v2-turbo/predictions: post: summary: Tạo tác vụ ideogram-ai/ideogram-v2-turbo deprecated: false description: >- Vui lòng dán nội dung tài liệu cần dịch. Tôi không thể truy cập trực tiếp nội dung từ URL đã cung cấp. operationId: replicate_replicate_v1_models_ideogram_ai_ideogram_v2_turbo_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo 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 properties: input: type: object required: - prompt properties: aspect_ratio: type: string description: >- Tỷ lệ khung hình. Bị bỏ qua nếu độ phân giải hoặc hình ảnh sửa chữa được chỉ định. Giá trị mặc định: "1:1". magic_prompt_option: type: string description: >- Magic Prompt diễn giải các câu lệnh của bạn và tối ưu hóa chúng để tăng tối đa sự đa dạng và chất lượng của những hình ảnh tạo ra. Bạn cũng có thể dùng tính năng này để viết câu lệnh bằng nhiều ngôn ngữ khác nhau. Giá trị mặc định: "Tự động". prompt: type: string description: Lời nhắc văn bản được tạo từ hình ảnh. resolution: type: string description: >- độ phân giải. Tỷ lệ khung hình phủ kín. Nếu một hình ảnh sửa chữa được chỉ định, tham số này sẽ bị bỏ qua. Giá trị mặc định: "Không có". style_type: type: string description: >- Phong cách giúp xác định diện mạo thẩm mỹ cụ thể của hình ảnh bạn muốn tạo ra. Giá trị mặc định: "Không có". description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - magic_prompt_option - prompt - resolution - style_type x-apidog-orders: - aspect_ratio - magic_prompt_option - prompt - resolution - style_type x-apifox-orders: - input x-apidog-orders: - input examples: ideogram_aiideogram_v2_turbo_single: value: input: aspect_ratio: '1:1' magic_prompt_option: Tự động prompt: >- Hình minh họa một chiếc giày chạy bộ màu vàng với dòng chữ "Chạy AI bằng API" được viết trên giày. Chiếc giày được đặt trên nền màu hồng. Dòng chữ có màu trắng và in đậm. Tổng thể hình ảnh mang phong cách hiện đại, đậm chất công nghệ, với các yếu tố gợi lên tốc độ. resolution: Không có style_type: Không có summary: ideogram_aiideogram_v2_turbo_single description: Tạo tác vụ ideogram-ai/ideogram-v2-turbo responses: '200': description: '' content: application/json: schema: type: object required: - id - status properties: created_at: type: string description: Thời gian tạo data_removed: type: boolean description: Liệu dữ liệu nhạy cảm đã được loại bỏ hay chưa error: type: string description: Thông báo lỗi nullable: true id: type: string description: ID tài nguyên hoặc tác vụ input: type: object properties: aspect_ratio: type: string description: 'Tỷ lệ khung hình, ví dụ: 16:9, 9:16, 1:1' input_image: type: string description: URL hình ảnh đầu vào hoặc Base64 output_format: type: string description: 'Định dạng đầu ra, ví dụ: png / jpeg / webp' prompt: type: string description: Lời nhắc văn bản prompt_upsampling: type: boolean description: Có tăng độ phân giải / cải thiện lời nhắc hay không safety_tolerance: type: integer description: Mức dung sai của bộ lọc an toàn description: Vui lòng cung cấp nội dung tài liệu cần dịch. x-apifox-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance x-apidog-orders: - aspect_ratio - input_image - output_format - prompt - prompt_upsampling - safety_tolerance logs: type: string description: Nhật ký chạy model: type: string description: Tên mô hình / mã định danh mô hình output: type: string description: Kết quả đầu ra nullable: true status: type: string description: Trạng thái urls: type: object required: - cancel - get - stream - web properties: cancel: type: string description: URL để hủy tác vụ get: type: string description: URL để truy vấn trạng thái tác vụ stream: type: string description: Có truyền phát phản hồi hay không web: type: string description: URL để xem tác vụ trong trình duyệt description: Danh sách URL tài nguyên x-apifox-orders: - cancel - get - stream - web x-apidog-orders: - cancel - get - stream - web version: type: string description: Phiên bản refName: >- PostReplicateV1ModelsIdeogramAiIdeogramV2TurboPredictionsResponse x-apifox-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version x-apidog-orders: - created_at - data_removed - error - id - input - logs - model - output - status - urls - version examples: example: summary: example value: created_at: '2025-07-29T09:37:36.685Z' data_removed: false id: 2jycc2v9nnrmc0crap5tv5zaxr input: aspect_ratio: '1:1' magic_prompt_option: Tự động prompt: >- Hình minh họa một chiếc giày chạy bộ màu vàng với dòng chữ "Chạy AI bằng API" được viết trên giày. Chiếc giày được đặt trên nền màu hồng. Dòng chữ có màu trắng và in đậm. Tổng thể hình ảnh mang phong cách hiện đại, đậm chất công nghệ, với các yếu tố gợi lên tốc độ. resolution: Không có style_type: Không có logs: '' model: ideogram-ai/ideogram-v2-turbo status: starting urls: cancel: >- https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr/cancel get: >- https://api.replicate.com/v1/predictions/2jycc2v9nnrmc0crap5tv5zaxr stream: >- Vui lòng dán nội dung tài liệu vào đây để tôi dịch sang tiếng Việt và giữ nguyên Markdown, mã nguồn, định danh, URL, đường dẫn, chỗ giữ chỗ, cấu trúc JSON và định dạng. web: https://replicate.com/p/2jycc2v9nnrmc0crap5tv5zaxr version: ẩn 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208968-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ``` --- # "Tạo tác vụ bytedance/seedream-4" Nguồn: https://docs.openaihub.net/api-45208969/ > 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 ```yaml openapi: 3.0.1 info: title: '' description: '' version: 1.0.0 paths: /replicate/v1/models/bytedance/seedream-4/predictions: post: summary: Tạo tác vụ bytedance/seedream-4 deprecated: false description: >- Gửi một yêu cầu dự đoán chuyển văn bản thành hình ảnh bằng ByteDance Seedream 4; trả về mã định danh dự đoán để thăm dò. operationId: replicate_replicate_v1_models_bytedance_seedream_4_predictions tags: - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Tổng hợp bản sao - Tái tạo parameters: [] requestBody: content: application/json: schema: type: object x-apidog-orders: [] examples: bytedanceseedream_4_single: value: input: aspect_ratio: '4:3' height: 2048 image_input: [] max_images: 2 prompt: >- một bức ảnh chụp mặt tiền một cửa hàng có tên i"sedream 4", cửa hàng bán sách, một áp phích trên cửa sổ ghi i"sedream 4 hiện đã có trên Replicate! sequential_image_generation: tự động size: 2K width: 2048 summary: bytedanceseedream_4_single description: Tạo tác vụ bytedance/seedream-4 responses: '200': description: '' content: application/json: schema: type: object x-apidog-orders: [] examples: example: summary: example value: request_id: req_example status: OK 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/Tổng hợp bản sao x-apidog-status: released x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208969-run components: schemas: {} securitySchemes: {} servers: - url: https://api.openaihub.net description: Prod Env security: [] ```