GPT-4o
openai/chatgpt-4o-latestRun GPT-4o in a hosted Python Task with file inputs.
OpenAI's versatile, high-intelligence flagship model via OpenRouter. Accepts text and image inputs with balanced performance across diverse tasks.
This model is deprecated and not recommended for new projects.
What GPT-4o supports in qbash
- 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-4o 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
- 128Ktokens
- Max output
- 16,384tokens
- Temperature
- 0 to 2default 1
Use GPT-4o in a Python Task
qbash.ai.raw calls GPT-4o from a Task and returns its reply as a string.
notes = qbash.inputs.get("notes")
summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="openai/chatgpt-4o-latest",
system="You are a concise analyst.",
)
qbash.output({"summary": summary})
GPT-4o pricing
| Input | $2.50 per 1M tokens |
|---|---|
| Output | $10.00 per 1M tokens |
| Cached input | $1.25 per 1M tokens |
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