Recommend the Best Model for a Task
replicate_recommend_modelRank curated AI models by speed, cost, quality, or balanced priority. Get top 5 recommendations with cost estimates and reasoning to pick the right model for your task.
Instructions
Rank the curated models in a category by a priority (speed, cost, quality, or balanced) and return recommendations with cost estimates and reasoning. This does NOT run anything — it advises which model to use.
Workflow: call this to pick a model, then call the matching generate tool (e.g. replicate_generate_image) with model set to the recommended key.
Args:
category (required): One of image, video, audio, tts, llm, vision, upscale, bg, stt, inpaint, segment, embed, voiceclone, threed, lipsync.
priority (default "balanced"): "speed" (fastest), "cost" (cheapest), "quality" (best), or "balanced" (weighted).
task_description (optional): Free text. Keyword hints like "quick draft" or "professional logo" nudge balanced ranking.
max_cost_usd (optional): Exclude models estimated above this cost.
duration_seconds (optional, 1–600): For per-second-priced categories (video, audio), used in cost estimation.
Returns structuredContent: { category, priority, recommendations: [{ key, model_id, speed, est_cost_usd, score, reason }], // top 5 count }
Examples:
category="image", priority="speed" → flux-schnell first
category="image", priority="quality" → highest-fidelity model first
category="video", priority="cost", duration_seconds=5 → cheapest per-5s clip
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | Yes | Which model category to recommend within. | |
| priority | No | Optimization target. speed=fastest, cost=cheapest, quality=best, balanced=weighted blend. Default: balanced. | balanced |
| max_cost_usd | No | Optional cap — exclude models whose estimated cost exceeds this. Models with unknown pricing are always included regardless of this cap. | |
| duration_seconds | No | For per-second-priced categories (video, audio), the expected duration used in cost estimation. | |
| task_description | No | Optional task description. Keyword hints (e.g. 'quick draft' or 'professional logo') nudge balanced-mode ranking. |