API Configuration for Use with Scriptcase AI

API Configuration for Use with Scriptcase AI

html

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. With a subscription, however, the amount is charged regardless of usage during that month.

Alert
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
Gemini API Pricing: https://ai.google.dev/gemini-api/docs/pricing

Quote
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 IA, you need to access the OpenAI developer platform and generate an API key.

Step-by-step

  1. Access the OpenAI Platform.

  2. Log in with an OpenAI account.
    1. If the user already uses ChatGPT, they can use the same login. However, API usage has separate configuration and billing from the ChatGPT subscription.

  3. Access the Billing area.

  4. Configure the payment method or add credits for API usage.
    1. The OpenAI API works with consumption-based billing. Added credits are consumed as requests are made.

  5. Access the API Keys area.

  6. Create a new API key.

  7. Copy the generated key and store it in a safe place.
    1. The key must be saved at the time of creation. For security reasons, the platform may not display the full key again afterward.

  8. In Scriptcase, access the Scriptcase AI configuration.

  9. Select the OpenAI/GPT provider.

  10. Enter the generated API key.

  11. 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 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.

  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 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.

Info
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.

    • Related Articles

    • Configuring Email API in ScriptCase

      In ScriptCase, we can configure and enable 3 types of Email API natively. They are: SMTP, Mandrill and Amazon SES. For this article, we will use the SMTP option, which is the most commonly used, as an example. Getting SMTP Server Information There ...
    • Configuring SMS API in ScriptCase

      In ScriptCase, we can configure and enable 3 types of SMS API natively. They are: Twilio, Plivo and Ckickatell. For this article, we will use the Twilio SMS API as an example, where we have the possibility to perform a free trial, as well as the ease ...
    • Configuring the Google Authenticator API in ScriptCase

      The Google Authenticator API can be very simply configured to be used primarily in the two-factor authentication (2FA) of the security module. In this article, we will show you how to perform this configuration in ScriptCase. Download the Google ...
    • Request a new license

      Some situations require the reinstallation of Scriptcase, in these cases, the user must generate a new serial on our website to register the tool. Follow the steps below to generate a new serial:  1. Log in to the website The entire process to ...
    • Use of the log in Scriptcase

      We proceed to create a security module to use the log. 1 - Follow this tutorial to create a security module: https://www.scriptcase.net/docs/en_us/v9/manual/10-modules/02-security-module/ 2 - Proceed with the log in the top menu option Module > Log > ...