For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocsAPI ReferenceSDKs
DocsAPI ReferenceSDKs
      • Overview
      • Chat Completions
      • Prompt Templates
      • Files & Batches
      • Embeddings
      • Image Generation
      • Responses (Reasoning)
      • Compare (Multi-model)
      • Models
      • Error Handling
LogoLogo
On this page
  • Models
Python SDK

Models

||View as Markdown|
Was this page helpful?
Edit this page
Previous

Compare (Multi-model)

Next

Error Handling

Built with

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.