שפּרינגען צו אינהאַלט

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

ראַדיוס גענוצט פֿאַר שאַרפֿער־מאַכן אין basic mode.

סטאַנדאַרט 1

אינטענסיטעט פֿון שאַרפֿער־מאַכן אין basic mode.

סטאַנדאַרט 7

ראַדיוס גענוצט פֿאַר רעש אין smart sharpening.

סטאַנדאַרט 0.75

גראַד פֿון קאַנט־באַהאַלטונג.

סטאַנדאַרט 5

אינטענסיטעט פֿון smart sharpening.

סטאַנדאַרט 0.5

מיש־פּראָפּאָרציע פֿאַר smart sharpening.

סטאַנדאַרט 0.8

אינטענסיטעט פֿון CAS sharpening.

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"

לויפֿן דעם ריקוועסט

אײַער key בלײַבט אין דעם בלעטערער: זי ווערט געשיקט נאָר צום Doitong API און אָפּגעהיט (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
ראַדיוס גענוצט פֿאַר שאַרפֿער־מאַכן אין basic mode.
sharpen_alphaאָפּציאָנעל
טיפּnumber
סטאַנדאַרט1
0.1 – 5
אינטענסיטעט פֿון שאַרפֿער־מאַכן אין basic mode.
noise_radiusאָפּציאָנעל
טיפּinteger
סטאַנדאַרט7
1 – 25
ראַדיוס גענוצט פֿאַר רעש אין smart sharpening.
preserve_edgesאָפּציאָנעל
טיפּnumber
סטאַנדאַרט0.75
0 – 1
גראַד פֿון קאַנט־באַהאַלטונג.
smart_sharpen_strengthאָפּציאָנעל
טיפּnumber
סטאַנדאַרט5
0 – 25
אינטענסיטעט פֿון smart sharpening.
smart_sharpen_ratioאָפּציאָנעל
טיפּnumber
סטאַנדאַרט0.5
0 – 1
מיש־פּראָפּאָרציע פֿאַר smart sharpening.
cas_amountאָפּציאָנעל
טיפּnumber
סטאַנדאַרט0.8
0 – 1
אינטענסיטעט פֿון CAS sharpening.
פארלאנגט קאַנאָנישער נאָמען, אויך אַקצעפּטירט

טעקע־פּאַראַמעטערס נעמען אַן עפֿנטלעכע https:// URL, אַ data: URI ביז 10 MB, אָדער דעם 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/yi/developers/models/post-processing/sharpen.md. אַלע מאָדעלן און גוידעס: https://doitong.com/developers/llms.txt