<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Aryan Singh</title>
    <description>The latest articles on DEV Community by Aryan Singh (@aryan_sinzh).</description>
    <link>https://dev.to/aryan_sinzh</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3900297%2Fee1e2d69-dc77-4b8d-b360-23ec0def610b.png</url>
      <title>DEV Community: Aryan Singh</title>
      <link>https://dev.to/aryan_sinzh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aryan_sinzh"/>
    <language>en</language>
    <item>
      <title>Build a Free AI Image Editor Using Airforce &amp; ImgBB (No Server, Just a Browser!)</title>
      <dc:creator>Aryan Singh</dc:creator>
      <pubDate>Mon, 27 Apr 2026 13:47:47 +0000</pubDate>
      <link>https://dev.to/aryan_sinzh/build-a-free-ai-image-editor-using-airforce-imgbb-no-server-just-a-browser-3if</link>
      <guid>https://dev.to/aryan_sinzh/build-a-free-ai-image-editor-using-airforce-imgbb-no-server-just-a-browser-3if</guid>
      <description>&lt;h1&gt;
  
  
  🎨 Build a Free AI Image Editor Using Airforce &amp;amp; ImgBB (No Server, Just a Browser!)
&lt;/h1&gt;

&lt;p&gt;Ever needed to quickly tweak an image with AI but didn't want to fire up heavy software or pay for a subscription? I’ve built a lightweight, &lt;strong&gt;zero‑backend&lt;/strong&gt; web tool that lets you edit your own images using the &lt;a href="https://api.airforce/" rel="noopener noreferrer"&gt;Airforce AI&lt;/a&gt; API, host them temporarily on ImgBB, and keep a local history of your edits – all from a single HTML file.&lt;/p&gt;

&lt;p&gt;👉 &lt;strong&gt;GitHub Repo:&lt;/strong&gt; &lt;a href="https://github.com/aryansingh-goat/Free-AI-Image-Editor" rel="noopener noreferrer"&gt;Free-AI-Image-Editor&lt;/a&gt;  &lt;/p&gt;

&lt;p&gt;&lt;em&gt;Star the repo ⭐ to support the project and help others discover it!&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  🧠 What It Does
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Upload&lt;/strong&gt; an image from your device.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Describe&lt;/strong&gt; the change you want with a natural language prompt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Send&lt;/strong&gt; the image to ImgBB (free temporary hosting).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Process&lt;/strong&gt; it through Airforce’s image generation/editing models.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Receive&lt;/strong&gt; the edited image directly in your browser.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;All edits are saved&lt;/strong&gt; in your browser’s localStorage with thumbnails, prompts, and model info – a full edit history!&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The editor runs entirely client‑side, so your API keys and images never touch a backend server (except the official APIs). No database, no login, no cost beyond the free tiers of the APIs.&lt;/p&gt;




&lt;h2&gt;
  
  
  🔧 Features at a Glance
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;🖼️ &lt;strong&gt;Multiple AI models&lt;/strong&gt; – Nanobanana 2, Image 1 Edit, Flux 2 Pro, and more.&lt;/li&gt;
&lt;li&gt;📜 &lt;strong&gt;Edit history&lt;/strong&gt; – Stores up to 25 edits locally, with thumbnails and metadata. Delete individual entries or clear all.&lt;/li&gt;
&lt;li&gt;📷 &lt;strong&gt;Original/Edited preview&lt;/strong&gt; – Side‑by‑side comparison.&lt;/li&gt;
&lt;li&gt;⚡ &lt;strong&gt;Streaming results&lt;/strong&gt; – SSE‑based real‑time image generation updates.&lt;/li&gt;
&lt;li&gt;🛡️ &lt;strong&gt;Fully private&lt;/strong&gt; – Your API keys are only used client‑side; no third‑party tracking.&lt;/li&gt;
&lt;li&gt;📱 &lt;strong&gt;Responsive&lt;/strong&gt; – Works on desktop and mobile.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  🚀 How to Use (2‑Minute Setup)
&lt;/h2&gt;

&lt;h3&gt;
  
  
  1. Get Your Free API Keys
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Airforce API Key&lt;/strong&gt; – &lt;a href="https://panel.api.airforce/dashboard" rel="noopener noreferrer"&gt;Dashboard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ImgBB API Key&lt;/strong&gt; – &lt;a href="https://api.imgbb.com/" rel="noopener noreferrer"&gt;api.imgbb.com&lt;/a&gt; (free registration, no credit card)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Open the Tool
&lt;/h3&gt;

&lt;p&gt;Clone the repo and open &lt;code&gt;Image Edit 2.html&lt;/code&gt; in your favourite browser – yes, it’s that simple.&lt;br&gt;&lt;br&gt;
Or just download the HTML file from the repo and double‑click it.&lt;/p&gt;
&lt;h3&gt;
  
  
  3. Start Editing
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Paste your API keys.&lt;/li&gt;
&lt;li&gt;Choose an AI model from the dropdown.&lt;/li&gt;
&lt;li&gt;Select an image and write a prompt (e.g., “make the sky sunset orange”).&lt;/li&gt;
&lt;li&gt;Click &lt;strong&gt;Edit Image&lt;/strong&gt; and watch the magic happen.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;All successful edits are automatically added to the history section below.&lt;/p&gt;


&lt;h2&gt;
  
  
  🧬 How It Works (Code Highlights)
&lt;/h2&gt;

&lt;p&gt;The entire logic is vanilla JavaScript using &lt;code&gt;fetch&lt;/code&gt; and the Streams API. Here’s the core flow:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Step 1: Upload to ImgBB&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;publicUrl&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;uploadToImgBB&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;selectedFile&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;imgbbKey&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// Step 2: Send to Airforce with image_url&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;https://api.airforce/v1/images/generations&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;POST&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="na"&gt;Authorization&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;`Bearer &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;airforceKey&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;`&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Content-Type&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;application/json&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="p"&gt;},&lt;/span&gt;
  &lt;span class="na"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;({&lt;/span&gt;
    &lt;span class="na"&gt;model&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;modelSelect&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;value&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;prompt&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;n&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;size&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;1024x1024&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;response_format&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;url&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="na"&gt;image_urls&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;publicUrl&lt;/span&gt;&lt;span class="p"&gt;],&lt;/span&gt;
  &lt;span class="p"&gt;}),&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;

&lt;span class="c1"&gt;// Step 3: Stream the SSE response&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;reader&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;response&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;body&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getReader&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="k"&gt;while &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;done&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;value&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nx"&gt;reader&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;read&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
  &lt;span class="c1"&gt;// ... process SSE lines, extract final image URL&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;History is stored with &lt;code&gt;localStorage&lt;/code&gt; and resized thumbnails are generated using &lt;code&gt;&amp;lt;canvas&amp;gt;&lt;/code&gt;. It’s a great example of how powerful modern browsers have become.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⭐ Why You Should Star the Repo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;It’s &lt;strong&gt;100% free and open‑source&lt;/strong&gt; – no hidden fees, no ads.&lt;/li&gt;
&lt;li&gt;You can &lt;strong&gt;modify&lt;/strong&gt; it for your own workflows (e.g., batch processing, different storage backends).&lt;/li&gt;
&lt;li&gt;It demonstrates &lt;strong&gt;real‑world use of SSE, canvas thumbnails, localStorage, and API orchestration&lt;/strong&gt; – perfect for learning or teaching.&lt;/li&gt;
&lt;li&gt;I actively maintain it and welcome contributions, bug reports, and feature requests.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you find this tool handy, please &lt;strong&gt;star the repo&lt;/strong&gt; on GitHub – it takes a second and helps me know people are using it. Share it with your friends who might need a quick image editor!&lt;/p&gt;




&lt;h2&gt;
  
  
  🛠️ Tech Stack
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;HTML5 + CSS (dark theme, fully responsive)&lt;/li&gt;
&lt;li&gt;Vanilla JavaScript (no frameworks)&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://api.airforce/" rel="noopener noreferrer"&gt;Airforce API&lt;/a&gt; – AI image generation/editing&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://imgbb.com/" rel="noopener noreferrer"&gt;ImgBB API&lt;/a&gt; – temporary image hosting&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;localStorage&lt;/code&gt; – edit history persistence&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  👤 Credits
&lt;/h2&gt;

&lt;p&gt;Built by &lt;strong&gt;Aryan Singh&lt;/strong&gt; – you can find more projects and join the discussion on &lt;a href="https://discord.com/channels/1455919196113469442/1455919197681877098" rel="noopener noreferrer"&gt;Discord&lt;/a&gt;.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Try it now&lt;/strong&gt; and never pay for AI image editing again. Happy tweaking! ✨&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/aryansingh-goat/Free-AI-Image-Editor" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt; | &lt;a href="https://github.com/aryansingh-goat/Free-AI-Image-Editor/blob/main/Image%20Edit%202.html" rel="noopener noreferrer"&gt;Live Demo (just open the HTML)&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>javascript</category>
      <category>showdev</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
