For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

API Platform

Developer quickstart

Make your first API request in minutes. Learn the basics of the OpenAI platform.

import OpenAI from "openai";
const client = new OpenAI();

const response = await client.responses.create({
  model: "gpt-6-astra",
  input: "Write a short bedtime story about a unicorn.",
});

console.log(response.output_text);

Build paths

Start building