Harness the potential of
- ChatGPT ( with internet access ),
- Google
- BARD
- AI (PALM 2) ,
- LLAMA 3 70b ,
- Mistral, Mixtral 8x22b,
- (Open source LLMs , Large Language Models ) ,
- AI coder , AI Chat bot APIs ,
- Text to Image (DALL-E) ,
- Gemma ,
- Text to Speech ( TTS ) ,
- Visual QA,
- image captionins,
- facial expression,
- Object detection,
- OCR NSFW etc.
- Also get question answer ,
- sentiment analysis,
- spam detection,
- summarization,
- text to headline (title),
- Paraphrasing,
- Embedding,
**Empower your applications with intelligent conversations and visually stunning content generation**
-----------
**For custom chatbot** -
Click on your profile icon at the top of website
Go to Create Bot
**GET BOT ID**
click on profile picture on top of website
Go to my bots.
Click on Bot and copy user id and bot id .
Click on USE API BUTTON
Paste user id and bot id in required field
**ENJOY YOUR COUSTOM CHAT BOT**
### Models Available For Custom Chat Bot API (PRLABSAPI.COM)
- **Model Name:** GPT 3.5
**Value:** gpt 3.5
- **Model Name:** Mixtral 8x7B
**Value:** mixtral8x7b
- **Model Name:** Nous Hermes Mixtral 8x7B
**Value:** nous
- **Model Name:** Llama 3
**Value:** llama3-70b
-----------
**Contact us -
api.prlabs@gmail.com (For custom plan, support, query, feature request and complains)**
-----------
# Our Other API
-----------
Introducing OPEN AI by PR Labs, your one-stop destination for cutting-edge AI and ML API services. We specialize in Natural Language Processing (NLP) solutions designed to empower your applications with advanced capabilities.
With OPEN AI APIs, you gain access to a wide range of NLP functionalities, including Named Entity Recognition (NER) for extracting important entities from text, Sentiment Analysis to understand emotions and opinions, Spam-Ham classification for efficient content filtering, and Embedding for transforming text into numerical representations.
We also offer Text Completion, allowing you to generate accurate and contextually relevant suggestions to enhance user experience, while our Headline Generation feature lets you distill news articles into concise and attention-grabbing summaries. Additionally, our Text Summarization functionality provides comprehensive and condensed summaries of lengthy documents.
OPEN AI APIs doesn't stop at NLP. We also provide Image-to-Text conversion, enabling you to extract text content from images effortlessly. Our Paraphrasing capabilities help you rephrase and reword text while maintaining its original meaning and intent. And with our Question Answering system, you can create interactive applications that intelligently respond to user queries.
At PR Labs, we are committed to delivering state-of-the-art AI and ML technologies through OPEN AI, empowering you to unlock the full potential of your applications. Trust us to provide accurate, reliable, and scalable solutions that elevate your business to new heights. Experience the power of OPEN AI today and revolutionize the way you interact with data.
-----------
#### **STEP 1**:
#### **Step 2** :
1. choose any bot of your choice
2. click on your choosen bot and copy bot_id
#### **Step 3**:
paste bot_id in required bot_id parameter of JSON payload on RAPID API PLAYGROUND
#### **Step 4**
**ENJOY YOUR BOT NOW**
-----------
### **HOW TO CREATE MY OWN PERSONAL BOT**
#### **STEP 1:**
#### **STEP 2:**
click on "sign in with google" and login with your email id present on top right corner
#### **STEP 3:**
click on "create bot" present on navbar
#### **STEP 4:**
fill the required informations about bot ( You can also make private and public bot)
#### **STEP 4:**
#### **STEP 5:**
click on your bot and copy bot_id
#### **Step 6:**
paste bot_id in required bot_id parameter of JSON payload on RAPID API PLAYGROUND.
-----------
### Sample Json for Vision AI
{
"messages":[
{
"role": "user",
"content": "hi",
"img_url": ""
},
{
"role": "assistant",
"content": "Hi there! How may I assist you today?",
"img_url": ""
},
{
"role": "user",
"content": "What's in the image?",
}
]
}
-----------
### Getting Started
To begin using Real-Time Web Search, follow these steps and make your first API call:
- Subscribe to a plan: Visit our Pricing page and subscribe to one of the plans. If you are just starting, you can subscribe to the free BASIC plan of the API - free plan with 50-100 (50 to 100) requests per month (hard-limited and no credit card required).
- Make your first API call: Visit the RapidAPI Playground - Select and endpoint and make an test API call on sample query paramters provided
- Documentation and Resources: Refer to the detailed endpoint, parameter descriptions, and examples provided in the Endpoints tab under each endpoint. Code snippets are available for all popular programming languages and environments, including - Javascript, Python, Java, Shell, and many others, to help you easily integrate the API into your project or workflow.
You should be good to go now!
#### Authentication
To access the API, you will need to authenticate your requests by including an API key in the request header. Please refer to the authentication section in the API documentation for instructions on how to generate and include the API key in your requests.
### Rate Limiting
#### Limits
Each subscription plan of the API defines the maximum number of requests permitted per month or the quota, in addition to a rate limit expressed in RPS (Requests Per Second).
- Please note that all free plans of the API (e.g. BASIC) are rate limited to 1000 requests per hour. This is a RapidAPI requirement for any free plan.
#### Rate Limits Headers
All API responses include rate limit information in the following headers:
- x-ratelimit-requests-limit: number of requests the plan you are currently subscribed to allows you to make before incurring overages.
- x-ratelimit-requests-remaining: The number of requests remaining (from your plan) before you reach the limit of requests your application is allowed to make. When this reaches zero, you will begin experiencing overage charges. This will reset each day or each month, depending on how the API pricing plan is configured. You can view these limits and quotas on the pricing page of the API in the API Hub.
- x-ratelimit-requests-reset: Indicates the number of seconds until the quota resets. This number of seconds would at most be as long as either a day or a month, depending on how the plan was configured.
#### Handling Limits
When hitting the rate limits of the API, the RapidAPI gateway will return a 429 Too Many Requests error. When that happens, wait until your rate limit resets, or consider upgrading your subscription plan for a higher limit. We can support almost any monthly quota and rate limit, contact us for more information.
Here’s an example of a 429 Too Many Requests error:
{
"message":"Too many requests"
}
### Code Examples
Code examples are available for all popular programming languages and environments (Javascript, Python, Java, Shell, etc) on the Endpoints tab, on the right panel, under “Code Snippets”.
### Common Use Cases
The LLAMA, Mixtral, Cohere API can be used for a variety of use cases, including:
Market Research and Competitive Analysis
Generative AI / LLMs and Machine Learning
Applications and Services
Research and Data Analysis
ChatBot services
### Error Handling
The API is designed to be robust and reliable . However, in the event of errors during API interaction, we use HTTP status codes to indicate the nature of the problem. Below, you'll find detailed explanations of common error codes you may encounter, along with potential causes and suggested remediation steps.
### Common HTTP Status Codes
- 400 Bad Request: This status is returned when your request is malformed or missing some required parameters. The response body might also include a “message” field, explaining the specific error. Ensure that all required fields are included and properly formatted before retrying your request.
- 403 Forbidden: This error indicates that you are not subscribed to the API or that your API key is invalid. If you believe this is in error, please contact RapidAPI support -
support@rapidapi.com.
- 404 Not Found: This status is returned if the requested resource could not be found. This can occur with incorrect URL endpoints. Double-check the URL and try again.
- 429 Too Many Requests: This error means you have hit the rate limit for your subscription plan. Wait until your rate limit resets, or consider upgrading your subscription plan for a higher limit. If you believe this is in error, please contact us.
- 5XX Server Error (500, 502, and 503): This indicates a problem with our servers processing your request or an internal server timeout. This is a rare occurrence and should be temporary. If this error persists, please contact our technical support for assistance at **
api.prlabs@gmail.com**
### Handling Errors Programmatically
Implement error handling in your application to manage these responses gracefully. Here are some tips:
- Retry Logic: For 5XX (500, 502, 503) and 429, implement a retry mechanism that waits for a few seconds before retrying the request.
- Validation: Prior to sending requests, validate parameters to catch common errors like 400 Bad Request.
- Logging: Log error responses for further analysis to understand patterns or recurring issues that might require changes in how you integrate with the API. The request_id field in the response can be used for further debugging.
- User Feedback: When applicable, Provide clear messages to your users when an error occurs, potentially using the information from the error response.
### Support
If you encounter any issues that you are unable to resolve, or if you need further clarification on the errors you are seeing, please do not hesitate to contact us (see the Contact Us section below). Provide us with the error code, message, and the context in which the error occurred, and we will assist you promptly.
### Contact Us
For custom plans / high tier plans, custom services or any other subject, feel free to drop us a private message or an email and we will get back to you shortly.
#### Conclusion
The provides a convenient way to use AI APIs . By making HTTP requests to the respective endpoints with the required parameters, you can retrieve the desired information. Refer to the documentation for more detailed usage instructions and examples.
If you have any further questions or need assistance, please don't hesitate to contact our support team at
api.prlabs@gmail.com