Model Selection Guide
Every generation request on ModelsLab requires amodel_id parameter that tells the API which AI model to use. With 50,000+ models available, this guide helps you discover and choose the right one.
How model_id Works
Themodel_id is a string identifier you pass in your API request body. It determines which model processes your generation.
Three Ways to Discover Models
1. API: Models Endpoint
Query the models API to search programmatically:2. CLI: modelslab models
The CLI provides rich model discovery commands:3. Web: Model Browser
Browse and filter all models visually at modelslab.com/models.Models by Category
Image Generation
Use with/api/v7/images/text-to-image, /api/v7/images/image-to-image, and /api/v7/images/inpaint.
For image-to-image and inpainting with SD/SDXL models (e.g.,
midjourney), include the scheduler parameter. Flux models don’t require it.Video Generation
Use with/api/v7/video-fusion/text-to-video and /api/v7/video-fusion/image-to-video.
Video generation is asynchronous. The API returns a
processing status with an id — use /api/v7/video-fusion/fetch/{id} to poll for results.Audio & Voice
Use with/api/v7/voice/* endpoints.
LLM / Chat
Use with/api/v7/llm/chat/completions (OpenAI-compatible format).
The chat completions endpoint accepts both
model_id and model (OpenAI-compatible alias). The messages array follows the standard OpenAI format.Code Examples
Image Generation (Python)
Chat Completion (Python)
Chat Completion (OpenAI SDK Compatible)
CLI Examples
Tips for Choosing the Right Model
- Start with popular models —
fluxfor images,meta-llama-3-8B-instructfor chat - Use feature filters —
modelslab models search --feature imagennarrows results - Check model details —
modelslab models detail --id <model_id>shows supported parameters - Consider provider — models from different providers (Google, Meta, ElevenLabs) have different capabilities and pricing
- Test with small requests first — use low resolution/token counts while experimenting
Resources
- Model Browser — Visual model discovery
- API Reference — Full endpoint documentation
- CLI Installation — Install the CLI tool

