Skip to main content

Overview

OpenAI tools allow you to interact with OpenAI’s language models, including GPT-3.5 and GPT-4. These tools support both simple text generation and structured output with JSON schemas.

Key Features

  • OPENAI_INVOKE
    • Send prompts to OpenAI models for text generation
    • Support for structured output with JSON schemas
  • OPENAI_INVOKE_WITH_FILE
    • Send files along with prompts for file-based analysis
  • OPENAI_DEEP_RESEARCH
    • Conduct autonomous, in-depth research using OpenAI’s Deep Research models
    • Browses public sources with web search and synthesizes a comprehensive report
  • OPENAI_SORA2
    • Generate videos with OpenAI’s Sora models and receive a downloadable video URL

Authentication

For further details, click here. If you do not have an API key, you can still run OpenAI tools by using Jinba API credit. If you’d like to use your own API key, you can obtain one from the OpenAI API website. Note: Treat API keys as sensitive information and never commit them to public repositories.

Example: Basic Text Generation

Example: Structured Output with JSON Schema

Example: File Analysis

Example: Deep Research

OPENAI_DEEP_RESEARCH runs long-form autonomous research. Available models are o4-mini-deep-research-2025-06-26 (lightweight and faster, the default) and o3-deep-research-2025-06-26 (optimized for in-depth synthesis and higher quality). Web search is enabled by default (enable_web_search), and you can optionally enable a code interpreter for data analysis (enable_code_interpreter). The research runs in background mode with polling; the timeout_seconds config controls how long to wait (default 3600 seconds). The final report is returned as result.report.

Example: Video Generation with Sora

OPENAI_SORA2 generates a video from a text prompt, waits for completion, and returns a downloadable video URL (result.video_url, valid for 24 hours). You can choose the model (sora-2 or sora-2-pro), the clip duration in seconds (4, 8, or 12), and the resolution (720x1280, 1280x720, 1024x1792, or 1792x1024). An optional image_reference (JPEG, PNG, or WEBP) can be provided to guide the video.