跳至內容

Topaz Upscale Image Generative

整合

模型 id topaz/upscale/image/generative
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/topaz/upscale/image/generative?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $0.08 80 API 點數 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Topaz Labs 升級解析度 #upscale#image

生成式影像放大器,支援多種模型、臉部增強與提示詞引導的 Redefine 模式

Topaz Labs · 圖像

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

0 / 1024

生成式放大的指引文字,限制為 1024 個字元,僅 Redefine 支援。

•必填 image_url
拖放檔案,或

用於放大的來源圖像 URL。

預設 Wonder 3

生成式放大模型選擇:Recovery 與 Recovery V2 可重建極低解析度圖像;Redefine 使用提示詞引導創意細節;Standard MAX 著重精確度與高品質;Recover 3 重建自然細節。在 Wonder 系列中,Wonder 與 Wonder 2 早於 Wonder 3,後者是最進階的生成式寫實模型;最新版本 Wonder 3.5 能提供更細緻的細節與更少的圖樣重複。

預設 2

圖像放大倍數;例如 2.0 會讓寬度和高度都加倍。

進階 output_format · subject_detection · enhancement_strength · face_enhancement_creativity · face_enhancement_strength · creativity · texture · sharpen · denoise · detail · crop_to_fill · face_enhancement · autoprompt · enable_safety_checker
output_format 預設 jpeg

放大圖像所使用的格式。

subject_detection 預設 All

控制使用 Recovery V2、Wonder 3 或 Recovery 增強圖像時偵測主體的方式。

enhancement_strength

生成式放大增強強度;未指定時會自動設定,支援的模型為 Wonder 3.5 和 Wonder 3。

預設 0

人臉增強創意控制,僅在人臉增強啟用時有效:設定 1.0 可達到最大創意,0.0 則不套用。

預設 0.8

人臉增強強度控制,僅在人臉增強啟用時有效:設定 1.0 可達到最大增強,0.0 則不套用。

1 至 6 的生成式放大創意程度,僅 Redefine 支援。提高此值會增加更具想像力或幻覺式的細節。

Redefine 生成式放大專用的紋理細節控制,接受 1 至 5 的等級。

銳化強度,範圍為 0.0 至 1.0,僅 Redefine 支援。

降噪強度,範圍為 0.0 至 1.0,僅 Redefine 支援。

細節復原強度,範圍為 0.0 至 1.0,僅 Recovery V2 支援。

POST /run/topaz/upscale/image/generative?wait=20 報價 → $0.08
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/topaz/upscale/image/generative?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Topaz Upscale Image Generative

使用 `model` 將圖片放大 1x 到 4x,可選 Wonder 3.5、Wonder 3、Recover 3、Redefine 與 Recovery V2。臉部增強有獨立的強度與創意滑桿。Redefine 可加入最多 1024 個字元的 `prompt`,以及 `creativity`、`texture`、`sharpen` 和 `denoise`。適合小尺寸或模糊來源。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
image_url必填 image
類型url · image
用於放大的來源圖像 URL。
model選填
類型enum
預設值Wonder 3
Wonder 3.5Wonder 3Wonder 2WonderRecover 3Standard MAXRedefineRecovery V2Recovery
生成式放大模型選擇:Recovery 與 Recovery V2 可重建極低解析度圖像;Redefine 使用提示詞引導創意細節;Standard MAX 著重精確度與高品質;Recover 3 重建自然細節。在 Wonder 系列中,Wonder 與 Wonder 2 早於 Wonder 3,後者是最進階的生成式寫實模型;最新版本 Wonder 3.5 能提供更細緻的細節與更少的圖樣重複。
upscale_factor選填
類型number
預設值2
1 – 4
圖像放大倍數;例如 2.0 會讓寬度和高度都加倍。
crop_to_fill選填
類型boolean
預設值false
output_format選填
類型enum
預設值jpeg
jpegpng
放大圖像所使用的格式。
subject_detection選填
類型enum
預設值All
AllForegroundBackground
控制使用 Recovery V2、Wonder 3 或 Recovery 增強圖像時偵測主體的方式。
face_enhancement選填
類型boolean
預設值true
圖像的人臉增強切換。
face_enhancement_creativity選填
類型number
預設值0
0 – 1
人臉增強創意控制,僅在人臉增強啟用時有效:設定 1.0 可達到最大創意,0.0 則不套用。
face_enhancement_strength選填
類型number
預設值0.8
0 – 1
人臉增強強度控制,僅在人臉增強啟用時有效:設定 1.0 可達到最大增強,0.0 則不套用。
enhancement_strength選填
類型enum
lowmediumhigh
生成式放大增強強度;未指定時會自動設定,支援的模型為 Wonder 3.5 和 Wonder 3。
creativity選填
類型integer | null
1 – 6
1 至 6 的生成式放大創意程度,僅 Redefine 支援。提高此值會增加更具想像力或幻覺式的細節。
texture選填
類型integer | null
1 – 5
Redefine 生成式放大專用的紋理細節控制,接受 1 至 5 的等級。
prompt選填
類型string | null
≤ 1,024 個字元
生成式放大的指引文字,限制為 1024 個字元,僅 Redefine 支援。
autoprompt選填
類型boolean | null
僅 Redefine 的生成式放大提供的自動提示詞生成切換。
sharpen選填
類型number | null
0 – 1
銳化強度,範圍為 0.0 至 1.0,僅 Redefine 支援。
denoise選填
類型number | null
0 – 1
降噪強度,範圍為 0.0 至 1.0,僅 Redefine 支援。
detail選填
類型number | null
0 – 1
細節復原強度,範圍為 0.0 至 1.0,僅 Recovery V2 支援。
enable_safety_checker選填
類型boolean
預設值true
在呼叫端獲得授權的情況下,將此值設為 false 可放寬審核。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "topaz/upscale/image/generative",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 80,
    "usd": "0.08",
    "charged": 80,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "image": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_name": "0-output.jpeg",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "image",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
您的檔案,由您選擇每個 outputs[].url 都是儲存空間中的副本:可永久保留(按 GB-月計費),或免費保留 7 天;可透過帳戶設定或 ?storage= 設定。
所有模型使用相同結構圖片、影片和音訊皆包含 type、url、content_type、width、height 和 duration。output 是模型自己的結果物件。
輸出欄位
image
object {url, content_type, file_name, file_size}放大生成的圖像。

更多模型:升級解析度

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/topaz/upscale/image/generative.md. 所有模型與指南: https://doitong.com/developers/llms.txt