ModelsListResponse - Python SDK

ModelsListResponse method reference

The Python SDK and docs are currently in beta. Report issues on GitHub.

List of available models

Fields

FieldTypeRequiredDescriptionExample
dataList[components.Model]✔️List of available models[
{"id": "openai/gpt-4","canonical_slug": "openai/gpt-4","name": "GPT-4","created": 1692901234,"description": "GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.","pricing": {"prompt": "0.00003","completion": "0.00006","request": "0","image": "0"},
“context_length”: 8192,
“architecture”: {"tokenizer": "GPT","instruct_type": "chatml","modality": "text-\u003etext","input_modalities": ["text"],"output_modalities": ["text"]},
“top_provider”: {"context_length": 8192,"max_completion_tokens": 4096,"is_moderated": true},
“per_request_limits”: null,
“supported_parameters”: [
“temperature”,
“top_p”,
“max_tokens”
],
“default_parameters”: null,
“knowledge_cutoff”: null,
“expiration_date”: null<br />}
]