Skip to main content

Next-generation Gemini API Client

Project description

Next-generation Gemini API Client

from gemini_ng import GeminiClient

client = GeminiClient() # api key from environment variable `GEMINI_API_KEY`

with client.start_chat(model="models/gemini-1.5-pro-latest") as chat:
    image = client.upload_image("path/to/image.jpg")

    rsp = chat.send_message([image, "Can you describe this image?"])

    print(rsp)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_ng-0.0.1.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

gemini_ng-0.0.1-py3-none-any.whl (8.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page