Use Gemini 2.0 Flash (google/gemini-2.0-flash-001).
GPT-5 Mini is overkill here.
~8.3× cheaper per run.
GPT-5 Mini is overkill here.
~8.3× cheaper per run.
This task is bounded and predictable, so a smaller model handles it without leaving quality on the table. Reaching for a larger tier here adds cost faster than it improves the output.
| Model | Provider | Tier | Input cost | Output cost | Est. / 1k calls |
|---|---|---|---|---|---|
| Gemini 2.0 Flash google/gemini-2.0-flash-001 | Routine | $0.000100 | $0.000400 | $0.15 | |
| GPT-5 Mini openai/gpt-5-mini | Openai | Moderate | $0.000250 | $0.002000 | $1.25 |
This recommendation is based on the task description alone. If you are attaching a large codebase, mention it in the input above.
Model pricing: OpenRouter model catalog, retrieved April 17, 2026. Classification: rightmodel ruleset v2.
Draft an OpenAPI example for a known endpoint shape, fields, and sample response.
Use Gemini 2.0 Flash.
Clean up a JSON payload for readability, validation, or quick inspection during development.
Use Gemini 2.0 Flash.
Convert a JavaScript module to TypeScript while preserving exports, behaviour, and type safety.
Use GPT-5 Mini.