Gemini via API

Productivity • Updated 10 months ago

Download Shortcut Add to Collection
Version 1.0 • 8193 unique downloads

ShareShortcuts Member:

@twilsonco



Google Gemini Pro API

Here you'll find the main shortcut, as well as a companion shortcut for viewing/continuing conversations, and some auxiliary shortcuts that work by calling the main shortcut.

  • Drop-in replacement for the "Ask ChatGPT" shortcut action, or
  • Runs standalone for text/PDF/image-based Gemini requests
  • Quick back and forth conversations when run standalone
  • When PDF is used for input, you can select specific page(s) to include , or use entire document
  • Logs conversations/images to Files App at /Shortcuts/GeminiAPI
  • View/continue Gemini conversation with this companion shortcut 🔗
  • Companion shortcut optionally uses actions from Toolbox Pro🔗 (no purchase necessary)

Currently, Gemini-Pro API access is FREE for up to 60 queries per minute!Bring your own free API key (get one here) 🔗

Shortcuts using this Shortcut

View/continue Gemini Pro conversation 🔗

  • A shortcut providing a convenient interface for viewing and continuing text/image conversations with Gemini that were created and logged using the current shortcut

A. Summarize article 🔗

  • Share a website from Safari/Chrome/etc to the shortcut and have Google Gemini Pro create a natural language summary

B. What is this? 🔗

  • A simple example of a shortcut utilizing the “Gemini via API” shortcut
  • This takes a picture and has gemini describe it. This is intended to be used via Siri or through a widget
  • Same thing as selecting image input in "Gemini via API", but with fewer taps

C. I have a question 🔗

  • This shortcut allows you to have a voice-only, back-and-forth conversation with Google Gemini Pro, using the “Gemini via API” shortcut
  • You can also pass this shortcut an image/photo via the share sheet and the image will be included with every request so you can query the same image repeatedly. (No previous messages are retained when an image is used, due to Google API constraints)
  • Basically the same thing as selecting dictation as input in "Gemini via API", but can be used from Siri more easily and requires no tapping

C1. Gemini Chat 🔗

  • This shortcut allows you to have a back-and-forth text conversation with Google Gemini Pro, using the “Gemini via API” shortcut
  • You can also pass this shortcut an image/photo via the share sheet and the image will be included with every request so you can query the same image repeatedly. (No previous messages are retained when an image is used, due to Google API constraints)
  • Basically the same as selecting text input in "Gemini via API", but with fewer taps

D. Weather summary 🔗

  • Fetches weather data for your current location and have Gemini read back a natural language summary of the upcoming weather

E. Today's agenda and weather 🔗

  • Same but for weekly agenda🔗
  • Define a list of iOS calendars and reminder lists which are used to fetch your scheduled events for the day, and have Gemini read back a summary of your agenda along with the weather

F. Create calendar events 🔗

  • Suggest/create one or more calendar events from a block of text shared using the Share Sheet or copied text, or a copied screenshot (using OCR)
  • Because Gemini Pro is used, you get contextually named event titles, notes, and it automatically suggests which calendar the event should be added to, as well as auto populating most event fields
  • You get a chance to modify events before they're added




Screenshots

Changelog

v1.0
  • Version 1.0   Current
    10 months ago (Changes)

Extensions:

Siri is supported

ShareSheet is supported

Show 22 embedded comment(s) in this Shortcut