17. RapidAPI: Example (AIbit Translator) - translator-based
Code:
Endpoint URL: https://aibit-translator.p.rapidapi.com/api/v1/translator/text
Headers:
{
"Content-Type": "application/json",
"x-rapidapi-host": "aibit-translator.p.rapidapi.com",
"x-rapidapi-key": "YOUR RAPIDAPI KEY"
}
Body:
{
"from": "auto",
"to": "en",
"text": "%text%",
"provider": "google"
}
Text Output Path: .trans
Model Selection: When switching to a different model, you must always examine the model's specific code and configuration, as these details will vary. Pay close attention to the fact that the x-rapidapi-host will change every time, and the parameters required in the Body tab will also be different. (The x-rapidapi-key, however, will be generated for you automatically.)
Models: Translator Models or AI Models.
How to: Choose an API, like AIbit translator -> Navigate back to the main API page or click API Overview -> Select the Basic plan -> Start Free Plan -> Subscribe -> In the left menu, select the appropriate method (usually a POST request named 'Translate Text' for translation, or 'chat'/'model' for AI) -> Under Code Snippets, ensure you set the Target: Shell and Client: cURL -> Go to the Body tab and modify the language parameters and/or insert your prompt text -> The final cURL code snippet shown is what you need to copy into the app
Finding the Text Output Path: Click Test Endpoint (top right) to execute the request -> In the response area (check the Raw tab for clarity), find the translated text and note the preceding JSON structure -> E.g.: {"trans":"%text%" meaning here the output path will be .trans. Or for Deep Translate: data:translations:translatedText: 0:"%text%" meaning here it will be .data.translations.translatedText[0].
I hope it is somewhat understandable, but if you're struggling to figure out the output path, copy the response text and ask an AI tool; it should be able to identify the correct JSON path for you.
Limits/Pricing: Details are available by clicking on the Basic plan within the API Overview section.
18. RapidAPI: Example (Lingvanex Translate) - translator-based
This service is similar to the Google Cloud offering, but I wanted to highlight it specifically because of the 500,000 Characters per Month usage.
Warning: This could be a bit risky if you're not paying attention, because if you go over the 500,000 character/month limit, you'll automatically start paying + $0.000005. But don't worry, you can set up a Budget Alert to help manage your spending.
You must provide your credit card details to use this service.
The configuration is the same as the previous one.
Code:
Endpoint URL: https://lingvanex-translate.p.rapidapi.com/translate
Headers:
{
"Content-Type": "application/json",
"x-rapidapi-host": "lingvanex-translate.p.rapidapi.com",
"x-rapidapi-key": "YOUR RAPIDAPI KEY"
}
Body:
{
"platform": "api",
"from": "ja",
"to": "en",
"enableTransliteration": false,
"data": "%text%"
}
Text Output Path: .result
Limits/Pricing: While the limit is 500,000 Characters per Month, it is not a hard limit that stops the service; instead, once you reach it, your account automatically transitions to a pay-as-you-go model. In this case: + $0.000005. Check the Basic plan details under API Overview for more information.
19. RapidAPI: Example (ChatGPT 4-chatgpt-42) - AI-Based
Same as above. For an AI model, you'll select a POST method on the left that is labeled chat or model. For this example, I'm choosing the Llama 3.3 70B Instruct model. You simply need to rewrite the Body section with your desired prompt, and the resulting cURL will be used.
Code:
Endpoint URL: https://chatgpt-42.p.rapidapi.com/conversationllama3
Headers:
{
"Content-Type": "application/json",
"x-rapidapi-host": "chatgpt-42.p.rapidapi.com",
"x-rapidapi-key": "YOUR RAPIDAPI KEY"
}
Body:
{
"messages": [
{
"role": "user",
"content": "Your prompt goes here, for example Translate this text to English and only return the translated text: %text%"
}
],
"web_access": false
}
Text Output Path: .result
Limits/Pricing: This particular plan: Credit: 300 per month (Hard Limit) Tokens: 100,000 per month (Hard Limit) Requests: 300 per month (Hard Limit) Hourly Rate: 1,000 requests per hour. You can always find these details by clicking on the Basic plan information under API Overview.
20. LLM7
Token Key: Click Get Free Token at the bottom of the page -> Sign in -> Click ADD -> Name your token and set an expiration date -> Create.
Code:
Endpoint URL: https://api.llm7.io/v1/chat/completions
Headers:
{
"Content-Type": "application/json",
"Authorization": "Bearer your api key"
}
Body:
{
"model": "mistral-small-3.1-24b-instruct-2503",
"messages": [
{
"role": "user",
"content": "Your prompt goes here, for example Translate this text to English and only return the translated text: %text%"
}
],
"stream": false
}
Text Output Path: .choices[0].message.content
To switch models, you simply change the model's name in the Body. Models: You can find the list here, or use the 'Select model' dropdown on the homepage. A tip: You can try using models that aren't officially listed, like meta-llama/Llama-3.3-70B-Instruct; it might just work!
Limits/Pricing: The limits are tiered and listed at the bottom of the main page: 45 requests per minute (if you're anonymous and haven't signed up) 150 requests per minute (with a free token) 500+ requests per minute (on paid tiers)
Warning: This one requires attention! If you exceed the 500,000 character/month free limit, you will automatically be charged. Solution: It's highly recommended to set up a Budget Alert. For instance, you could set a total budget of $1 and receive email alerts when you hit 50%, 90%, 100%, and 150% of that tiny amount, giving you peace of mind. A credit card is required for usage (but $300 in free credits may be available).
API Key: Go to the console (top right) -> Under Quick access, select APIs & Services -> Credentials (left menu) -> Create credentials (top) -> API key -> Name it and Create.
Enabling the API: You also need to explicitly enable the service. In the left menu, go to Library -> Search for Cloud Translate API -> Enable. This will require you to set up a billing account first.
Code:
Endpoint URL: https://translation.googleapis.com/language/translate/v2?key=YOUR_API_KEY
Headers:
{
"Content-Type": "application/json"
}
Body:
{
"q": "%text%",
"source": "ja",
"target": "en"
}
Text Output Path: .data.translations[0].translatedText
Limits/Pricing: The first 500,000 characters per month are free. After that, the cost is $20 per million characters. Link.
And that concludes the guide! If you found any mistakes, my apologies! :) And I hope everything made sense! The most important thing is that these APIs are confirmed to be working (or have worked) for me personally. :)