JSON Parsing
Beta Feature: This feature is currently in beta and restricted to approved users. If you're are interested in trying it, please contact support and we can enable this feature for your account.
Type: json_parse
Use AI to parse web content from text into a pre-defined data schema and return it as a JSON object.
Currently this feature only works with online PDFs but we are working to expand it to webpages.
Parameters
data_schema
string
The id of the data schema you have defined that you want to transform the content into.
instruction
string
A custom instruction, in addition to any detail you have added to the data schema, that you want to include with this particular parse.
model
string
`
The AI model you wish to use to parse the content into JSON.
Default: gpt-4o-mini
Accepted: ["gpt-4o-mini"]
input_token_cap
int
The max number of source input tokens that will be passed to the AI model to parse. This can be used to prevent unnecessary credit usage. If your source input is longer than the token cap, it will be abbreviated. Default: 1,000,000
See universal parameters.
Pricing
The credits this action uses depends on the model used. Here are the current supported models and their pricing:
gpt-4o-mini
1 credit per 10,000 input tokens
4 credits per 10,000 output tokens
Last updated