Gemini
OpenAI API Compatibility
This service is not compatible with the OpenAI API.
Models and Pricing
All models of Gemini are free to use, but there will be various limitations (such as the number of calls per minute, the number of tokens for input/output, etc.). You can also choose to pay for usage, in which case the calling limits will be more lenient. For detailed information, please refer to the Gemini API Pricing Documentation.
Payment for using Gemini requires a foreign credit card.
The following models are recommended:
- gemini-1.5-flash: Free to use. If you choose to pay, the input price is $0.075 per million tokens, and the output price is $0.3 per million tokens.
- gemini-1.5-pro: Free to use. If you choose to pay, the input price is $1.25 per million tokens, and the output price is $5 per million tokens. "Input" refers to the text you send to the model for translation, and "output" refers to the translation result provided by the model. The final cost of a translation = number of input tokens * input price + number of output tokens * output price. 1 token roughly corresponds to 1 Chinese character or 3 to 4 letters.
Application Steps
- Use an appropriate IP
Gemini is currently only available in certain countries/regions; the complete list can be found in the official documentation.
- Obtain an API Key
Go to the Get API key page of Google AI Studio, click on [Create API key], and copy the API key.
- Enter the API key into Salad Dictionary
Open the [Settings] - [Dictionary Account] in Salad Dictionary, find [Gemini], and click the [Manage Key] button to paste the API key you copied in the previous step.
- Optional: Switch Models
Salad Dictionary defaults to using the gemini-1.0-pro model, but you can set other models.
Error Troubleshooting
You can look up the cause of the error based on the error message at the following link: