Bỏ qua để đến nội dung

Tải ảnh lên

Xem Markdownllms.txt

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: 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: []