Skip to content

Configuring OpenAI Models

This page explains how to retrieve or generate API credentials for OpenAI models. Once you have the configuration details, you can follow the guide here to set up the model in the Flexpilot IDE.

🔗 Quick Links

Setup Guide

🔒 Security Warning

Never commit API keys to version control or share them publicly. Keep them secure!

  1. Login to OpenAI Platform or sign up for a new account if you don't have one.
  2. Navigate to OpenAI Platform API Keys section to create a new API key.
  3. Click Create new secret key and give it a descriptive name (recommended).
  4. Once you create the API key, copy it immediately as it won't be visible again.
  5. Visit the OpenAI Models documentation to select the appropriate model for your needs.

Configuration Reference

Use these settings when configuring OpenAI in Flexpilot IDE:

Configuration Fields
FieldDescriptionDefault/Recommended
API URLBase endpoint URLhttps://api.openai.com/v1
API KeyYour secret keyFrom API Keys
Model IDModel identifiergpt-4-turbo-preview
TemperatureResponse creativity (0-1)0.2 for code generation
Organization IDOpenAI org identifier (optional)From organization settings
Project IDProject identifier (optional)From project settings
Tool CallingFunction calling supporttrue

💡 Pro Tips

  • Use lower temperatures (0.1-0.3) for more deterministic code generation
  • The default API URL works for most users - only change if using a proxy

Next Steps

Set up the API credentials obtained from this page's instructions in the Flexpilot IDE to enable the Chat Model. For detailed guidance, refer to the Setup Guide.