openai/gpt-5-nano
$0.05
Input / 1M
$0.40
Output / 1M
400K
Context
—
Speed
Capabilities
json_modetoolsvision
Input modalities: text, image, file
Use gpt-5-nano via Relay
Configure the model alias in YAML, then call it from Python.
YAML
# models.yaml
version: 1
models:
gpt:
target: openai/gpt-5-nano
credential: $env.OPENAI_API_KEYPython
from relay import Hub
async with Hub.from_yaml("models.yaml") as hub:
resp = await hub.chat(
"gpt",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.text, resp.cost_usd)pip install ai5labs-relay · full docs on GitHub