API Reference
Upload and manage datasets for asynchronous batch inference and model fine-tuning.
https://api.cortiqa.co/api/v1/filesSubmit a multipart/form-data upload containing your file and desired purpose:
curl https://api.cortiqa.co/api/v1/files \
-H "Authorization: Bearer sk-cortiqa-YOUR_API_KEY" \
-F "purpose=batch" \
-F "file=@batch_prompts.jsonl"Example response:
{
"id": "file-01JHEAB4K8V1",
"object": "file",
"bytes": 1048576,
"created_at": 1726982400,
"filename": "batch_prompts.jsonl",
"purpose": "batch",
"status": "processed"
}https://api.cortiqa.co/api/v1/filescurl https://api.cortiqa.co/api/v1/files \
-H "Authorization: Bearer sk-cortiqa-YOUR_API_KEY"https://api.cortiqa.co/api/v1/files/{file_id}curl -X DELETE https://api.cortiqa.co/api/v1/files/file-01JHEAB4K8V1 \
-H "Authorization: Bearer sk-cortiqa-YOUR_API_KEY"