How to set up OpenAI
You can use OpenAI in two ways:- Cargo credits – Use OpenAI through Cargo’s managed integration (no API key required)
- 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:| Field | Description |
|---|---|
| API Key | Your OpenAI API key |
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
| Field | Description |
|---|---|
| Model | Select the GPT model to use |
| Prompt | The prompt to send to the model |
| System prompt | Optional system instructions |
| Maximum tokens | Limit output length (includes reasoning tokens) |
| Temperature | Control randomness (0 = deterministic, 2 = very random) |
| With web search | Enable web search capabilities for the agent |
| Response format | Text, JSON object, or JSON schema |
Available models
GPT 5
GPT 5
The most capable model for complex reasoning and coding tasks.Best for: Complex multi-step problems, advanced analysis, coding tasksCredit cost: ~0.2 credits per 1,000 tokens
GPT 5 Mini
GPT 5 Mini
A faster, more cost-effective version of GPT-5 for well-defined tasks.Best for: Balanced cost-performance, everyday tasksCredit cost: ~0.03 credits per 1,000 tokens
GPT 5 Nano
GPT 5 Nano
The fastest and cheapest GPT-5 variant for simple tasks.Best for: Summarization, classification, simple extractionsCredit cost: ~0.006 credits per 1,000 tokens
GPT 4.1
GPT 4.1
High-capability model with extended context window (1M tokens).Best for: Complex tasks requiring large contextCredit cost: ~0.3 credits per 1,000 tokens
GPT 4.1 Mini
GPT 4.1 Mini
Balanced performance model with large context window.Best for: Cost-effective tasks with large inputsCredit cost: ~0.05 credits per 1,000 tokens
GPT 4.1 Nano
GPT 4.1 Nano
Fastest and cheapest model with large context support.Best for: High-volume, low-latency tasksCredit cost: ~0.01 credits per 1,000 tokens
GPT 4o
GPT 4o
General-purpose model supporting text and images.Best for: Multimodal tasks, image analysisCredit cost: ~0.5 credits per 1,000 tokens
GPT 4o Mini
GPT 4o Mini
Compact multimodal model for efficient image and text tasks.Best for: Cost-effective multimodal tasksCredit cost: ~0.02 credits per 1,000 tokens
Recommended model: GPT 5 Mini offers the best balance of cost and
performance for most use cases.
Response formats
Control how the model returns its response:| Format | Description |
|---|---|
| Text | Free-form text response (default) |
| JSON object | Response formatted as valid JSON |
| JSON schema | Response validated against a specific JSON schema |
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:| Temperature | Behavior |
|---|---|
| 0 | Most deterministic, consistent outputs |
| 0.5-1 | Balanced creativity and consistency |
| 1-2 | More creative, varied outputs |
Web search
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

