सामग्री पर जाएँ

GOT OCR 2.0

इंटीग्रेट करें

मॉडल id 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"

यह अनुरोध: ≈$0.05 50 API क्रेडिट इसे इस पेज पर चलाएँ

API कुंजी प्राप्त करें
StepFun विज़न #optical-character-recognition#high-res#utility

एक या अधिक इमेज URL से टेक्स्ट पढ़ने वाला OCR मॉडल, जिसमें वैकल्पिक फ़ॉर्मैटेड आउटपुट और बहु-पृष्ठ मर्जिंग है

StepFun · डेटा (JSON)

आपका पहला परिणाम यहाँ आएगा

नीचे एक अनुरोध बनाएँ और उसे अपनी API कुंजी से चलाएँ। आउटपुट हमारे स्टोरेज में कॉपी किए जाते हैं और हमेशा के लिए या 7 दिन तक मुफ़्त में रखे जाते हैं।

अनुरोध बनाएँ

कंट्रोल मॉडल स्कीमा से जनरेट होते हैं। इन्हें बदलने पर कोड और कीमत अपडेट होती है।

उन्नत input_image_urls · do_format · multi_page
डिफ़ॉल्ट []
फ़ाइल ड्रॉप करें, या

इमेज की ओर संकेत करने वाले URL।

POST /run/got-ocr/v2?wait=20 कोटेशन → $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"

यह अनुरोध चलाएँ

आपकी key इसी ब्राउज़र में रहती है: इसे केवल Doitong API को भेजा जाता है और केवल तभी (localStorage) में सेव किया जाता है जब आप Remember चुनते हैं। API कुंजी प्राप्त करें

GOT OCR 2.0 के बारे में

`input_image_urls` में सूची के रूप में दी गई इमेज से टेक्स्ट निकालता है। यह दस्तावेज़ टेक्स्ट, दृश्य टेक्स्ट, टेबल, चार्ट, फ़ॉर्मूला और अन्य विशेष सामग्री संभालता है। फ़ॉर्मैटेड आउटपुट के लिए `do_format` और दी गई सभी इमेज को एक ही परिणाम में जोड़ने के लिए `multi_page` चालू करें। आउटपुट की सूची लौटाता है।

पैरामीटर

नामप्रकार डिफ़ॉल्टअनुमत विवरण
input_image_urlsवैकल्पिक
प्रकारurl[] · image
डिफ़ॉल्ट[]
इमेज की ओर संकेत करने वाले URL।
do_formatवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
फ़ॉर्मैट किया गया आउटपुट बनाना है या नहीं।
multi_pageवैकल्पिक
प्रकारboolean
डिफ़ॉल्टfalse
दी गई इमेज को एक आउटपुट में संयोजित करना है या नहीं।
आवश्यक

फ़ाइल पैरामीटर में सार्वजनिक https:// URL, 10 MB तक का data: URI, या अपलोड का file_url लिया जाता है। फ़ाइलें

आउटपुट

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"
  }
}
आपकी फ़ाइलें, आपकी पसंदहर outputs[].url हमारे स्टोरेज में एक कॉपी है: हमेशा के लिए (प्रति GB-माह भुगतान) या 7 दिन तक मुफ़्त में, आपके अकाउंट की सेटिंग या ?storage= के अनुसार।
हर मॉडल पर एक जैसा आकारइमेज, वीडियो और ऑडियो सभी के लिए type, url, content_type, width, height और duration। output मॉडल का अपना परिणाम ऑब्जेक्ट है।
आउटपुट के फ़ील्ड
outputs
array of stringमॉडल द्वारा बनाया गया परिणाम।

AI एजेंट के लिए: इस पेज का Markdown यहाँ है https://doitong.com/hi/developers/models/got-ocr/v2.md. सभी मॉडल और गाइड: https://doitong.com/developers/llms.txt