**Scriptcase AI** uses **APIs** to communicate with artificial intelligence models, helping developers create, maintain, and evolve projects developed in Scriptcase.

To use Scriptcase AI, **it is not necessary to purchase a standard subscription**, such as **ChatGPT Plus**, **Google AI Pro**, or any other equivalent plan.\
**These subscriptions are not required to use the API,** their purpose is to allow access to the paid version of the AI assistant directly through the provider's own website.

When using **Scriptcase AI** with an API key, **billing is based on demand**, considering factors such as the model used, the volume of requests made, and the number of tokens processed. However, in the standard subscription plans, the amount will be charged regardless of usage during that month.

> **It is not necessary** **to purchase a standard subscription,** such as ChatGPT Plus or Google AI Pro, **to use Scriptcase AI** through the API.

## How values are calculated

This consumption is measured in **tokens**, which represent small parts of the content sent to and received from the AI, such as texts, instructions, questions, code snippets, and responses generated by the model.

In each interaction, the API counts the **input tokens**, referring to the content sent to the AI, and the **output tokens**, referring to the generated response.

In practice, common tasks, such as generating suggestions, translating content, reviewing small excerpts, explaining errors, adjusting parts of code, or assisting in the creation of applications, tend to consume a reduced number of tokens.

### Example of values by model and token

The values below, obtained on **06/11/2026** from the official pages**,** refer to **API usage** and are intended only to demonstrate the cost difference between models. Prices may change, so it is recommended to always check the official pages before purchasing.

ChatGPT (OpenAI API Pricing): [https://developers.openai.com/api/docs/pricing](https://developers.openai.com/api/docs/pricing?utm_source=chatgpt.com)\
Gemini API Pricing: <https://ai.google.dev/gemini-api/docs/pricing>

> 1 million tokens represents approximately between 600,000 and 750,000 words, depending on the language and the type of content processed.

| Provider | Model                  | Input                  | Output                  | Notes                                                                                  |
| -------- | ---------------------- | ---------------------- | ----------------------- | -------------------------------------------------------------------------------------- |
| OpenAI   | gpt-5.5                | US$ 5,00 per 1M tokens | US$ 30,00 per 1M tokens | Most capable model, with higher cost                                                   |
| OpenAI   | gpt-5.4-nano           | US$ 0,20 per 1M tokens | US$ 1,25 per 1M tokens  | Lightweight, cost-effective model. Primarily used for Scriptcase AI intelligent tasks. |
| Gemini   | Gemini 3.1 Pro Preview | US$ 2,00 per 1M tokens | US$ 12,00 per 1M tokens | Most capable model                                                                     |
| Gemini   | Gemini 2.5 Flash-Lite  | US$ 0,10 per 1M tokens | US$ 0,40 per 1M tokens  | Lightweight, cost-effective model. Primarily used for Scriptcase AI intelligent tasks. |

## Generate an API Key GPT / OpenAI

To use GPT models in Scriptcase A, you need to access the OpenAI developer platform and generate an API key.

### Step-by-step

 1. Access the [OpenAI Platform](https://platform.openai.com/).

 2. Log in with an OpenAI account.

 3. If the user already uses ChatGPT, they can use the same login. However, API usage has separate configuration and billing from the ChatGPT subscription.

 4. Access the **Billing** area.

 5. Configure the payment method or add credits for API usage.

 6. The OpenAI API works with consumption-based billing. Added credits are consumed as requests are made.

 7. Access the **API Keys** area.

 8. Create a new API key.

 9. Copy the generated key and store it in a safe place.

10. The key must be saved at the time of creation. For security reasons, the platform may not display the full key again afterward.

11. In Scriptcase, access the Scriptcase AI configuration.

12. Select the **OpenAI/GPT** provider.

13. Enter the generated API key.

14. Save the configuration and perform a connection or AI usage test.

### Monitoring API Usage

The platform dashboard provides detailed metrics on costs, request volume, and rate limits.

1. Access the [OpenAI Platform](https://platform.openai.com/) website and sign in.

2. In the left-side menu, go to **Usage** to view a detailed breakdown of daily token consumption by model (such as GPT-5.5 or GPT-5.4 Nano) and accumulated costs.

You will see a detailed dashboard containing all information related to your API usage.

## Generate an API Key Gemini / Google

To use Gemini models with Scriptcase AI, you must access Google AI Studio or configure a project in Google Cloud and generate an API key.

### Step-by-Step

 1. Access [**Google AI Studio**](https://aistudio.google.com/welcome)[.](https://aistudio.google.com/welcome)

 2. Sign in with a Google account.

 3. Accept the Terms of Service if this is your first access.

 4. Go to the **API Keys** section.

 5. Create a new API key.\
    On future accesses, Google AI Studio may automatically create a default project linked to your account. You can also use or import an existing Google Cloud project.

 6. Copy the generated API key.

 7. If you need paid features or higher limits, configure **billing** for the project.

 8. In Scriptcase, access the Scriptcase AI settings.

 9. Select **Gemini** as the provider.

10. Enter the generated API key.

11. Save the configuration and perform a connection or AI usage test.

### Monitoring API Usage

1. Access the [Google AI Studio](https://aistudio.google.com/app/usage) Usage Dashboard.

2. Sign in with your Google account. There, you will find detailed charts showing daily usage, rate limits, and token consumption for each Gemini model.

You will see a detailed dashboard containing all information related to your API usage.

> To access the API consumption view, you need to have the payment method configured.

## Recommendations

Treat the API key as a password. Do not share it in chats, repositories, public pages, or places accessible to end users.

Whenever possible, use a dedicated key for Scriptcase AI, monitor API usage, and configure usage limits in the provider.

If you suspect the key has been exposed, replace it immediately and remove old keys that are no longer in use.