API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  1. API Product Docs
  2. MagicAPI

🏞️ Image Upload API

Free, Effortless Image Upload and Retrieval Service upto 7 Days.

Previous🎭 FaceSwap API: Instantaneous replaces face with one anotherNextDeblurer API

Last updated 10 months ago

Developer Protal :

The Image Upload API provides a free and efficient solution for uploading images and retrieving secure URLs to access these images once uploaded. This service is designed for rapid deployment and ease of use, ideal for developers and businesses requiring a no-cost solution for temporary image hosting.

Key Features:

  • No Cost: This API is completely free to use, making it accessible to developers and businesses of all sizes.

  • Automatic Deletion: Images are automatically deleted after 7 days from the date of upload, ensuring that storage is managed efficiently without manual intervention.

  • Secure Uploads: Each request must be authenticated using an API key, ensuring that only authorized users can upload images.

  • Immediate Access: Upon successful upload, the API immediately provides a URL to access the uploaded image, facilitating instant use in user applications.

  • Scalability: Designed to handle high volumes of requests without degradation in performance, suitable for both small projects and large-scale operations.

  • Calls: This API gives 1,000,000 Calls/Month and Free of cost that means it almost never runs out for any developer who needs to store their Image free of cost and access it through an URL.

How to Use the API:

  1. Set Up Authentication: Ensure you have your API key (hidden for security purposes), which is required to authenticate your upload requests. Include this API key in the header of each request. For Example - 'x-magicapi-key: YourAPIKeyHere'

  2. Upload an Image: Use the following curl command to upload an image file. Replace path_to_image.png with the path to the image you want to upload:

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/magicapi/image-upload/upload' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: YourAPIKeyHere' \
  -H 'Content-Type: multipart/form-data' \
  -F 'filename=@"/path_to_image.png;type=image/png"'

Example: If you're uploading a screenshot named Screenshot 2024-06-17 at 3.00.57 PM.png located on your desktop, your command would look like this:

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/magicapi/image-upload/upload' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: YourAPIKeyHere' \
  -H 'Content-Type: multipart/form-data' \
  -F 'filename=@"/Users/yourusername/Desktop/Screenshot 2024-06-17 at 3.00.57 PM.png;type=image/png"'

Handle the Response: A successful upload will return a JSON object containing the URL of the uploaded image. Here's an example of what the response might look like:

{
  "url": "https://d3tx3wg2jy0sui.cloudfront.net/4870f6f90c624419a57d917048584d80.png"
}

You can use this URL in your application to display the image or link to it. Remember that the image will be deleted automatically after 7 days.

Security Considerations:

  • Always keep your API key confidential to prevent unauthorized access.

  • Monitor usage to detect any abnormal activities, which may indicate security issues.

This API is a powerful tool for developers needing a reliable and efficient way to manage image uploads and retrievals, providing robust functionality with minimal setup, all at no cost.

Try out this API and store and use your images through a URL here at

https://api.market/store/magicapi/image-upload
https://api.market/store/magicapi/image-upload