# Google AI Studio API Documentation

This is the complete API documentation for connecting to the Google AI Studio API using MindCloud's Universal API.

MindCloud offers one normalized API to access 3,400+ apps from a single place. It centralizes authentication and normalizes app APIs so they are easier and more consistent to use.

## Quickstart

1. A **MindCloud account** — sign in or create an account at [MindCloud](https://app.mindcloud.co).
2. A **MindCloud API Key** — create one in [API Keys](https://app.mindcloud.co/user/api-keys). Keep it on your server.
3. At least one **Google AI Studio connection** — create or choose one in [Connections](https://app.mindcloud.co/credentials). Note its `connectionId`.

```text
POST https://connect.mindcloud.co/v2/universal/apps/googleAIStudio/actions/{actionSlug}/run
```

## Google AI Studio actions

- PUT `cancel-batch` Cancel Batch
- GET `count-tokens` Count Tokens
- POST `create-cached-content` Create Cached Content
- DELETE `delete-batch` Delete Batch
- DELETE `delete-cached-content` Delete Cached Content
- DELETE `delete-file` Delete File
- POST `embed-content` Embed Content
- POST `generate-content` Generate Content
- GET `get-batch` Get Batch
- GET `get-cached-content` Get Cached Content
- GET `get-file` Get File
- GET `get-model` Get Model
- GET `list-batches` List Batches
- GET `list-cached-contents` List Cached Contents
- GET `list-files` List Files
- GET `list-models` List Models
- POST `stream-generate-content` Stream Generate Content
- PUT `update-cached-content` Update Cached Content
