Model chooser / Classify, tag or extract data / Recurring
Tagging every inbound lead or ticket is a high-volume, low-difficulty job where cost per call decides the model. OpenAI built Luna for exactly that, it is in the lowest cost tier of any current flagship family, and strict JSON schemas keep the output machine-readable.
Why GPT-5.6 Luna
json_schema format with strict: true guarantees every response matches your schema, so no row breaks the import.How to use it
OpenAI Responses API, TypeScript
Edit the parts in capitals, then run it.
import OpenAI from "openai";
const openai = new OpenAI(); // reads OPENAI_API_KEY
export async function tagLead(lead: string) {
const res = await openai.responses.create({
model: "gpt-5.6-luna",
input: [
{ role: "system", content: "Classify the lead. Industry definitions: SaaS = sells software on subscription; ADD THE REST. Use only facts in the input." },
{ role: "user", content: lead },
],
text: {
format: {
type: "json_schema",
name: "lead_tags",
strict: true,
schema: {
type: "object",
properties: {
industry: { type: "string", enum: ["SaaS", "Fintech", "Healthcare", "Ecommerce", "Agency", "Other"] },
company_size: { type: "string", enum: ["1-10", "11-50", "51-200", "201-1000", "1000+", "unknown"] },
confidence: { type: "string", enum: ["high", "low"] },
},
required: ["industry", "company_size", "confidence"],
additionalProperties: false,
},
},
},
});
return JSON.parse(res.output_text);
}
Alternatives that also work
Pick it when the inputs are images, PDFs or audio, or the rows need more reasoning than a label. It is also in the low cost tier.
Pick it when you want the lowest price on a hosted API and can batch work into off-peak hours, when DeepSeek charges half.
Pick it when data must stay in your cloud account. Apache 2.0, only 3.8B parameters active per token, so it is fast on one GPU.
Watch out for
Sources
Checked . Models change monthly; we re-check this page when they do.
Wiring it into a workflow that runs every week, with evals, fallbacks and a cost you can predict, is the work. Fifteen minutes, no deck.