Chain

Structured JSON Output

Beta
POST

Request

This endpoint expects an object.
text_input
stringRequired
The text input to be parsed.
custom_type_dict
map from strings to anyRequired
A dictionary of field names and their default values.
model
enumRequired
An enumeration.

Response

This endpoint returns an object
result
map from strings to any
POST
1curl -X POST https://api.athenaintelligence.ai/api/v0/structured-parse \
2 -H "X-API-KEY: <apiKey>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "text_input": "Athena is an AI-native analytics platform and artificial employee built to accelerate analytics workflows \n by offering enterprise teams co-pilot and auto-pilot modes. Athena learns your workflow as a co-pilot, \n allowing you to hand over controls to her for autonomous execution with confidence.\" \n \n Give me all of the modes Athena provides.",
6 "custom_type_dict": {
7 "modes": {}
8 },
9 "model": "gpt-4-turbo"
10}'
200
Successful
1{
2 "result": {
3 "modes": {
4 "0": "co-pilot",
5 "1": "auto-pilot"
6 }
7 }
8}