Conclusion

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Heads up... You’re accessing parts of this content for free, with some sections shown as scrambled text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Great job, you just utilized Python to interact with the Gemini API in your own program.

You learned:

  • The strengths of Gemini API in comparison to OpenAI, when generating text.
  • How to implement basic text generation using Gemini’s API.
  • How to adjust and view the safety settings.
  • How to apply the different generation parameters.

In the next lesson, you’ll learn how to use the API to create a custom non-streaming chatbot.

See forum comments
Download course materials from Github
Previous: Demo: Using Parameters Next: Quiz: Text Generation with Gemini Pro API