Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Sebas200702/AniDev/llms.txt
Use this file to discover all available pages before exploring further.
Upload Image
Upload images to the platform with automatic optimization and storage. Supports both regular images and banner images.Endpoint
Authentication
Request Body
Base64-encoded image data or image URL.
Name of the file to be uploaded (including extension).Example:
"profile-avatar.jpg", "banner-image.png"Whether this image is a banner image.
true: Image will be processed as a banner (wider aspect ratio)false: Image will be processed as a regular image (e.g., avatar)
Response
Success Response
Status Code:200 OK
Always
true for successful requests.The URL of the uploaded image. This URL can be used to access the image.
Error Response
Status Code:401 Unauthorized, 400 Bad Request, or 500 Internal Server Error
Examples
Image Processing
Uploaded images are automatically processed:- Format Conversion: Images may be converted to optimized formats (WebP/AVIF)
- Optimization: File size is reduced while maintaining visual quality
- Storage: Images are stored on IPFS via Pinata for permanent, decentralized storage
- CDN Distribution: Uploaded images are served through Pinata’s CDN for fast global access
File Size Limits
Security Considerations
- Authentication Required: Only authenticated users can upload images
- Session Validation: User session is verified on every request
- File Type Validation: Server validates image data before processing
- IPFS Storage: Images are stored on decentralized IPFS network
Uploaded images are publicly accessible via their IPFS URLs. Do not upload sensitive or private images through this endpoint.
Common Use Cases
- Profile Avatars: Upload user profile pictures
- Banner Images: Upload wide banner/cover images for profiles
- Content Images: Upload images for user-generated content
- Gallery Images: Build image galleries with uploaded content
Related Endpoints
- Image Proxy - Optimize and proxy images
- User Preferences - Save user preferences including image URLs
