U Plan is live! Claim Free, upgrade at 50% off from ¥29.5/mo. Durable U2-Flash & U2-Med; ASR, TTS, OCR quotas included!
Unisound Token Hub
ModelsSubscribeGet FreeExperienceDocs
Text
  • Text generation
Speech
  • One-shot ASR
  • Real-time ASR
  • Speech to Text (Async)
  • Speech Synthesis (Async)
  • Speech Synthesis (Sync)
  • Fast Voice Clone
  • Voice Design
Vision
  • Document Parsing (Async)
  • OCR Extract
Resource Management
  • Voice List
  • File List

Join the community

Official community group QR code
Vision›OCR Extract
API Key not detected. Click "Configure API Key" in the top-right corner before using the playground.
u2-ocr-med
*Input Image

Supported formats: JPG / JPEG, PNG, BMP

Size limit: Images ≤ 10MB

Medical Document Extraction

All generated content is produced by AI models for reference only and does not represent the platform's position.User Agreement Privacy Policy

Task Info
Trace ID-
Status-
Extraction Result
Result will show here
Guide
This is a synchronous API: upload an image or PDF (u2-ocr only) with a prompt to get the extraction result immediately.
Write a precise prompt and specify the output format (e.g., JSON) for structured parsing. For PDF, content is a JSON string of a per-page array — JSON.parse it before use.
API Reference
CURL
curl -X POST "https://maas-api.unisound.com/v1/ocr/image/extract" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "model=u2-ocr-med" \
  -F "type=image" \
  -F "file=data:image/png;base64,..." \
  -F "prompt=Your task is to extract information from the image above and structure it into JSON.
Follow this schema exactly (if a field is missing, return an empty string):
{
  \"basicInfo\": {
    \"hospitalName\": \"\",
    \"name\": \"\",
    \"gender\": \"\",
    \"age\": \"\",
    \"inpatientNo\": \"\",
    \"bedNo\": \"\",
    \"maritalStatus\": \"\",
    \"medicalRecordNo\": \"\",
    \"department\": \"\",
    \"admissionTime\": \"\",
    \"admissionCount\": \"\",
    \"recordTime\": \"\"
  },
  \"clinicalInfo\": {
    \"admissionCondition\": \"\",
    \"chiefComplaint\": \"\",
    \"presentIllness\": \"\",
    \"pastHistory\": \"\",
    \"personalHistory\": \"\",
    \"allergyHistory\": \"\",
    \"maritalAndFertilityHistory\": \"\",
    \"familyHistory\": \"\",
    \"bloodTransfusionHistory\": \"\",
    \"specialtyFindings\": \"\",
    \"physicalExamination\": \"\",
    \"auxiliaryExaminations\": \"\"
  },
  \"admissionDiagnoses\": [
    {
      \"diagnosisName\": \"\",
      \"diagnosisType\": \"\"
    }
  ]
}
Use only explicit field labels from the source document and do not infer missing fields.
Return List[JSON] only. All values must be strings. Do not provide any explanation."