# openai/openai-quickstart-python

Python example app from the OpenAI API quickstart tutorial

Repository: https://github.com/openai/openai-quickstart-python
Canonical: https://ross.abutalabs.com/products/openai-quickstart-python
Homepage: https://platform.openai.com/docs/quickstart?context=python
License: MIT
License Family: permissive
Topics: openai, openai-api
Last push: 2024-06-14T11:24:57+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 1737, "days_push": 810, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1815, forks 1346 (observed 2026-08-28T04:05:39.888314+00:00)

## What it is
A collection of Python example apps demonstrating how to use the OpenAI API across endpoints like chat and assistants, hosted as the companion repo to the OpenAI API quickstart tutorial. It shows basic setup with the OpenAI Python SDK, environment variable configuration, and running simple scripts or Flask apps.

## Use cases
- learn how to call the openai api from python
- get started with gpt api quickstart
- example code for openai chat completions
- set up openai python sdk with api key
- build a simple flask app using openai api
- try openai assistants api examples

## When to choose
- you are new to the OpenAI API and want runnable starter code in Python
- you want minimal examples of chat or assistants endpoints to copy from
- you are following the official OpenAI quickstart tutorial

## When to avoid
- you need a production-ready application or framework
- you want examples in a language other than Python
- you need comprehensive coverage of every OpenAI API feature

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: sdk, developer-tools, chatbot
- domain: large-language-models, artificial-intelligence, tutorials, developer-tools
- platform: python, cross-platform
- tags: openai-api, quickstart, example-apps, gpt, flask, sample-code

## Member repositories
- openai/openai-quickstart-python (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:39.888314+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:20:39.223333+00:00, confidence not recorded.
  - readme: https://github.com/openai/openai-quickstart-python (fetched 2026-08-28T04:05:39.888314+00:00, sha 9aea86887d4c)
  - homepage: https://platform.openai.com/docs/quickstart?context=python (fetched 2026-08-29T11:00:01.564089+00:00, sha 8f592486a220)
  - site_page: https://developers.openai.com/api/docs (fetched 2026-08-29T11:00:01.574645+00:00, sha d617c5215f2a)
  - site_page: https://developers.openai.com/api/docs/models (fetched 2026-08-29T11:00:01.584406+00:00, sha 863d6abfa5b5)
  - site_page: https://developers.openai.com/api/docs/guides/agents (fetched 2026-08-29T11:00:01.587052+00:00, sha 41a4ac92d6db)
  - site_page: https://developers.openai.com/api/docs/guides/tools (fetched 2026-08-29T11:00:01.589588+00:00, sha 3dbb9651c6d5)
  - site_page: https://developers.openai.com/api/docs/guides/realtime (fetched 2026-08-29T11:00:01.592769+00:00, sha d0c30e183887)
  - site_page: https://developers.openai.com/api/docs/guides/production-best-practices (fetched 2026-08-29T11:00:01.595480+00:00, sha e0ae71fd86d1)
  - site_page: https://developers.openai.com/codex (fetched 2026-08-29T11:00:01.577789+00:00, sha 54ab8ad10fb3)
  - site_page: https://developers.openai.com/learn (fetched 2026-08-29T11:00:01.580400+00:00, sha caed4ecaebe4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
