gemini-cr
Gemini.cr
Google Gemini API written in Crystal.
It is not complete, it was created for use in another project, but it may be usable.
Installation
-
Add the dependency to your
shard.yml:dependencies: gemini: github: joseafga/gemini.cr -
Run
shards install
Usage
require "gemini"
Gemini.configure do |config|
config.api_key = "GEMINI_API_KEY"
end
model = Gemini::GenerativeModel.new("gemini-1.5-flash")
response = model.generate_content("Explain how AI works")
puts response.text
Contributing
- Fork it (https://github.com/joseafga/gemini.cr/fork)
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
Contributors
- José Almeida - creator and maintainer
Repository
gemini-cr
Owner
Statistic
- 0
- 0
- 0
- 0
- 1
- 2 days ago
- August 30, 2026
License
MIT License
Links
Synced at
Sun, 30 Aug 2026 06:48:05 GMT
Languages