An open API service indexing awesome lists of open source software.

https://github.com/Qewertyy/LexicaAPI

Python Wrapper for LexicaAPI https://api.qewertyy.dev/docs , for Queries/Support reach out at https://telegram.me/LexicaAPI
https://github.com/Qewertyy/LexicaAPI

ai api api-rest gpt gpt3-turbo image-search instagram-downloader latent-diffusion reverse-image-search stable-diffusion state-of-art text-to-image

Last synced: about 2 months ago
JSON representation

Python Wrapper for LexicaAPI https://api.qewertyy.dev/docs , for Queries/Support reach out at https://telegram.me/LexicaAPI

Awesome Lists containing this project

README

          

## Here are some projects which utilizes the LexicaAPI.

### AverageAI
- **Name:** [AverageAI](https://ai.qewertyy.dev)
- **Description:** Image Generations and LLMs.

### AverageImages
- **Name:** [AverageImages](https://images.qewertyy.dev)
- **Description:** Search Images on google and bing.

### Upscale
- **Name:** [Upscale](https://upscale.qewertyy.dev)
- **Description:** Upscale Images.

### AverageNews
- **Name:** [AverageNews](https://news.qewertyy.dev)
- **Description:** News App.

### Social-DL
- **Name:** [Social-DL](https://social-dl.vercel.app)
- **Description:** Download Videos/Images from social media.

### TelegramBots
[Miko](https://github.com/Awesome-Tofu/miko-bot), [AntiNSFWBot](https://telegram.me/ProtectYourGroupsRobot), [Sung](https://github.com/Dhruv-Tara/Sung), [GameInfoBot](https://github.com/barryspacezero/Telegram-GameInfoBot), [YaeMiko](https://github.com/Infamous-Hydra/YaeMiko), [FilterBot](https://github.com/Codeflix-Bots/AutoFilter), [News](https://github.com/SOMEH1NG/TechNewsDigest) [etc..](https://github.com/search?q=https%3A%2F%2Fapi.qewertyy.dev&type=code)
## Usages
LLM's
```python
from lexica import Client, languageModels

def main(prompt: str) -> dict:
client = Client()
response = client.palm(prompt,languageModels.gemini)
return response

if __name__ == "__main__":
print(main("hello world"))
```

Upscale an image.
```python
from lexica import Client

def main(image: bytes) -> bytes:
client = Client()
imageBytes = client.upscale(image)
with open('upscaled.png', 'wb') as f:
f.write(imageBytes)

if __name__ == "__main__":
image = open('examples/images/image.png', 'rb').read()
main(image)
```

Anti-NSFW
```python
from lexica import Client

def main(image_url: str) -> dict:
client = Client()
response = client.AntiNsfw(image_url)
if response['content']['sfw'] == True:
return "This image is safe for work."
else:
return "This image is not safe for work."

if __name__ == "__main__":
print(main("https://graph.org/file/13e95c6cc932530823391.png"))
```