Omni Flash 1.2
Tổng quan
Mã định danh mô hình: omni-flash-1.2 · Đầu ra: video · Chế độ: Text to Video, Image to Video, Video to Video
Xác thực và endpoint
Mọi yêu cầu gửi đến https://genjutsu.top. Gửi khóa API Genjutsu dưới dạng bearer token. POST https://genjutsu.top/v1/media/generate · Authorization: Bearer $GENJUTSU_API_KEY · Quyền cần thiết: generate, read, assets
Chế độ và tham số
Text to Video t2v
| Tham số | Kiểu | Bắt buộc | Mặc định | Chi tiết |
|---|---|---|---|---|
prompt | string | Bắt buộc | - | |
aspect_ratio | một trong | Tùy chọn | "9:16" |
|
duration | một trong | Tùy chọn | 15 |
|
video_upscale | một trong | Tùy chọn | "none" |
|
Yêu cầu tối thiểu
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "omni-flash-1.2",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}'Yêu cầu có tham số tùy chọn
curl -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "omni-flash-1.2",
"mode": "t2v",
"params": {
"count": 1,
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light",
"duration": 15,
"aspect_ratio": "9:16",
"video_upscale": "none"
}
}'Image to Video i2v
| Tham số | Kiểu | Bắt buộc | Mặc định | Chi tiết |
|---|---|---|---|---|
prompt | string | Bắt buộc | - | |
video_mode | một trong | Tùy chọn | "image-to-video" |
|
image_url | ID tài nguyên image | Bắt buộc | - | |
images_list | danh sách ID tài nguyên image |
Video to Video v2v
| Tham số | Kiểu | Bắt buộc | Mặc định | Chi tiết |
|---|---|---|---|---|
prompt | string | Bắt buộc | - | |
video_url | ID tài nguyên video | Bắt buộc | - | MP4, MOV, or WebM. Maximum 100 MiB. |
video_reference_images | danh sách ID tài nguyên image | Tùy chọn | - | |
aspect_ratio | một trong | Tùy chọn | "9:16" |
|
Vòng đời tác vụ
Gửi yêu cầu tới POST /v1/media/generate. Máy chủ trả về 202 kèm task_id. Hãy poll GET /v1/media/tasks/{task_id} mỗi 5 giây cho đến khi is_final là true: lúc đó trạng thái là succeeded, failed hoặc cancelled và chính tác vụ này chứa kết quả (outputs) hoặc lỗi (error_code và error_message). Gửi lại với cùng Idempotency-Key sẽ trả về tác vụ ban đầu. ID và URL trong phản hồi chỉ mang tính minh họa.
# Needs curl and jq.
# 1. Submit. The response is 202 with task_id, state and credits_held.
ID=$(curl -s -X POST "https://genjutsu.top/v1/media/generate" \
-H "Authorization: Bearer $GENJUTSU_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "omni-flash-1.2",
"mode": "t2v",
"params": {
"prompt": "A lighthouse on a rocky cliff at golden hour, soft clouds, cinematic light"
}
}' | jq -r .task_id)
echo "task: $ID"
# 2. Poll every 5 seconds until is_final is true (state is then succeeded, failed or cancelled).
while true; do
TASK=$(curl -s "https://genjutsu.top/v1/media/tasks/$ID" -H "Authorization: Bearer $GENJUTSU_API_KEY")
echo "state: $(echo "$TASK" | jq -r .state)"
[ "$(echo "$TASK" | jq -r .is_final)" = "true" ] && break
sleep 5
done
# 3. The final task carries the result: outputs[].url when succeeded, error_code and error_message when failed.
echo "$TASK" | jq '{state, outputs, error_code, error_message, credits}'Giá
Text to Video
| Tùy chọn | Tổng |
|---|---|
Video upscaling: 720p | 1.500000 tín dụng mỗi yêu cầu |
Video upscaling: 1080p | 2.000000 tín dụng mỗi yêu cầu |
Video upscaling: 2K | 2.500000 tín dụng mỗi yêu cầu |
Image to Video
| Tùy chọn | Tổng |
|---|---|
Video upscaling: 720p | 1.500000 tín dụng mỗi yêu cầu |
Video upscaling: 1080p | 2.000000 tín dụng mỗi yêu cầu |
Video upscaling: 2K | 2.500000 tín dụng mỗi yêu cầu |
Video to Video
| Tùy chọn | Tổng |
|---|---|
Video upscaling: 720p | 2.000000 tín dụng mỗi yêu cầu |
Video upscaling: 1080p | 2.500000 tín dụng mỗi yêu cầu |
Video upscaling: 2K | 3.000000 tín dụng mỗi yêu cầu |
Để xem tổng chính xác, dùng Studio hoặc POST /v1/quotes.
Phiên bản và ghi chú
Phiên bản tài liệu 5, phát hành 2026-11-27.