Models

View as Markdown

Models

1all_models = client.models.list()
2free = client.models.free()
3paid = client.models.paid()
4
5for m in paid[:5]:
6 print(
7 f"{m.id}: prompt ${m.pricing.prompt_usd_per_1k}/1k, "
8 f"completion ${m.pricing.completion_usd_per_1k}/1k"
9 )

Free models (is_free=True) cost $0 for both prompt and completion, useful for testing and light tasks. Paid models charge per token against your account balance.