Category API

OpenAI API guides — how to get an API key, pricing for every model, rate limits, fine-tuning, function calling, embeddings, Whisper, DALL-E, Sora, the Responses API, the Assistants API, and the Realtime API. Code samples and best practices.

Structured Outputs with the OpenAI API

Schema card labeled SCHEMA passes through STRICT gate to output card labeled OUTPUT with typed-field icons.

Learn how OpenAI structured outputs work, when to use JSON schema, how they differ from JSON mode and function calling, and how to design schemas safely.