Back to Tools

OpenAI GPT

AI

Generate text, chat completions, and embeddings using OpenAI GPT models. Supports GPT-4, GPT-4 Turbo, and GPT-3.5.

Available Actions
chatcompleteembed
Input Schema
{
  "type": "object",
  "required": [
    "messages"
  ],
  "properties": {
    "model": {
      "type": "string"
    },
    "messages": {
      "type": "array"
    },
    "temperature": {
      "type": "number"
    }
  }
}
Output Schema
{
  "type": "object",
  "properties": {
    "usage": {
      "type": "object"
    },
    "content": {
      "type": "string"
    }
  }
}
Quick Start

API Endpoint

POST /api/execute/openai-gpt

cURL Example

curl -X POST \
  https://api.nulayers.com/execute/openai-gpt \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action": "chat"}'
Integration

Get your API key from the dashboard to start using this tool in your AI applications.