thumbnails
Preview URL (Direct Image)
Generate and return a thumbnail image directly from a URL.
Usage: Perfect for embedding in <img> tags or direct browser access.
<img src="https://dev.thedrive.ai/api/v1/thumbnails/preview?url=https://example.com/doc.pdf" />
Parameters:
- url: The URL of the file to generate a thumbnail from (required)
- width, height: Max dimensions (default 600x400)
- quality: JPEG quality 1-100 (default 95)
Returns: Raw JPEG image bytes with Content-Type: image/jpeg
get/api/v1/thumbnails/preview
Request
- Base URL: https://docs.thedrive.ai (the document declares no server; this is the origin it was published from)
- URL: https://docs.thedrive.ai/api/v1/thumbnails/preview
- Auth: none declared
Query parameters
urlstring required
widthinteger
heightinteger
qualityinteger
nocacheboolean
Headers
X-API-Keystring
Response
Thumbnail image
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.