Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesOpenAI API from A to ZChoosing an OpenAI model
Retries after a 429 error: each pause is twice as long, then successA workflow map: a Telegram message branches into command, voice and text and reaches the agentA form request lands in a spreadsheet row labelled “Complaint”
Course

OpenAI API from A to Z

Module 1 · API Basics
01SDK install and first call02Choosing an OpenAI model03Tokens, context, and cost
Module 2 · Chat Completions
04Developer messages, reasoning effort and sampling parameters05Structured Outputs and JSON Schema06Multimodality: vision, speech-to-text and voice
Module 3 · Assistants API v2
07From Assistants to Responses: conversation memory08File Search and vector store09Code Interpreter10Combining tools and tool_choice
Module 4 · Function Calling
11Function calling: the full cycle12Parallel function calls13Patterns: designing reliable functions
Module 5 · Production
14Streaming responses15Embeddings and semantic search16Production: limits, retries, monitoring
OpenAI API from A to Z · Lesson 2

Choosing an OpenAI model

GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna: when to use which, how to configure reasoning, what it costs and how to decide.

22 min readUpdated Nov 9, 20263 questions in quizReady prompt included

Model lineup (November 2026)

These are the four main text models OpenAI recommends on its Models page. All of them have a 1.05M-token context window, up to 128K output tokens, and accept text and images.

ModelIDUse it forreasoning effortPrice (in / out, $ per 1M tokens)
GPT-6 Astragpt-6-astramost capable: hard reasoning, code, research, long agentic taskslow … max$10 / $50
GPT-6.1 Solgpt-6.1-solbalance: near-Astra quality at a fifth of the pricelow … max, default medium$2 / $10
GPT-6.1 Terragpt-6.1-terrafast: image analysis, computer use, writingnone … max, default medium$1 / $5
GPT-6 Lunagpt-6-lunacheapest and fastest: classification, extraction, high volumenone … max, default medium$0.10 / $0.50

Prices change, so check them at developers.openai.com/api/docs/pricing. The orders of magnitude hold: Luna is roughly 100× cheaper than Astra.

There is no separate o-series any more. o1, o3-mini and o4-mini were shut down on 2026-10-23, and o3 shuts down on 2026-12-11. Reasoning is built into the main models and controlled with a parameter. gpt-4o and gpt-4o-mini are deprecated and shut down on 2027-01-14; their replacement is gpt-6-luna.

The rest of this lesson opens after a free sign-up

Sign up with email or Google: the first two lessons of every course stay open for good, and the whole catalog is open for 7 days. No card needed.

Sign up freeOr a trial lesson, no sign-up →
In this lesson
Model lineup (November 2026)How to chooseReasoning: what to configure in the APIPractical cost rule of thumbPracticeReady promptQuiz
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Get started free