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

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

# Create request body
body = TransformDocumentRequest(name="Example")

result = client.documents.transform(body=body)
print(result)
{
  "execution_id": "<string>",
  "data": {},
  "token_usage": {}
}

Documentation Index

Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Meibel-API-Key
string
header
required

Body

application/json
file
string
required

File path, URL, or GCS URI to transform

artifact_schema
required

Schema name/ID or inline JSON Schema

model
string | null

LLM model override

prompt
string | null

Extraction instructions override

prompt_id
string | null

Prompt template reference

timeout_seconds
integer | null
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