Model Discovery
Query available models and their capabilities.
List Models
Endpoint: GET /models
curl "https://api.render.weyl.ai/models" \ -H "Authorization: Bearer $WEYL_API_KEY"Response
{ "models": [ { "family": "flux", "model": "dev2", "modality": "image", "tasks": ["t2i", "i2i"], "backends": ["nunchaku", "torch"], "default_backend": "nunchaku", "formats": ["1024", "512", "portrait", "landscape"], "status": "active", "info": { "parameters": "32B", "default_steps": 25, "guidance_range": [1.0, 5.0] } }, { "family": "flux", "model": "schnell", "modality": "image", "tasks": ["t2i"], "backends": ["nunchaku", "torch", "tensorrt"], "default_backend": "nunchaku", "formats": ["1024", "512", "portrait", "landscape"], "status": "active", "info": { "parameters": "12B", "fixed_steps": 4 } } ]}Filter by Family
curl "https://api.render.weyl.ai/models?family=flux" \ -H "Authorization: Bearer $WEYL_API_KEY"Filter by Modality
curl "https://api.render.weyl.ai/models?modality=video" \ -H "Authorization: Bearer $WEYL_API_KEY"Model Status
| Status | Meaning |
|---|---|
active | Available for use |
beta | Testing phase |
coming_soon | Announced, not yet available |
deprecated | Being phased out |
Use Cases
Dynamic Model Selection
import requests
def get_fastest_image_model(): resp = requests.get( 'https://api.render.weyl.ai/models?modality=image', headers={'Authorization': f'Bearer {API_KEY}'} )
models = resp.json()['models'] # Filter for schnell/turbo variants fast_models = [ m for m in models if 'schnell' in m['model'] or 'turbo' in m['model'] ]
return fast_models[0] if fast_models else models[0]