from getpass import getpass
from openai import OpenAI

key = getpass("OpenAI API key (hidden as you type): ")
model = input("Model ID you have access to: ").strip()
if not key or not model:
    raise SystemExit("An API key and a model ID are required.")
client = OpenAI(api_key=key)
response = client.responses.create(
    model=model,
    input="Say a short hello.",
    max_output_tokens=256,
)
print(response.output_text)
