curl --request POST \
--url https://api.parallel.ai/beta/tasks/runs \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"task_spec": {
"output_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '\''$3.1 trillion (2023)'\''",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
},
"type": "json"
},
"input_schema": {
"json_schema": {
"additionalProperties": false,
"properties": {
"gdp": {
"description": "GDP in USD for the year, formatted like '\''$3.1 trillion (2023)'\''",
"type": "string"
}
},
"required": [
"gdp"
],
"type": "object"
},
"type": "json"
}
},
"input": "France (2023)",
"processor": "<string>",
"metadata": {},
"source_policy": {
"domain_policy": {
"allow_other_domains": true,
"domains": [
{
"domain": "<string>",
"action": "prefer"
}
]
}
}
}'