List Models

List Available Models

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

Copy

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()

arrow-up-rightResponse Structure

Copy

  • Check available models before making completion requests

  • Different models may have different capabilities and pricing

  • Model availability may vary based on your subscription tier

Last updated