Free estimate for one PDF
const url = 'https://api.gevell.com/api/v1/convert/estimate';const options = { method: 'POST', headers: {'X-API-Key': '<X-API-Key>', 'Content-Type': 'application/pdf'}, body: 'binary'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.gevell.com/api/v1/convert/estimate \ --header 'Content-Type: application/pdf' \ --header 'X-API-Key: <X-API-Key>' \ --data binaryPage count, price at your account’s rate and balance (net of your other jobs’ active reservations). Makes no AI call and stores nothing. Limited to 120 requests per hour per account. Body limit: 25 MB on api.gevell.com; about 4.5 MB through api-pdf.gevell.com (Lambda).
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
From POST /api/v1/tagging/uploads.
Examplegenerated
{ "inputKey": "example"}Responses
Section titled “ Responses ”Estimate
object
object
False when the page count cannot be read; a start refuses such a file (422).
How converting is metered for this account.
Cents (pay-as-you-go) or pages (plan).
Balance net of your other jobs’ active reservations.
0 when affordable.
What to deliver. Default ["pdf","conformance"]. pdf and conformance
come together; add html for the accessible HTML.
The most a start can be charged. Conversion is a flat per-page charge, so it equals cost; pages that fail to convert are not billed.
object
Example
{ "data": { "defaultOutputs": [ "html" ] }}Missing or invalid API key
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}InputKey is outside your own storage prefix
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}InputKey not found
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}PDF over 25 MB (FILE_TOO_LARGE or PAYLOAD_TOO_LARGE)
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}Encrypted or unreadable PDF
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}Estimate limit reached
object
object
object
Example
{ "success": false, "error": { "code": "INSUFFICIENT_CREDITS" }}