ᡤᡝᠯᡳ ᡩᡝ ᠵᡠᠸᡝᠨ

Post Processing Sharpen

ᠵᡠᠸᡝᠪᡠᠮᠪᡳ

ᠮᠣᡩᡝᠯ id post-processing/sharpen
# 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/post-processing/sharpen?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.001 1 API ᠺᠷᡝᡩᡳᠲ ᡝᡵᡝ ᠵᠠᠯᡳᠨᡩᡝ ᠠᠰᡠᠮᠪᡳ

API ᡩᠠᠮᡠᠨ ᡤᠠᠯᠠ
Utility · ᡤᠠᠳᠠᠨ

ᡳᠨᡝ ᡝᠮᡠᠨᡳᠩᡤᡝ ᡝᡵᡝᠮᡝ ᡩᡝ

ᡝᡵᡝ ᠵᡠᠯᡝᠨ ᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠪᠠᠶᠠᠨᠠᠮᡝ ᠠᠮᡪᠠᠯᠠ ᡶᡳᠯᡝᠮᡝ ᠪᡝᠶᡝᠮᡝ᠃ API ᠵᡳᡵᡤᠠᡳ ᡤᠠᡳᡥᠠᡩᡝ ᡤᡝᡪᡳᠯᡝᠨ ᠵᠠᠯᠠᠨᠠᠮᡝ ᠪᡠᠶᡝᠮᡝ ᠮᡠᠰᡝᡳ ᠰᡠᠯᡠᠨᡩᡝ ᠪᠠᠶᠠᠨᠠᠮᡝ᠂ ᠝ᠮᡤᡳ ᠮᡠᠰᡝ ᠠᠶᠠᠨ 7 ᡥᠠᠨ ᠰᠠᡳᠨᠠᠮᡝ᠃

ᡤᡳᠰᡠᠨ ᠪᡠᠶᡝᠮᡝ

ᠵᠠᡴᡠᠨᡳ ᠵᡠᠯᡝ ᡩᡝᡵᡤᡳ ᡩᡝᠪᡝᠰᡠᠮᡝ ᠵᡠᠯᡤᡝ ᠪᡠᠶᡝᠮᡝ᠈ ᡳᠨᡳ ᡤᡳᠰᡠᠨ ᠪᠠᡳ ᡝᠨᡝᠩᡤᡳ ᠠᠮᠪᡳ

•ᡴᠠᠷᠠᡴᡡ image_url
ᠪᡠᠮᠪᡳ ᡝᠮᡠ ᡩᠠᡵᠠᠮᡝ

ᠪᡠᠶᡝᠮᡝᡵᡝ ᡤᠠᠳᠠᠨᡳ URL᠉

ᠵᡠᠯᡤᡝ ᠵᡝᡵᡤᡳ sharpen_mode · sharpen_radius · sharpen_alpha · noise_radius · preserve_edges · smart_sharpen_strength · smart_sharpen_ratio · cas_amount
sharpen_mode ᠵᡠᠯᡝ basic

ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡩᠠᡤᠠᠨ

ᠵᡠᠯᡝ 1

ᠪᠠᠰᡳᠴᠠ ᠵᠠᡶᠠᠨ ᡩᡝ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᠪᠠᠯᠠ

ᠵᡠᠯᡝ 1

ᠪᠠᠰᡳᠴᠠ ᠵᠠᡶᠠᠨ ᡳ ᡥᡝᠯᡳᠨ

ᠵᡠᠯᡝ 7

ᠵᡳᠯᠠᠨ ᡳ ᠨᠠᠮᡠ ᠪᠠᠯᠠ

ᠵᡠᠯᡝ 0.75

ᠵᡳᠯᠠᠨ ᡳ ᠪᠠᠯᠠᠮᠪᡝᡵᡝ ᠵᠠᡶᠠᠨ

ᠵᡠᠯᡝ 5

ᠮᡠᠶᠠᠨ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡥᡝᠯᡳᠨ

ᠵᡠᠯᡝ 0.5

ᠮᡠᠶᠠᠨ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᠪᠠᠶᠠᠨ

ᠵᡠᠯᡝ 0.8

CAS ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡥᡝᠯᡳᠨ

POST /run/post-processing/sharpen?wait=20 ᠵᠠᠯᡳᠨ → $0.001
# 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/post-processing/sharpen?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 ᡩᡝ ᠵᡝᠯᡤᡳ ᡩᠠᡵᠠᠮᡝ᠈ Remember ᠵᡠᠯᡝᠮᡝ ᡤᡳᠯᠠᠮᡝ localStorage ᡩᡝ ᠰᡠᠯᡝᠮᡝ ᠪᡳᠮᡝ API ᠵᠠᠯᠠᠨ ᠠᠪᠠᠮᡝ

Post Processing Sharpen ᡠᡵᡝᠮᡝ

`image_url` ᡩᡝ `sharpen_mode` basic, smart ᡝᠮᡠ cas ᡳ ᡤᡳᠰᡠᠨ ᡩᡝ ᠵᠠᠯᡠᠨᠠ. Basic ᡳ ᠮᡠᠰᡝ `sharpen_radius` (1 ᠴᡳ 15) ᡝᠮᡠ `sharpen_alpha` (0.1 ᠴᡳ 5) ᡳ ᠠᠮᠪᠠᠨᠠ. Smart ᡳ `noise_radius`, `preserve_edges`, `smart_sharpen_strength` ᡝᠮᡠ `smart_sharpen_ratio` ᡳ ᠠᠮᠪᠠᠨᠠ, CAS ᡳ `cas_amount` 0 ᠴᡳ 1 ᡩᡝ ᠣᠮᡳᠰᡳᠨᠠ.

ᠵᠠᡴᡠᠨ

ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ ᠵᡝᠯᡤᡳ ᠠᠪᠠᠮᠪᡳ᠈ ᠨᡝᠮᡝ ᠮᡠᠰᡝ ᡠᠯᠠᠮᠪᡳ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ

ᠵᡝᡵᡤᡳᡠᠯᠠᠮᡝ ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝᠠᠪᠠᠮᡝ ᠵᠠᠪᡠᠨ ᠵᠠᠯᠠᠨᡳ ᡤᡳᠰᡠᠨ
image_urlᡴᠠᠷᠠᡴᡡ image
ᡠᠯᠠᠮᡝurl · image
ᠪᡠᠶᡝᠮᡝᡵᡝ ᡤᠠᠳᠠᠨᡳ URL᠉
sharpen_modeᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝenum
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝbasic
basicsmartcas
ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡩᠠᡤᠠᠨ
sharpen_radiusᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
1 – 15
ᠪᠠᠰᡳᠴᠠ ᠵᠠᡶᠠᠨ ᡩᡝ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᠪᠠᠯᠠ
sharpen_alphaᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝnumber
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ1
0.1 – 5
ᠪᠠᠰᡳᠴᠠ ᠵᠠᡶᠠᠨ ᡳ ᡥᡝᠯᡳᠨ
noise_radiusᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝinteger
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ7
1 – 25
ᠵᡳᠯᠠᠨ ᡳ ᠨᠠᠮᡠ ᠪᠠᠯᠠ
preserve_edgesᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝnumber
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0.75
0 – 1
ᠵᡳᠯᠠᠨ ᡳ ᠪᠠᠯᠠᠮᠪᡝᡵᡝ ᠵᠠᡶᠠᠨ
smart_sharpen_strengthᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝnumber
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ5
0 – 25
ᠮᡠᠶᠠᠨ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡥᡝᠯᡳᠨ
smart_sharpen_ratioᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝnumber
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0.5
0 – 1
ᠮᡠᠶᠠᠨ ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᠪᠠᠶᠠᠨ
cas_amountᠵᡠᠯᡝ
ᡠᠯᠠᠮᡝnumber
ᠵᠠᠯᠠᠨᡳ ᠵᡠᠯᡝ0.8
0 – 1
CAS ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡥᡝᠯᡳᠨ
ᡴᠠᠷᠠᡴᡡ ᠵᠠᡴᡠᠨᡳ ᡤᡳᠰᡠᠨ᠈ ᠮᡠᠰᡝ ᡝᠮᡠ ᠠᠪᠠᠮᠪᡳ

ᠪᡠᠮᠪᡳᠯᡝᠰᡝ ᡝᠮᡠ ᡤᡝᠮᡠᠨᡳ https:// URL᠈ 10 MB ᡩᡝ ᡩᡝᠷᡤᡳ data: URI ᠵᡝᡵᡤᡳ ᡝᠮᡝ᠈ ᡳᠨᡝ ᠪᡠᠮᠪᡳᠯᡝᠰᡝᠨᡳ file_url ᠠᠪᠠᠮᠪᡳ ᠪᡠᠮᠪᡳ

ᠪᡠᠶᡝᠮᡝ

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "post-processing/sharpen",
  "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": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "images": [
      {
        "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
      }
    ]
  },
  "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 ᠮᠣᡩᡝᠯᡳᠨᡳ ᡝᠮᡠ ᠵᠠᠯᠠᠨ
ᠪᡠᠶᡝᠮᡝᠨᡳ ᡤᡳᠰᡠᠨ
images
array of object {url, content_type, file_name, file_size, width, height}ᡥᡡᠨᡳᠮᠪᡝᡵᡝ ᡩᠠᡶᠠᡥᠠ ᡤᠠᠳᠠᠨ

ᡝᠯᡤᡳ ᡩᠠᠯᡳᠨ: ᡤᠠᠳᠠᠨ ᠵᠠᠰᡳᠨ

AI ᠠᡤᡝᠨᡨᡳ ᡠᠴᡠᠷᡳ᠈ ᡝᡵᡝ ᡩᡝᠪᡝᡵᡳ Markdown ᠰᡳᠨᡩᠠᡵᡳ https://doitong.com/mnc/developers/models/post-processing/sharpen.md. ᡝᡵᡝ ᠮᠣᡩᡝᠯ ᠵᠠᡴᡠᠨ ᠰᡠᠯᡠᠮᡝ https://doitong.com/developers/llms.txt