G
GenAI Hub
โŠ•
๐Ÿค– AI Agents & APIsโ˜… Featured

OpenAI API

by OpenAI

Access GPT-4o, o1, DALL-E, Whisper, TTS, and Embeddings via API. The most widely integrated AI API with SDKs for every major language and framework.

GPT-4oembeddingsfunction callingassistants

Quick Start

  1. Get API access โ€” Create an account at platform.openai.com and generate an API key.
  2. Install the SDK โ€” npm install openai or pip install openai
  3. Make your first call โ€” const response = await openai.chat.completions.create({ model: "gpt-4o", messages: [{role:"user", content:"Hello!"}] })
  4. Set up billing โ€” Add a payment method and set usage limits in your account.
Full quickstart guide

How-To Guides

2
Define tools as JSON schemas. Pass them in the tools array. When GPT decides to call a function, it returns tool_calls. Execute the function and send the result back as a tool message.

Tool Info

Company
OpenAI
Category
๐Ÿค– AI Agents & APIs
How-to Guides
2

Tags

GPT-4oembeddingsfunction callingassistants