GenAI API for Apple Shortcuts

GenAI API for Apple Shortcuts

A TypeScript API that supercharges Apple's Shortcuts by integrating Cloudflare Workers with Google's Gemini AI model to enable powerful AI capabilities within minutes and for free (up to 1,500 requests per day).
https://github.com/louisbrulenaudet/genai-api?ref=producthunt
GenAI API for Apple Shortcuts

Product Information

Updated:Sep 5, 2025

What is GenAI API for Apple Shortcuts

GenAI API for Apple Shortcuts is an open-source API built with Hono framework that aims to enhance Apple's Shortcuts functionality by providing seamless integration with generative AI capabilities. It leverages Cloudflare Workers for deployment and connects with Google's Gemini AI model to enable intelligent shortcut automation. The project provides developers with a simple and easy-to-use API to quickly incorporate AI features into their Apple Shortcuts without complex setup requirements.

Key Features of GenAI API for Apple Shortcuts

GenAI API for Apple Shortcuts is a TypeScript-based API that integrates generative AI capabilities with Apple's Shortcuts app through Cloudflare Workers. It provides a seamless way to enhance shortcuts with AI features by leveraging Google's Gemini models, offering easy deployment, secure authentication via bearer tokens, and free usage up to 1,500 requests per day. The API is built with Hono framework and focuses on providing a simple interface for developers to add AI capabilities to their shortcuts.
Quick Deployment with Cloudflare Workers: Easy setup and deployment process using Cloudflare Workers, requiring minimal configuration and offering immediate accessibility
Secure Authentication System: Implementation of bearer token authentication to ensure secure access to the API endpoints
Flexible Model Configuration: Support for customizable parameters including temperature settings, system prompts, and model selection for different use cases
Developer-Friendly Interface: Simple REST API endpoint structure with JSON request/response format and comprehensive documentation for easy integration

Use Cases of GenAI API for Apple Shortcuts

Automated Content Generation: Create shortcuts that automatically generate text content, responses, or creative writing based on user inputs
Information Processing: Build shortcuts that can analyze and extract information from text, helping with data processing and summarization tasks
Personal Assistant Automation: Develop intelligent shortcuts that can handle complex queries and provide contextual responses for daily tasks
Workflow Enhancement: Integrate AI capabilities into existing workflow shortcuts to make them more intelligent and adaptive

Pros

Free tier with generous daily request limit (1,500 requests)
Simple deployment and configuration process
Built on reliable infrastructure (Cloudflare Workers)
Strong security features with bearer token authentication

Cons

Limited to Google's Gemini models
Requires technical knowledge for setup and deployment
Dependent on Cloudflare Workers platform

How to Use GenAI API for Apple Shortcuts

Clone and Setup Repository: Clone the repository with 'git clone https://github.com/louisbrulenaudet/genai-api.git' and cd into the directory
Install Dependencies: Run 'make init' to install all required dependencies
Configure API Key: Run 'wrangler secret put GOOGLE_AI_STUDIO_API_KEY' and enter your Google AI Studio API key when prompted (get one from https://aistudio.google.com/apikey if needed)
Set Bearer Token: Run 'wrangler secret put BEARER_TOKEN' and enter a bearer token of your choice for API security
Deploy API: Run 'make deploy' to deploy the API to Cloudflare Workers. Note the URL provided in the output
Create Apple Shortcut: Open the Shortcuts app on your Apple device and create a new shortcut that makes API calls
Configure API Request: Add a 'Get Contents of URL' action in your shortcut, set it to POST method, and point it to your API endpoint (e.g., https://your-worker-url.com/api/v1/completion)
Set Request Headers: Add Authorization header with your Bearer token and Content-Type: application/json header to the request
Set Request Body: Configure the JSON request body with required 'input' field and optional 'system', 'temperature', and 'model' fields
Handle Response: Add actions to process the plain text response from the API in your shortcut workflow

GenAI API for Apple Shortcuts FAQs

It's a TypeScript API built with Hono and deployed as a Cloudflare Worker that integrates generative AI capabilities into Apple Shortcuts, allowing users to create more powerful and intelligent shortcuts by leveraging AI models like Gemini.

Latest AI Tools Similar to GenAI API for Apple Shortcuts

Gait
Gait
Gait is a collaboration tool that integrates AI-assisted code generation with version control, enabling teams to track, understand, and share AI-generated code context efficiently.
invoices.dev
invoices.dev
invoices.dev is an automated invoicing platform that generates invoices directly from developers' Git commits, with integration capabilities for GitHub, Slack, Linear, and Google services.
EasyRFP
EasyRFP
EasyRFP is an AI-powered edge computing toolkit that streamlines RFP (Request for Proposal) responses and enables real-time field phenotyping through deep learning technology.
Cart.ai
Cart.ai
Cart.ai is an AI-powered service platform that provides comprehensive business automation solutions including coding, customer relations management, video editing, e-commerce setup, and custom AI development with 24/7 support.