OPENCLAW + TOPAZ

在 OpenClaw 中使用 Topaz。

Topaz Labs 的 Topaz 使用神經網絡將圖像放大增強至最高 8 倍解析度,恢復細節而不產生偽影。OpenClaw agent 透過與聊天和圖像生成相同的 RunAPI key 呼叫它——發送圖像 URL,選擇縮放倍數,然後輪詢增強後的結果。

一個 API key · 圖像放大增強端點 · 非同步任務輪詢
Use RunAPI to upscale an image with Topaz.

Requirements:
- Use the RUNAPI_API_KEY environment variable for authentication.
- Call the RunAPI upscale_image endpoint at https://runapi.ai/api/v1/topaz/upscale_image.
- Set model to "topaz-upscale-image".
- Pass the image URL in image_url.
- Optionally set scale to 2, 4, or 8 (default is 2).
- The response returns a task_id. Poll the task status endpoint until the task completes, then retrieve the upscaled image URL from the result.
curl -X POST https://runapi.ai/api/v1/topaz/upscale_image \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "topaz-upscale-image",
    "image_url": "https://example.com/photo.jpg",
    "scale": 4
  }'
{
  "task_id": "tsk_abc123",
  "status": "pending",
  "model": "topaz-upscale-image"
}
複製 curl 指令測試 topaz
操作步驟

三步驟在 OpenClaw 中使用 Topaz

1

設定 RunAPI

如果你尚未在 OpenClaw 中設定 RunAPI,請參照 OpenClaw 設定指南。設定 RUNAPI_API_KEY 環境變數,並以 baseUrl https://runapi.ai/v1 將 RunAPI 新增為 OpenAI 相容 provider。

export RUNAPI_API_KEY=runapi_xxx
2

呼叫 Topaz upscale_image

向 upscale_image 端點發送 POST 請求,將 model 設為 topaz-upscale-image,附上來源圖像 URL(image_url)以及可選的縮放倍數 2、4 或 8。同一個 RunAPI key 處理身份驗證。

POST /api/v1/topaz/upscale_image
3

輪詢結果

端點返回狀態為 pending 的 task_id。輪詢 task status 端點直到狀態變為 completed,然後從回應中取得放大增強後的圖像 URL。RunAPI SDK 和 CLI 會自動處理輪詢。

GET /api/v1/topaz/upscale_image/tsk_abc123
參數

Topaz upscale_image API 參數

參數 類型 說明
model string 必填。topaz-upscale-image 或 topaz-upscale-video。
image_url string 要放大增強的圖像 URL。
scale integer 可選。放大倍數:2、4 或 8。預設為 2。
callback_url string 可選。非同步完成通知的 webhook URL。

OpenClaw 上的 Topaz 是什麼?

Topaz 是攝影師稱為照片保真度金標準的專業級圖像後期工具。它能將圖像放大至 8 倍分辨率,效果清晰且忠實於原圖。在 RunAPI 上它以 API 端點而非桌面軟件訂閲的形式運行,OpenClaw agent 可將放大功能作為自動化圖像工作流程的一個步驟。

Topaz 使用場景

AI 生成圖放大至印刷質量

將 Midjourney、Flux 或任何生成模型的輸出放大至 8K 分辨率,用於商業印刷授權、大幅海報或產品包裝。

降噪與面部修復

清除噪點高的弱光照片並修復肖像中模糊的面部,還原因壓縮或拍攝條件不佳而丟失的細節。

批量處理大型照片集

在單一工作流程中對數百張產品照片或檔案圖片進行放大處理,API 以非同步方式處理每張圖像。

FAQ

Topaz + OpenClaw 常見問題

OpenClaw 一般設定

尚未設定?從 OpenClaw 的 RunAPI 設定指南開始。

OpenClaw 設定指南 →

Topaz 模型目錄

查看所有 Topaz 版本、收費及 API 文件。

Topaz 模型 →

立即在 OpenClaw 中試用 Topaz。

取得免費 RunAPI key,將 prompt 貼入 OpenClaw,開始使用 Topaz 放大增強圖像。