Kling Image O1
Kling Image O1 是一款圖片生成與編輯模型,支援文字生圖、單圖編輯、多圖參考與圖組輸出,最高可選擇 4K 解析度。它適合高品質產品視覺、角色與風格參考、廣告主圖、概念設計、素材改寫,以及需要一次生成多張相關圖片的工作流程。你可以在試驗場中調整生成或編輯模式、參考圖片、尺寸、解析度與輸出數量,在正式串接前以真實提示詞比較指令遵循、主體一致性、細節品質、生成速度與成本。具體可用能力與參數範圍以目前頁面為準。

- 模型識別碼
- kling-image-o1
- 供應商
- Kling
- API 端點
- /v1/images/tasks
- 計費
- 0.029411764706
- 更新時間
- 2026-08-13
能力
- 透過目前公開端點生成圖片
- 即時 Schema 提供時支援圖片編輯或參考圖控制
- 目前參數包括 prompt, task_type, operation
限制
- 模型能力與參數範圍可能更新,正式環境應鎖定並驗證使用的參數組合
- 未出現在即時 Request Schema 中的參數不應假定可用
- 非同步任務需要處理輪詢、失敗、逾時與內容安全狀態
典型情境
- 產品原型與自動化內容工作流程
- 批次媒體生成與程式化創作
- 需要統一驗證、計費與呼叫記錄的多模型應用
價格與計費範例
- 1K/2K image output | 0.029411764706 | output_images | {"operation":["image.generate","image.edit"],"resolution_tier":["default","1k","2k"]}
- 4K image output | 0.058823529412 | output_images | {"operation":["image.generate","image.edit"],"resolution_tier":"4k"}
請求參數
| 參數 | 類型 | 必填 | 預設值 | 可選值 |
|---|---|---|---|---|
| model | string | 是 | ||
| prompt | textarea | 是 | ||
| task_type | select | 是 | text2image | text2image, image2image |
| operation | select | 是 | text_to_image | text_to_image, image_edit, reference_to_image |
| resolution | select | 是 | 1k | 1k, 2k, 4k |
| aspect_ratio | select | 否 | 16:9 | auto, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9 |
| image | asset_list | 否 | ||
| image_urls | asset_list | 否 | ||
| num_images | integer | 否 | 1 | |
| result_type | select | 否 | single | single, series |
| watermark | boolean | 否 | false |
API 串接範例
cURL
curl -X POST 'https://api.uniall.ai/v1/images/tasks' \
-H 'Authorization: Bearer $UNIALL_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"aspect_ratio":"16:9","model":"kling-image-o1","num_images":1,"operation":"text_to_image","prompt":"Describe the output you want","resolution":"1k","result_type":"single","task_type":"text2image","watermark":false}'Python
import json
import requests
payload = json.loads(r'''{"aspect_ratio":"16:9","model":"kling-image-o1","num_images":1,"operation":"text_to_image","prompt":"Describe the output you want","resolution":"1k","result_type":"single","task_type":"text2image","watermark":false}''')
response = requests.post(
"https://api.uniall.ai/v1/images/tasks",
headers={"Authorization": "Bearer " + UNIALL_API_KEY},
json=payload,
)
response.raise_for_status()
result = response.json()JavaScript
const response = await fetch("https://api.uniall.ai/v1/images/tasks", {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.UNIALL_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({"aspect_ratio":"16:9","model":"kling-image-o1","num_images":1,"operation":"text_to_image","prompt":"Describe the output you want","resolution":"1k","result_type":"single","task_type":"text2image","watermark":false}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
const result = await response.json();常見問題
kling-image-o1 的 API 端點是甚麼?
端點會依目前模型能力與 Request Schema 自動解析,並顯示於本頁 API 區域。
kling-image-o1 如何計費?
價格區域直接讀取目前的結構化計費設定;改價後不需要重寫本文。
可以使用 Python 串接嗎?
可以。本頁範例使用目前端點與原始模型程式碼識別碼。
是否提供 JavaScript 與 cURL 範例?
提供。三種範例共用同一個即時請求結構。
支援哪些解析度、時長或參考圖參數?
支援範圍取決於目前 Request Schema,未顯示的欄位不應假定可用。
正式環境串接時要注意甚麼?
請驗證參數、逾時、錯誤處理與非同步生成任務狀態,並在模型更新後重新執行小範圍測試。