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

Tạo tác vụ google/imagen-4

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