Git Product home page Git Product logo

aphrogen's Introduction

AphroGen

A Fast, Free And Reliable Meme Generation API

Production Servers

Name URL Description
Production aphro.vercel.app The public API for generating images

API Reference

Generate Images

The /generate endpoint of the API is used to produce various pictures. The Generate Endpoint is made up of several routes, each with its own goal of generating unique images.

Example

GET /generate/wanted?avatar=https://avatars.githubusercontent.com/u/88582190?v=4

The generate/wanted route is used to generate a wanted image with the provided avatar image link. Check The API Reference for all different routes, API Reference.

It will send you the file as the response body whenever you request an image. If you're using code to produce, you'll need to use an Image Libary to parse the image raw data from the response content. Here's an example in Python

import requests
from PIL import Image

data=requests.get("https://aphro.vercel.app/generate/wanted?avatar=https://avatars.githubusercontent.com/u/88582190?v=4",stream=True).raw
im=Image.open(data)
im.save("wanted.png")

The code above requests the API to generate a wanted image with the provided avatar image link and using .raw to load the raw content of the requests. Then using Pillow Libary to read the Raw Data into an actual image and saving it as wanted.png.

Image Generation Routes

All the routes in this Image Generation Section Requires the Parameter avatar or image or Either Both In Its URL.

GET /generate/wanted?avatar={AVATAR_IMAGE_LINK}
GET /generate/beautiful?avatar={AVATAR_IMAGE_LINK}
GET /generate/3000years?avatar={AVATAR_IMAGE_LINK}
GET /generate/expose?avatar={AVATAR_IMAGE_LINK}
GET /generate/hail?avatar={AVATAR_IMAGE_LINK}
GET /generate/deepfuck?avatar={AVATAR_IMAGE_LINK}
GET /generate/circle?avatar={AVATAR_IMAGE_LINK}
GET /generate/blur?avatar={AVATAR_IMAGE_LINK}

This Route Specifically Requires Both The avatar and image parameter in its URL

GET /generate/batslap?avatar={AVATAR_IMAGE_LINK}&image={SECOND_AVATAR_LINK}

Project Information

Because the API is still in development and will be, small errors in endpoints and routes are to be expected. I still have a lot more things in mind for this API, which I will implement soon.

Where's The Code?

At the moment, this API is not open-source since I still have a lot of stuff to add, correct, and improve. I'm willing to preserve it as a Free To Use API, but not as an open-source project. Although, I may change my mind in the near future.

Contact

Developed And Maintained By Cookey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.