Njuolgga sisdollui

Post Processing Sharpen

Integrere

Modealla-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"

Dát ohcamuš: 0,001 $ 1 API-kredita Vuodje dán siiddu alde

Oza API-čoavdaga
Utility · Govva

Dát lea du vuosttaš bohtos

Daga jearaldaga vuolábealde ja vuodje dan iežat API-čoavddain. Boađusat kopierejuvvojit min vurkemii, bisuhuvvojit álo dahje 7 beaivvi nuvttá.

Ráhkat jearaldaga

Kontrollat ráhkaduvvojit modealla skeama vuođul. Koda ja haddi ođasmahttojuvvojit go rievddadat daid.

•gáibiduvvo image_url
Luoitte fiilla, dahje

Govva-URL gieđahallamii.

Viiddiduvvon sharpen_mode · sharpen_radius · sharpen_alpha · noise_radius · preserve_edges · smart_sharpen_strength · smart_sharpen_ratio · cas_amount
sharpen_mode standárda basic

Geavahuvvon ođasmahttinmetoda.

standárda 1

Ođasmahttinrádius vuođđomodusas.

standárda 1

Ođasmahttima garrasvuohta vuođđomodusas.

standárda 7

Jiena rádius smart-ođasmahttimis.

standárda 0.75

Rájiid seailluheami dássi.

standárda 5

Smart-ođasmahttima garrasvuohta.

standárda 0.5

Smart-ođasmahttima seahkadanproseanta.

standárda 0.8

CAS-ođasmahttima garrasvuohta.

POST /run/post-processing/sharpen?wait=20 haddemearrádus → 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"

Geavat dán ohcamuša

Du key báhcá dán fierpmádatlogan: dat sáddejuvvo dušše Doitong API:ii ja vurkejuvvo (localStorage) dušše jos válljet Remember. Viečča API-keya

Dát lea Post Processing Sharpen birra

Bearráigeahččá `image_url` `sharpen_mode`-ain basic, smart dahje cas. Basic geavaha `sharpen_radius` (1–15) ja `sharpen_alpha` (0.1–5). Smart geavaha `noise_radius`, `preserve_edges`, `smart_sharpen_strength` ja `smart_sharpen_ratio`, ja CAS geavaha `cas_amount` 0 rájes 1 rádjai.

Parametterat

Sádde kanonala nama dahje iežas nama, ii goappašiid. Kanonala namat

NammaŠládja StandárdaDohkkehuvvon Govvádus
image_urlgáibiduvvo image
Šládjaurl · image
Govva-URL gieđahallamii.
sharpen_modeeaktodáhtolaš
Šládjaenum
Standárdabasic
basicsmartcas
Geavahuvvon ođasmahttinmetoda.
sharpen_radiuseaktodáhtolaš
Šládjainteger
Standárda1
1 – 15
Ođasmahttinrádius vuođđomodusas.
sharpen_alphaeaktodáhtolaš
Šládjanumber
Standárda1
0,1 – 5
Ođasmahttima garrasvuohta vuođđomodusas.
noise_radiuseaktodáhtolaš
Šládjainteger
Standárda7
1 – 25
Jiena rádius smart-ođasmahttimis.
preserve_edgeseaktodáhtolaš
Šládjanumber
Standárda0.75
0 – 1
Rájiid seailluheami dássi.
smart_sharpen_strengtheaktodáhtolaš
Šládjanumber
Standárda5
0 – 25
Smart-ođasmahttima garrasvuohta.
smart_sharpen_ratioeaktodáhtolaš
Šládjanumber
Standárda0.5
0 – 1
Smart-ođasmahttima seahkadanproseanta.
cas_amounteaktodáhtolaš
Šládjanumber
Standárda0.8
0 – 1
CAS-ođasmahttima garrasvuohta.
gáibiduvvo Kanonala namma, maid sáhttá geavahit

Fiilaparametterat váldet almmolaš https:// URL:a, data: URI:a gitta 10 MB, dahje uploada file_url:a. Fiillat

Boađus

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"
  }
}
Du fiillat, du válljenJuohke outputs[].url lea kopia min vurkemis: bisuhuvvo álo (mákso GB-mánu mielde) dahje 7 beaivvi nuvttá, du konto­o heiveheami dahje ?storage= mielde.
Seammá hápmi juohke modeallastype, url, content_type, width, height ja duration, govvii, videoii ja jienai seammá ládje. output lea modealla iežas boađusobjekta.
Outputa giettit
images
array of object {url, content_type, file_name, file_size, width, height}Ođasmahttima maŋŋá boahtti govažat.

Eanet modeallat: Gova heiveheapmi

AI-agenttaide: dán siidu Markdowna lea dáppe https://doitong.com/se/developers/models/post-processing/sharpen.md. Buot modeallat ja ráđit: https://doitong.com/developers/llms.txt