Skip to main content
OpenAI provides advanced language models that power intelligent automation. Cargo’s native integration with OpenAI allows you to use GPT models directly in your workflows for text generation, classification, summarization, and more.

How to set up OpenAI

You can use OpenAI in two ways:
  1. Cargo credits – Use OpenAI through Cargo’s managed integration (no API key required)
  2. Your own API key – Connect your OpenAI account for direct access

Using Cargo credits

Select OpenAI from the node catalog and start using it immediately. Costs are deducted from your Cargo credits based on token usage.

Using your own API key

To connect your OpenAI account:
Find your API key in the OpenAI platform under API keys.

OpenAI actions

Instruct

Send a prompt to an OpenAI model and receive a text response. Use cases
  • Content generation – Generate personalized emails, messages, or content
  • Classification – Categorize text into predefined categories
  • Summarization – Summarize long text into concise summaries
  • Data extraction – Extract structured data from unstructured text
  • Translation – Translate text between languages
  • Analysis – Analyze sentiment, intent, or other text properties
Configuration

Available models

The available models — and their per-model credit costs — evolve with OpenAI’s lineup, so the action’s Model dropdown in the workspace is always the authoritative list. From the terminal:
Picking a model:
  • Flagship models — complex reasoning, multi-step analysis, coding tasks
  • Mini variants — the best cost/performance balance for most everyday tasks (start here)
  • Nano variants — high-volume, low-stakes work: summarization, classification, simple extraction

Response formats

Control how the model returns its response:
Use JSON schema when you need structured output with specific fields. Define your schema to ensure consistent, parseable responses.

Example JSON schema

Advanced settings

System prompt

Set instructions that guide the model’s behavior across all prompts. Use system prompts to:
  • Define the model’s role or persona
  • Set output format guidelines
  • Provide context about your use case
  • Establish constraints or rules

Temperature

Control the randomness of outputs:
For tasks requiring consistency (classification, extraction), use low temperature (0-0.3). For creative tasks (content generation), use higher temperature (0.7-1).
Enable the model to search the web for current information. Useful for:
  • Real-time data lookups
  • Current events or news
  • Company or product research
  • Fact verification