Neidio i'r cynnwys

GOT OCR 2.0

Integreiddio

ID y model got-ocr/v2
# 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/got-ocr/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

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

Y cais hwn: ≈$0.05 50 o gredydau API Ei redeg ar y dudalen hon

Cael allwedd API
StepFun Gweledigaeth #optical-character-recognition#high-res#utility

Model OCR sy'n darllen testun o un neu fwy o URLau delwedd, gydag allbwn wedi'i fformatio dewisol ac uno tudalennau lluosog

StepFun · Data (JSON)

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.

Uwch input_image_urls · do_format · multi_page
rhagosodedig []
Gollyngwch ffeil, neu

URLs sy'n cyfeirio at ddelweddau.

POST /run/got-ocr/v2?wait=20 dyfynbris → $0.05
# 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/got-ocr/v2?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'

# 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 â GOT OCR 2.0

Yn echdynnu testun o ddelweddau a ddarperir fel rhestr yn `input_image_urls`. Mae'n trin testun dogfennau, testun golygfeydd, tablau, siartiau, fformiwlâu a chynnwys arbenigol arall. Trowch `do_format` ymlaen ar gyfer allbwn wedi'i fformatio, a `multi_page` i gyfuno'r holl ddelweddau a ddarperir yn un canlyniad. Yn dychwelyd rhestr o allbynnau.

Paramedrau

EnwMath RhagosodedigCaniateir Disgrifiad
input_image_urlsdewisol
Mathurl[] · image
Rhagosodedig[]
URLs sy'n cyfeirio at ddelweddau.
do_formatdewisol
Mathboolean
Rhagosodedigfalse
P'un ai i gynhyrchu allbwn wedi'i fformatio.
multi_pagedewisol
Mathboolean
Rhagosodedigfalse
P'un ai i gyfuno'r delweddau a ddarparwyd yn un allbwn.
gofynnol

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": "got-ocr/v2",
  "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": 50,
    "usd": "0.05",
    "charged": 50,
    "refunded": 0
  },
  "input": {},
  "output": {
    "outputs": [
      "string"
    ]
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "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
outputs
array of stringCanlyniad a gynhyrchir gan y model.

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