GPT-5 nano
gpt-5-nanoRun GPT-5 nano in a hosted Python Task with structured output, web search and file inputs.
Ultra-efficient GPT-5 model optimized for high-volume, cost-sensitive applications. The fastest and most affordable option in the GPT-5 series.
What GPT-5 nano supports in qbash
- Structured outputReplies as JSON that matches a schema you pass.
- Web searchSearches the web while it answers.
- Reasoning effort4 levels, from minimal to high.
- Image inputReads WEBP, PNG, JPEG and GIF images.
- Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
- Prompt cachingRepeated input is billed at the cached rate.
What is qbash?
qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like GPT-5 nano only at the ones that need judgment, with integrations, memory and files available in the same script.
A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.
Specifications
- Context window
- 400Ktokens
- Max output
- 128,000tokens
Structured output with GPT-5 nano in a Python Task
qbash.ai.raw calls GPT-5 nano from a Task. Pass a JSON Schema as output_schema and the reply comes back as a Python dict that matches it, ready to route to a connector.
ticket = qbash.inputs.get("ticket")
triage = qbash.ai.raw(
f"Summarize this support ticket and rate its urgency:\n\n{ticket}",
model="gpt-5-nano",
output_schema={
"type": "object",
"properties": {
"summary": {"type": "string"},
"urgency": {"type": "string", "enum": ["low", "medium", "high"]},
},
"required": ["summary", "urgency"],
},
)
# triage is a dict, e.g. {"summary": "...", "urgency": "high"}
if triage["urgency"] == "high":
qbash.integrations.slack.create_message(
channel="#support",
text=triage["summary"],
)
qbash.output(triage)
Use GPT-5 nano with web search
Turn on Web Search in an inline prompt's model bar and GPT-5 nano searches the web while it answers. Searches are billed at $10.00 per 1,000.
Reasoning effort with GPT-5 nano
Set Effort to minimal, low, medium and high in the prompt's Settings. The default is medium. Higher effort spends more tokens on reasoning before the reply.
GPT-5 nano pricing
| Input | $0.05 per 1M tokens |
|---|---|
| Output | $0.40 per 1M tokens |
| Cached input | $0.005 per 1M tokens |
| Web search | $10.00 per 1K searches |
Standard rates in USD.
Supported file formats
Images
- WEBP up to 20 MB
- PNG up to 20 MB
- JPEG up to 20 MB
- GIF up to 20 MB
Documents
- TEXT
- DOC
- XLS
- RTF
- DOCX
- XLSX
- PPTX
- PPT
- ODT
- ODP
- ODS