Neidio i'r cynnwys

PASD

Integreiddio

ID y model pasd
# 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/pasd?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"

Ffeiliau fel yr enghraifft: $0.126 126 o gredydau API caiff eich ffeiliau eu mesur cyn y rhediad Ei redeg ar y dudalen hon

Cael allwedd API
Open model Golygu Delweddau #utility#editing

Uwchgydraniad yn seiliedig ar drylediad sy'n graddio delweddau o 1x i 4x gydag arweiniad anogiad dewisol

Open model · Delwedd

Mae eich canlyniad cyntaf yn mynd yma

Adeiladwch gais isod a'i redeg gyda'ch allwedd API. Mae allbynnau'n cael eu copïo i'n storio, wedi'u cadw am byth neu am 7 diwrnod am ddim.

Adeiladu cais

Cynhyrchir rheolyddion o sgema'r model. Mae'r cod a'r pris yn diweddaru wrth i chi eu newid.

rhagosodedig

Anogiad atodol sy'n llywio'r cydraniad uwch.

•gofynnol image_url
Gollyngwch ffeil, neu

Delwedd a ddarperir ar gyfer prosesu cydraniad uwch.

rhagosodedig 2

Lluosydd graddfa ar gyfer uwchraddio, o 1 i 4x.

Uwch negative_prompt · steps · guidance_scale · conditioning_scale
rhagosodedig blurry, dirty, messy,...

Anogiad negyddol sy'n nodi arteffactau i'w hatal.

rhagosodedig 25

Nifer y camau casglu, rhwng 10 a 50.

rhagosodedig 7

Cryfder arweiniad trylediad, rhwng 1.0 a 20.0.

rhagosodedig 0.8

Cryfder cyflyru ControlNet, rhwng 0.1 ac 1.0.

POST /run/pasd?wait=20 dyfynbris → $0.126
# 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/pasd?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"

Rhedeg y cais hwn

Mae'ch allwedd yn aros yn y porwr hwn: caiff ei hanfon at Doitong API yn unig a'i chadw (localStorage) dim ond os ticiwch Cofio. Cael allwedd API

Ynglŷn â PASD

Yn adfer ac yn ehangu delwedd o ansawdd isel a ddarperir drwy `image_url`. Mae `scale` yn 1 i 4 (rhagosodedig 2), `steps` yn 10 i 50, `guidance_scale` yn 1 i 20, a `conditioning_scale` yn 0.1 i 1 ar gyfer cryfder ControlNet. Mae `prompt` a `negative_prompt` dewisol yn llywio’r manylion. Gellir ei ddefnyddio hefyd ar gyfer steilio personol.

Paramedrau

Anfonwch naill ai'r enw canonaidd neu'r enw brodorol, nid y ddau. Enwau canonaidd

EnwMath RhagosodedigCaniateir Disgrifiad
image_urlgofynnol image
Mathurl · image
Delwedd a ddarperir ar gyfer prosesu cydraniad uwch.
scaledewisol
Mathinteger | null
Rhagosodedig2
1 – 4
Lluosydd graddfa ar gyfer uwchraddio, o 1 i 4x.
stepsdewisol
Mathinteger | null
Rhagosodedig25
10 – 50
Nifer y camau casglu, rhwng 10 a 50.
guidance_scaledewisol
Mathnumber | null
Rhagosodedig7
1 – 20
Cryfder arweiniad trylediad, rhwng 1.0 a 20.0.
conditioning_scaledewisol
Mathnumber | null
Rhagosodedig0.8
0.1 – 1
Cryfder cyflyru ControlNet, rhwng 0.1 ac 1.0.
promptdewisol
Mathstring | null
Rhagosodedig
Anogiad atodol sy'n llywio'r cydraniad uwch.
negative_promptdewisol
Mathstring | null
Rhagosodedigblurry, dirty, messy, frames, deformed, dotted, noise, raster lines, unclear, lowres, over-smoothed, painting, ai generated
Anogiad negyddol sy'n nodi arteffactau i'w hatal.
gofynnol Enw canonaidd, derbyniol hefyd

Mae paramedrau ffeil yn derbyn URL cyhoeddus https://, URI data: hyd at 10 MB, neu file_url uwchlwythiad. Ffeiliau

Allbwn

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "pasd",
  "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": 126,
    "usd": "0.126",
    "charged": 126,
    "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
      }
    ],
    "timings": {}
  },
  "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"
  }
}
Eich ffeiliau, eich dewisMae pob outputs[].url yn gopi ar ein storio: wedi'i gadw am byth (telir fesul GB-mis) neu am 7 diwrnod am ddim, yn ôl gosodiad eich cyfrif neu ?storage=.
Yr un siâp ar bob modeltype, url, content_type, width, height a duration, ar gyfer delweddau, fideo a sain fel ei gilydd. Gwrthrych canlyniad y model ei hun yw output.
Meysydd yr allbwn
images
array of object {url, content_type, file_name, file_size, width, height}Delweddau a gynhyrchir drwy gydraniad uwch.
timings
objectData amseru wedi'i rannu yn ôl cam prosesu.

Ar gyfer asiantau AI: mae'r dudalen hon fel Markdown ar gael yn https://doitong.com/cy/developers/models/pasd.md. Pob model a chanllaw: https://doitong.com/developers/llms.txt