Skip to main contentGravix Layer’s Files API provides a secure, serverless interface to upload, manage, and use files across the Gravix ecosystem. It’s designed to be the backbone for any workflow that requires custom data, from fine-tuning models to powering assistants.
Core Capabilities
The Files API is built around a simple set of operations, giving you full control over the entire lifecycle of your data.
- File Management: A complete suite of tools for the file lifecycle. Upload, list, retrieve metadata, download content, and delete files with simple API calls.
Common Use Cases
Files are used to power a wide range of AI-driven workflows.
- Fine-Tuning: Provide training and validation data for fine-tuning models.
- Batch Processing: Use files as input for large-scale batch jobs.
- Vision: Upload images for analysis with vision-enabled models.
- Retrieval-Augmented Generation (RAG): Supply documents and data to assistants and search endpoints.
Getting Started in 3 Steps
Working with files is straightforward:
- Upload a File: Send your file with a specified
purpose (e.g., fine-tune, vision).
- Use the File ID: Reference the returned file ID in other Gravix APIs to use your data.
- Manage Lifecycle: Delete files manually when they are no longer needed, or set an auto-expiration time upon upload.
Ready to get started? Explore the API endpoints in the sidebar to dive deeper.