LimeWire AI API Review: Seamless Content Creation for Developers

LimeWire recently launched theAI Studiofor creators and artists. Now, the company has released itsRESTful APIsfor content creation usingtop generative AI models. Developers can leverage LimeWire’s AI API to generate images from text prompts, upscale images, expand images beyond the border, and modify images using AI.

Not to mention, LimeWire is also working to bring API support for music and video generation as well. So, in this article, we review LimeWire AI APIs across many different generative AI tasks. Go through our detailed testing of the API and see if it fits your bill.

Generate Images Using LimeWire API

Generate Images Using LimeWire API

First of all, let’s go through the text-to-image endpoint and how you can implement the LimeWire AI API to generate images. I’m demonstrating the examples in Python, but you can choose other languages too including Node.js, PHP, Java, Go, Ruby, and more.

Here is a code sample for generating images in Python:

As you can see here, I am using LimeWire’s image generation endpoint (api/image/generation) and in the body, have defined the prompt. Thepromptshould be less than2,000 characters, and you can also pass anegative_promptto describe what should not be included in the image. Below, I have specified theaspect_ratioas1:1, but you can also specify2:3and3:2as well.

Since this is the first release of LimeWire’s AI API, theX-Api-versionis mentioned asv1. Simply paste your LimeWire API key next toBearer, and you are good to go.

By the way, there are many other parameters too which you can include likesamplesto generate thenumber of images(from1to4),qualityto specify the desired quality (LOW,MID, andHIGH,MIDis the default),styleto define the image style (PHOTOREALISTIC,SCIFI,LANDSCAPE), guidance scale to ask the model to strictly adhere to your text prompt (from1to100,40is the default). You can find more information on LimeWire’sAPI documentationpage.

Now, just call the API and you get aclean output in JSONwithasset_idandasset_urlof the image. It’s that simple to generate images using LimeWire’s AI API. Currently, LimeWire supports over 10 Generative AI models including BlueWillow (v3, v4, and v5), Dall -E3, Stable Diffusion XL v1.0, Google AI Imagen, and more.

Upscale Images Using LimeWire API

Upscale Images Using LimeWire API

Next, we have the API to upscale images using LimWire’sapi/image/upscalingendpoint. Here, you need to define theimage_asset_idwhich you can generate using its “api/upload” endpoint through a POST request, as described below. After that, simply mention theupscale_factor(2,3, or4) and paste your API key.

It will return the generatedasset_idalong with theasset_url. In my testing, the LimWire API did a fabulous job. I passed a 1000×750 PNG image and it upscaled the image andgenerated a 2000×1500 imagewith no artifacts.

It’s often seen that when you pass an image with texts, Diffusion modelsstruggle with textsand render them incorrectly. However, LimeWire’s image upscaling API did not botch up the text in the image, which is amazing.

Outpaint Images Using LimeWire API

Now, we come to outpainting images which allows you toextend the boundariesof the image. It generates objects and backgrounds in sync with the existing content of the image. Here, I am using LimeWire’sapi/image/outpaintingendpoint.

Just like above, you have to pass theimage_asset_idand add the API key. Here, the “direction“parameter lets you define how you want to expand the image, just one side or all directions. You can definedirectionasUP,DOWN,LEFT,RIGHT, orALL.

Next, you can define thecrop_sideto specify which side to crop for outpainting. Not all images require cropping, however, AI models can choose if it’s required to make the imagelook more natural. You can define it asTOP,BOTTOM,LEFT, orRIGHT. Keep in mind, for outpainting, your image should have anaspect ratio of1:1,2:3or3:2.

I then passed a PNG image in1:1aspect ratio and setdirectionasALL, but it failed to process the image. So I just asked it to outpaint theupper border of the image, and it successfully processed the image. You can see the difference in the above image.

Inpaint Images Using LimeWire API

Now, we come to inpainting which lets you modify the image by passing a text prompt. Simply add a text prompt along with the image, andyou canmanipulate the imageusing LimeWire’s AI API. Here, I am using theapi/image/inpaintingendpoint.

I tried to run the inpainting API, but unfortunately, it kept throwing “Internal Server Error“. The API may be down for some reason. Nevertheless, this is how you can inpaint images using LimeWire’s AI API.

Upload Assets Using LimeWire API

Finally, we come to uploading assets using LimeWire API. You can use theapi/uploadendpoint to upload your assets. LimeWire keeps the uploaded assets for 24 hours after they are uploaded. And themaximum upload size for an image is 10MB. You can use the POST request method to pass the image.

Note that, theContent-Typeparameter should match the image format. Supported image formats areimage/png,image/jpeg,image/x-ms-bmp,image/webp, andimage/tiff.

Is the LimeWire AI API Worth It?

As far as performance is concerned, LimeWire’s Generative API tools are worth it. The APIs are built on theREST architectureso they are scalable, and can deliver great performance. In my testing, the API calls were resolved in4 to 5 seconds, which is incredible. Apart from that, the quality of generated content is also quite good as it hosts state-of-the-art Diffusion models from vendors like OpenAI, Stability AI, Google, and more.

Not to mention, the API implementation is breezy and anyone can get started with the tools in any environment. Its documentation isclean and easy to understand. Despite this being the first release of LimeWire’s AI API, there are several customization options and you can pass several parameters to generate content as you like.

As for pricing, I like what LimeWire is doing here. It has a single plan for using all kinds of APIs, as opposed to multiple plans for generating images, inpainting, outpainting, etc. that competitors are offering. The API Pro plan lets yougenerate up to 7,500 images per monthwith 4 concurrent requests. It costs$49 per month, which is pretty reasonable in comparison to its competitors. For developers and small businesses, this plan will serve well.

You can also check out the API Basic plan, which costs $29.99 per month (3,750 images) or the API Pro Plus plan which costs $250 per month (37,500 images).

Partner Content

Add new comment

Name

Email ID

Δ

01

02

03

04

05