Hi Leo,
Yes, you are right. ArcGIS Online Network Analysis Services require an ArcGIS Online subscription. Each successful request to the service incurs service credits which are taken from your subscription. More information regarding this can be found at Accessing Services topic of the Network Analysis Services documentation.
You can check this Flex API link about Directions:
https://developers.arcgis.com/en/flex/guide/directions.htm