# New Formlabs Local API examples: speedrun.py and print dialog

**URL:** <https://forum.formlabs.com/t/new-formlabs-local-api-examples-speedrun-py-and-print-dialog/41047>\
**Category:** Developers\
**Created:** [December 20, 2024, 6:25pm UTC](https://forum.formlabs.com/t/new-formlabs-local-api-examples-speedrun-py-and-print-dialog/41047 "2024-12-20T18:25:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hype](https://avatars.discourse-cdn.com/v4/letter/h/b9e5f3/32.png) [@hype](https://forum.formlabs.com/u/hype)\
**Post date:** [December 20, 2024, 6:25pm UTC](https://forum.formlabs.com/t/new-formlabs-local-api-examples-speedrun-py-and-print-dialog/41047/1 "2024-12-20T18:25:28Z")

</div>

Two new examples were added for the Formlabs Local API using the API Python library:

1. [speedrun.py](https://github.com/Formlabs/formlabs-api-python/blob/main/examples/speedrun.py)  
An example of using the Local API and the new Print Settings Editor capabilities to make variations of a .form file with print settings changes that increase print time (at the possible risk of decreasing print quality or print success). [This demo](https://youtu.be/cBcEFoWeENY?si=36u2P1CCdRhodBTx&t=2424) was shown during the keynote for the Form 4L and Developer Platform launch.
2. [Reference Print Dialog Implementation](https://github.com/Formlabs/formlabs-api-python/tree/main/examples/print-dialog)  
An example showing how an integration could build Formlabs printer and print setting selection into an external application. For example, if a 3D modeling application already had a printable model and wanted to add a “Print” button into the application without launching PreForm. The code is meant to be a reference implementation: it shows what sorts of API calls and how they could be used to create UI elements, but we assume real integrations would reimplement the code within their existing application.
