List Available Models

The list_models() method allows you to explore the diverse range of AI models available on Mira Network.

Example

from mira_network import MiraClient

async def explore_models():
    async with MiraClient(api_key="your-api-key") as client:
        # Get list of available models
        models = await client.list_models()
        print("Available models:", models)

        # Get detailed information about models
        for model in models:
            print(f"\nModel: {model}")
            # You can use this model ID in chat_completions_create()

Response Structure

[
    "gpt-4o",
    "claude-3.5-sonnet",
    "llama-3.3-70b-instruct",
    // ... other available models
]

Usage Notes

  • Check available models before making completion requests
  • Different models may have different capabilities and pricing
  • Model availability may vary based on your subscription tier