Estimate a price
curl --request POST \
--url https://api.relettr.com/v1/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"images": [
{
"width": 690,
"height": 12000
},
{
"width": 690,
"height": 11800
}
],
"layout": "strip"
}
'import requests
url = "https://api.relettr.com/v1/estimate"
payload = {
"images": [
{
"width": 690,
"height": 12000
},
{
"width": 690,
"height": 11800
}
],
"layout": "strip"
}
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({
images: [{width: 690, height: 12000}, {width: 690, height: 11800}],
layout: 'strip'
})
};
fetch('https://api.relettr.com/v1/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "estimate",
"parts_estimate": 123,
"credits_estimate": 123,
"breakdown": {
"ocr": 123,
"translate": 123,
"clean_letter": 123,
"sfx": 123
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}Credits
Estimate a price
Estimates parts and credits from image sizes alone, before uploading.
Nothing is held. This is an estimate: the binding price is the quote
on a ready chapter. Any valid key can call it.
POST
/
estimate
Estimate a price
curl --request POST \
--url https://api.relettr.com/v1/estimate \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"images": [
{
"width": 690,
"height": 12000
},
{
"width": 690,
"height": 11800
}
],
"layout": "strip"
}
'import requests
url = "https://api.relettr.com/v1/estimate"
payload = {
"images": [
{
"width": 690,
"height": 12000
},
{
"width": 690,
"height": 11800
}
],
"layout": "strip"
}
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({
images: [{width: 690, height: 12000}, {width: 690, height: 11800}],
layout: 'strip'
})
};
fetch('https://api.relettr.com/v1/estimate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "estimate",
"parts_estimate": 123,
"credits_estimate": 123,
"breakdown": {
"ocr": 123,
"translate": 123,
"clean_letter": 123,
"sfx": 123
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}{
"error": {
"type": "invalid_request",
"code": "parameter_invalid",
"message": "<string>",
"request_id": "<string>",
"param": "files[3].content_type",
"doc_url": "<string>"
}
}Authorizations
Body
application/json