跳至內容

Creative Upscaler

整合

模型 id creative-upscaler
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/creative-upscaler?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

每次執行最多 $1.125 依實際用量收費,其餘金額會退款 在此頁面執行

取得 API 金鑰
Open model 升級解析度 #upscaling

以擴散模型為基礎的創意放大器,可增加細節,支援 SD 1.5 或 SDXL 基礎模型及形狀控制

Open model · 圖像

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

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

建立請求

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

圖像生成提示詞;省略時由 BLIP2 建立。自行提供時,請加入盡可能詳細的描述,以取得最佳結果。

•必填 image_url
拖放檔案,或

用於升頻的來源圖像。

進階 prompt_suffix · negative_prompt · model_type · base_model_url · additional_lora_url · additional_embedding_url · scale · creativity · detail · shape_preservation · guidance_scale · num_inference_steps · additional_lora_scale · seed · enable_safety_checks · skip_ccsr · override_size_limits
預設 high quality, highly...

共用提示詞結尾,可附加 embedding Token 或 'high quality' 等文字至所有提示詞。

預設 blurry, low resolutio...

指定不需要圖像細節的負面提示詞。可排除色彩、物件、景物或更細微的特徵與品質,例如鬍鬚、模糊或低解析度。

model_type 預設 SD_1_5

用於升頻的模型類型;預設值為 SD_1_5。

用於升頻的基礎模型 URL。

提供模型 URL 以指定用於升頻的額外 LORA。未提供值時,預設值為 None。

提供額外 embedding 以進行升頻,並透過 URL 指向它們。未提供值時,預設值為 None。

預設 2

提高此縮放因子可讓輸出圖像變大。

預設 0.5

允許偏離原始內容的程度。

預設 1

增加的細節量。

預設 0.25

保留來源圖像形狀的程度。

預設 7.5

圖像選取的提示詞遵循強度,以 CFG (Classifier Free Guidance) 表示。

預設 20

圖像生成推論步驟數量;數量越大圖像品質越好,但生成時間也越長。

預設 1

透過其比例設定調整額外 LORA 對升頻的影響強度,預設值為 1.0。

用於在 Stable Diffusion 中重現圖像的種子。只要模型版本、提示詞和種子保持不變,每次執行都能精確重現圖像。

POST /run/creative-upscaler?wait=20 報價 → $1.125
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/creative-upscaler?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.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

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

關於 Creative Upscaler

從 `image_url` 將圖像放大 `scale` 指定的 1 到 5 倍,同時生成新細節。`model_type` 可為 SD_1_5 或 SDXL,`creativity` 與 `detail` 設定修改程度,而 `shape_preservation` 會保留原始結構。未提供 `prompt` 時會自動生成。支援自訂基礎模型、LoRA 與嵌入向量 URL。

參數

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

名稱類型 預設值允許值 說明
model_type選填
類型enum
預設值SD_1_5
SD_1_5SDXL
用於升頻的模型類型;預設值為 SD_1_5。
image_url必填 image
類型url · image
用於升頻的來源圖像。
prompt選填
類型string | null
圖像生成提示詞;省略時由 BLIP2 建立。自行提供時,請加入盡可能詳細的描述,以取得最佳結果。
scale選填
類型number
預設值2
1 – 5
提高此縮放因子可讓輸出圖像變大。
creativity選填
類型number
預設值0.5
0 – 1
允許偏離原始內容的程度。
detail選填
類型number
預設值1
0 – 5
增加的細節量。
shape_preservation選填
類型number
預設值0.25
0 – 3
保留來源圖像形狀的程度。
prompt_suffix選填
類型string
預設值 high quality, highly detailed, high resolution, sharp
共用提示詞結尾,可附加 embedding Token 或 'high quality' 等文字至所有提示詞。
negative_prompt選填
類型string
預設值blurry, low resolution, bad, ugly, low quality, pixelated, interpolated, compression artifacts, noisey, grainy
指定不需要圖像細節的負面提示詞。可排除色彩、物件、景物或更細微的特徵與品質,例如鬍鬚、模糊或低解析度。
seed選填
類型integer | null
用於在 Stable Diffusion 中重現圖像的種子。只要模型版本、提示詞和種子保持不變,每次執行都能精確重現圖像。
guidance_scale選填
類型number
預設值7.5
0 – 16
圖像選取的提示詞遵循強度,以 CFG (Classifier Free Guidance) 表示。
num_inference_steps選填
類型integer
預設值20
1 – 200
圖像生成推論步驟數量;數量越大圖像品質越好,但生成時間也越長。
enable_safety_checks選填
類型boolean
預設值true
安全檢查選項;設為 true 時,會將任何被偵測為包含潛在不安全內容的結果替換為黑色圖像。
skip_ccsr選填
類型boolean
預設值false
啟用時略過 CCSR 預處理;圖像會直接傳送至創意模型。
override_size_limits選填
類型boolean
預設值false
允許可能需要很長時間的大型上傳。
base_model_url選填
類型string | null
用於升頻的基礎模型 URL。
additional_lora_url選填
類型string
提供模型 URL 以指定用於升頻的額外 LORA。未提供值時,預設值為 None。
additional_lora_scale選填
類型number
預設值1
透過其比例設定調整額外 LORA 對升頻的影響強度,預設值為 1.0。
additional_embedding_url選填
類型string
提供額外 embedding 以進行升頻,並透過 URL 指向它們。未提供值時,預設值為 None。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "creative-upscaler",
  "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": 1125,
    "usd": "1.125",
    "charged": 1125,
    "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,
      "width": 1024,
      "height": 768
    },
    "seed": 42
  },
  "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.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/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, width, height}生成圖像的檔案資訊。
seed
integer圖像生成種子;若輸入未提供種子,則包含隨機選取的值,否則會重複提供的值。

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