Overview
Overview of the API
WebraftAI offers easy to use API for accessing different kinds of models. The API is based off on the OpenAI API architecture enabling easy integration to existing applications and environments.
As mentioned before, the API has well over 150 models and for each type of model (LLM or Image or Embeddings, etc.), there are different endpoints.
Here are the endpoints of the API:
List Models [GET] : https://api.webraft.in/freeapi/models or https://api.webraft.in/v2/models
OpenAI Base Endpoint URL (free) : https://api.webraft.in/freeapi
OpenAI Base Endpoint URL (paid) : https://api.webraft.in/v2
Chat Completion [POST] (free): https://api.webraft.in/freeapi/chat/completions
Chat Completion [POST] (paid): https://api.webraft.in/v2/chat/completions
Embeddings [POST] (paid): https://api.webraft.in/v2/embeddings
Image Generation [POST] : http://5.199.130.218:1234/api/images/generations
Image Classification [POST]: http://5.199.130.218:1234/api/images/classification Image-to-text [POST]: http://5.199.130.218:1234/api/image-to-text
Support for v1 URLs have been removed and have been replaced with the v2 URLs because of a leading WebraftAI API v2 update release focusing on highest stability.
If you have an existing application or program which supports OpenAI API or even OpenAI API-like endpoints then you can easily integrate webraftapi to it. You just need to change the API base url and the api key to webraft's. For dedicated support in integration of webraftai api to an application, you can directly open up a ticket through our discord server.
To everyone, we provide a free plan which has 500 normal daily credits and 50 Credits-v2. Through normal daily credits a user can use small models like GPT-3.5 series, image models and open source models. While through Credits-v2, a user can use large models ike GPT-4 series, Claude-3 series, etc. Here, 1 credit is typically 1 request to any model (which is equivalent to one message to a model)
We also have paid membership plans which allow access to better, faster and high performance models and provide higher amount of credits. The paid membership starts from $3 per month and provides handful of daily credits.
You can now move onto the next part where we will talk about the models endpoint.
Last updated