Skip to main content
POST
/
documents
/
transform
Python
from meibel import MeibelClient

client = MeibelClient(api_key="your-api-key")

# Upload a file
with open("document.pdf", "rb") as f:
    result = client.documents.transform(file=f, filename="document.pdf")
    print(result)
{
  "execution_id": "<string>",
  "data": {},
  "token_usage": {}
}

Authorizations

Meibel-API-Key
string
header
required

Body

multipart/form-data
file
file
required

Document file to transform

artifact_schema
string
required

JSON Schema dict (as JSON string) or schema name/ID

model
string

LLM model override

prompt
string

Extraction instructions override

prompt_id
string

Prompt template reference

timeout_seconds
integer
default:600

Max wait time in seconds (sync only)

Response

Successful Response

execution_id
string
required

Execution ID for debugging/tracing

data
Data · object
required

Extracted artifact data

token_usage
Token Usage · object

LLM token consumption