OpenAI Platform
Developer quickstart
Make your first API request in minutes. Learn the basics of the OpenAI platform.
Get started
javascript
1 import OpenAI from "openai";
2 const client = new OpenAI();
3
4 const response = await [Link]({
5 model: "gpt-5",
6 input: "Write a short bedtime story about a unicorn.",
7 });
8
9 [Link](response.output_text);
Build with AgentKit
Design Deploy Optimize
Design and version workflows with
Agent builder or use the Agents SDK
for code-level control.
:
Browse models View all
GPT-5 GPT-5 mini GPT-5 nano
The best model for coding and agentic A faster, cost-efficient version of GPT-5 Fastest, most cost-efficie
tasks across domains for well-defined tasks GPT-5
Start building
Read and generate text
Use the API to prompt a model and generate text
Use a model's vision capabilities
Allow models to see and analyze images in your application
:
Generate images as output
Create images with GPT Image 1
Build apps with audio
Analyze, transcribe, and generate audio with API endpoints
Build agentic applications
Use the API to build agents that use tools and computers
Achieve complex tasks with reasoning
Use reasoning models to carry out complex tasks
Get structured data from models
Use Structured Outputs to get model responses that adhere to a JSON schema
Tailor to your use case
Adjust our models to perform specifically for your use case with fine-tuning, evals, and
distillation
Help center
Frequently asked account and billing questions
Developer forum
Discuss topics with other developers
: