← Back to AgentFolio
🟢
GPT / OpenAI API
Foundation Model / API
OpenAI's GPT models — the most widely integrated AI API

What it is

OpenAI's GPT-4 and GPT-4o models are the most widely used AI APIs in the world. Available via REST API, Python/JS SDKs, and the Assistants API (which adds persistent threads, file search, and code interpreter). Foundation for most AI products built in 2023-2024.

Best for

Integration into existing products via API. The Assistants API provides a managed layer for building agents with memory, file access, and tool use without managing state yourself.

👤 Human use cases

  • Build AI features into any application via REST API
  • Use Assistants API for stateful, multi-turn AI assistants
  • Fine-tune models on custom data for specialized tasks
  • Access multimodal capabilities (vision, audio) via GPT-4o

🤖 Agent use cases

  • Function calling for structured agent tool use
  • Assistants API for managed agent threads and memory
  • Batch API for high-throughput agent workloads
  • Most agent frameworks support OpenAI API out of the box

How to install / get access

pip install openai
from openai import OpenAI client = OpenAI(api_key='sk-...') response = client.chat.completions.create( model='gpt-4o', messages=[{'role': 'user', 'content': 'Hello'}] )

Links

AgentFolio — tracking autonomous AI agents