POST
/
general
/
v0
/
general
Python
import unstructured_client
from unstructured_client.models import shared

s = unstructured_client.UnstructuredClient(
    api_key_auth="YOUR_API_KEY",
)

req = shared.PartitionParameters(
    chunking_strategy='by_title',
    combine_under_n_chars=500,
    encoding='utf-8',
    extract_image_block_types=[
        'image',
        'table',
    ],
    gz_uncompressed_content_type='application/pdf',
    hi_res_model_name='yolox',
    languages=[
        '[',
        'e',
        'n',
        'g',
        ']',
    ],
    max_characters=1500,
    new_after_n_chars=1500,
    output_format='application/json',
    overlap=25,
    strategy='hi_res',
)

res = s.partition(req)

if res.elements is not None:
    # handle response
    pass
[
  "<any>"
]

Authorizations

unstructured-api-key
string
header
required

Body

multipart/form-data

Response

200
application/json

Successful Response

The response is of type any[].