Skip to main content

Best Model for This

Costs assume ~1K tokens input + ~500 tokens output per step.

Quick Start

Tips & Best Practices

  • Set temperature=0 — deterministic code generation reduces syntax errors and off-script behavior.
  • Include file context in system prompt — paste relevant file contents so the model knows your codebase structure.
  • All active models support tool calling — check supports_tools in /v1/models if adding new models.
  • Limit execution environment — sandbox run_python with a timeout and restricted imports for production agents.

Cost Estimate

Costs scale with context size — long files passed to the model increase input tokens significantly.

Next Steps