Skip to main content
POST
/
doc-agent
/
api
/
v1
/
image_quality
cURL
curl --request POST \
  --url https://agents.textin.com/doc-agent/api/v1/image_quality \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <x-api-key>' \
  --form file='@example-file' \
  --form file_url=https://example.com/file.jpg
{
  "risk_details": {
    "blurry": {
      "score": 0.8,
      "valid": true
    }
  },
  "risk_type": [
    "blurry"
  ]
}

Headers

x-api-key
string
required

Body

multipart/form-data
file
file
file_url
string

文件URL

Example:

"https://example.com/file.jpg"

Response

200 - application/json

OK

risk_details
object
Example:
{ "blurry": { "score": 0.8, "valid": true } }
risk_type
string[]
Example:
["blurry"]