Skip to main content
Gravix Files provides a secure, serverless interface for uploading, managing, and using files across the Gravix ecosystem. Built for AI workflows that require custom data, from fine-tuning models to powering intelligent assistants.

Core Capabilities

Gravix Files is built around comprehensive file operations, giving you complete control over your data lifecycle:
  • File Management: Complete suite of file operations. Upload, list, retrieve metadata, download content, and delete files with simple API calls.

Common Use Cases

Files power a wide range of AI-driven workflows:
  • Fine-Tuning: Provide training and validation datasets for custom model development.
  • Batch Processing: Supply input data for large-scale batch inference jobs.
  • Vision Applications: Upload images for analysis with vision-enabled models and multimodal applications.
  • RAG Systems: Supply documents and knowledge bases to assistants and retrieval-augmented generation endpoints.

Supported File Types

PurposeDescriptionSupported Formats
fine-tuneModel training datasetsJSONL, JSON, CSV, TXT
batchBatch processing inputJSON, CSV, JSONL
visionImage analysisPNG, JPG, JPEG, GIF, WEBP
user_dataUser-specific documentsPDF, TXT, DOCX, MD
evalsEvaluation and testingJSON, CSV, JSONL, TXT

Getting Started in 3 Steps

Working with files is straightforward:
  1. Upload a File: Send your file with a specified purpose (e.g., fine-tune, vision).
  2. Use the File ID: Reference the returned file ID in other Gravix APIs to use your data.
  3. Manage Lifecycle: Delete files manually when they are no longer needed, or set an auto-expiration time upon upload.
# 1. Upload a file
curl -X POST https://api.gravixlayer.com/v1/files \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F "purpose=batch"

# 2. List all files
curl -X GET https://api.gravixlayer.com/v1/files \
  -H "Authorization: Bearer YOUR_API_KEY"

# 3. Delete a file
curl -X DELETE https://api.gravixlayer.com/v1/files/{file_id} \
  -H "Authorization: Bearer YOUR_API_KEY"
Ready to build? Explore the file management operations to start working with your data.

Quick Access