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

Hình ảnh và văn bản (các từ gợi ý được suy ngược)

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/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,<data>`.
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: []