Skip to main content

Setup Guide

This guide walks you through creating an OpenAI account and generating an API key required to use the OpenAI Fine-tunes connector.

Prerequisites

  • An OpenAI account on a paid billing plan. Fine-tuning endpoints are not available on free or Explore plans. Enable billing and add credits in the Billing settings.
warning

OpenAI is winding down the fine-tuning platform. It is no longer available to new users. Existing users can continue creating training jobs for the coming months, after which inference will continue until the underlying base models are deprecated.

Step 1: Navigate to the API keys dashboard

  1. Open the OpenAI Platform Dashboard.

  2. Navigate to Dashboard > API keys in the left sidebar.

    Navigate to API keys dashboard

Step 2: Create a new secret key

  1. Select Create new secret key.

    API keys dashboard

  2. Fill in the required details and select Create secret key.

    Create new secret key dialog

  3. Copy the generated API key immediately — it will not be shown again.

    Copy and save the API key

warning

Store the API key securely. Do not commit it to source control. Use Ballerina's configurable feature and a Config.toml file to supply it at runtime.

What's next