Cloud Functions API logo

Cloud Functions API

Cloud Functions API

Google Cloud Functions API deploys and manages serverless functions — write code, configure triggers, invoke, and monitor.

Visit site ↗Health checked 9h ago
Use it when

Serverless — pay per invocation and execution time

Watch for

Cold-start latency (Gen 1: several seconds; Gen 2 improved but still present)

First check

POST /v2/projects/{projectId}/locations/{location}/functions to create — upload source + configure triggers. Or use gcloud CLI for one-command deploy.

Auth
CORS
No
HTTPS
Yes
Signup
?
Latency
44 ms
Protocol
REST
Pricing

Uptime · 30-day window

Probes: 1Uptime: 100%Avg latency: 44ms
01

About this API

Cloud Functions is GCP's FaaS (function-as-a-service) product, competing with AWS Lambda and Azure Functions. Two generations: Gen 1 (2016+, classic version, more constraints); Gen 2 (2022+, rebuilt on Cloud Run + Eventarc with significant performance/feature improvements — longer execution, more memory, concurrent request handling, container-based deployment). Gen 2 is essentially Cloud Run plus a trigger abstraction. Common scenarios: event-driven data processing (image upload triggers thumbnail generation, order writes trigger emails), lightweight HTTP APIs, and webhook receivers for GCP services.

02

What you can build

  • 1Event-driven data processing (Cloud Storage upload triggers function)
  • 2HTTP API endpoint deployment
  • 3Pub/Sub message consumption
  • 4Scheduled tasks (Cloud Scheduler + Functions)
03

Strengths & limitations

Strengths

  • Serverless — pay per invocation and execution time
  • Auto-scaling from zero to thousands of concurrent instances
  • Native GCP trigger integration (Storage, Pub/Sub, Firestore)

Limitations

  • Cold-start latency (Gen 1: several seconds; Gen 2 improved but still present)
  • Max execution time 9 minutes (Gen 2: up to 60 minutes)
  • Memory cap 8GB
04

Example request

Generic template — replace <endpoint> with the real path from the docs.
curl https://google.com/<endpoint>
05

Getting started

POST /v2/projects/{projectId}/locations/{location}/functions to create — upload source + configure triggers. Or use gcloud CLI for one-command deploy.

06

FAQ

How to choose between Gen 1 and Gen 2?+

Always use Gen 2 for new projects. Gen 1 is mainly for legacy compatibility. Gen 2 offers better performance, quotas, and features.

Cloud Functions vs Cloud Run?+

Functions is "write a function + configure triggers" — simpler abstraction. Cloud Run is "run a container, more control". Gen 2 narrows the gap considerably.

07

Technical details

CORS: NoHTTPS: YesSignup: ?Open source: No
Auth type
unknown
Pricing
unknown
Protocols
REST
SDKs
python, javascript, typescript, go, java, csharp
Response time
44 ms
Last health check
5/12/2026, 7:37:30 AM
08

Tags

09

More from Google