OpenAI
AI models for chat completion, embeddings, image generation, speech, and transcription
Tools
| Name | Description |
|---|---|
chat_completionGenerate a chat completion using OpenAI models | Generate a chat completion using OpenAI models |
ask_jsonAsk OpenAI for structured JSON and return a parsed JSON value with raw text metadata. | Ask OpenAI for structured JSON and return a parsed JSON value with raw text metadata. |
create_embeddingCreate an embedding vector for the given input text | Create an embedding vector for the given input text |
generate_imageGenerate an image using DALL-E | Generate an image using DALL-E |
transcribe_audioTranscribe audio to text using Whisper | Transcribe audio to text using Whisper |
text_to_speechGenerate audio from text using OpenAI TTS | Generate audio from text using OpenAI TTS |
list_modelsList all available OpenAI models | List all available OpenAI models |
custom_api_callMake a custom API call to the OpenAI API | Make a custom API call to the OpenAI API |
Quick Start
import { WeavzClient } from '@weavz-io/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute('openai', 'chat_completion', {
workspaceId: '550e8400-e29b-41d4-a716-446655440000',
integrationAlias: 'openai',
input: { /* ... */ },
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect OpenAI to my app?
Use Weavz Hosted Connect for API Key authentication. Install the SDK, create a connection through the connect portal or API, then execute tools programmatically.
What tools does OpenAI support?
OpenAI supports 8 tools including Chat Completion, Ask JSON, Create Embedding, Generate Image, Transcribe Audio, and more.
Can I use OpenAI with AI agents?
Yes. Add OpenAI to an MCP server in Tool Mode or Code Mode. Code Mode provides 3 meta-tools with on-demand API discovery so agents can compose stateful workflows without loading every action schema up front.
How do I connect OpenAI to ChatGPT or Claude?
Open the Weavz connector setup, sign in, choose a workspace, and add OpenAI as an approved app. ChatGPT, Claude, and other remote MCP clients can then call the scoped OpenAI tools exposed by that workspace.
Does OpenAI work with Claude Code, Cursor, Codex, and local agents?
Yes. Remote and local MCP clients can connect to a Weavz MCP endpoint for the workspace. Local coding agents can also use the Weavz CLI to inspect apps, discover actions, run approved OpenAI work, and execute Code Mode workflows from a terminal.
What can I ask an AI agent to do with OpenAI?
OpenAI exposes 8 tools, including Chat Completion, Ask JSON, Create Embedding, Generate Image, Transcribe Audio, and more. Use Weavz to keep credentials scoped, require approval for sensitive work, and audit what the agent did.
Can OpenAI be used in stateful agent workflows?
Yes. Agents can combine OpenAI tools with Filesystem, State KV, Human Gates, input partials, and other workspace integrations while keeping execution scoped to the selected workspace or end user.
What authentication does OpenAI use?
OpenAI uses API Key. Weavz stores credentials securely and uses them for authorized action execution.
How much does the OpenAI integration cost?
The OpenAI integration is included on all Weavz plans including the free tier with 20,000 actions per month. No credit card required.
Connect OpenAI in minutes
Get 20,000 free action executions every month. No credit card required.