Presign an upload
curl --request POST \
--url https://api.aireserve.com/v1/training/datasets/{datasetId}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"contentType": "<string>"
}
'import requests
url = "https://api.aireserve.com/v1/training/datasets/{datasetId}/upload"
payload = {
"filename": "<string>",
"contentType": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', contentType: '<string>'})
};
fetch('https://api.aireserve.com/v1/training/datasets/{datasetId}/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"key": "<string>",
"url": "<string>",
"method": "PUT",
"headers": {},
"expiresAt": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}Fine-tuning
Presign an upload
A presigned S3 PUT URL for one file in the dataset folder. Valid two hours. PUT the bytes directly to S3; nothing flows through the gateway. Requires compute manage access.
POST
/
v1
/
training
/
datasets
/
{datasetId}
/
upload
Presign an upload
curl --request POST \
--url https://api.aireserve.com/v1/training/datasets/{datasetId}/upload \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filename": "<string>",
"contentType": "<string>"
}
'import requests
url = "https://api.aireserve.com/v1/training/datasets/{datasetId}/upload"
payload = {
"filename": "<string>",
"contentType": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({filename: '<string>', contentType: '<string>'})
};
fetch('https://api.aireserve.com/v1/training/datasets/{datasetId}/upload', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"key": "<string>",
"url": "<string>",
"method": "PUT",
"headers": {},
"expiresAt": "<string>"
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}{
"error": {
"message": "<string>",
"type": "invalid_request_error",
"param": null,
"code": "<string>",
"details": {}
}
}Authorizations
bearerAuthapiKeyAuth
Your AI Reserve API key (aireserve_api_…) from the API Keys page in the portal (https://portal.aireserve.com/keys).
Path Parameters
Body
application/json