API mode Framework

Add API mode Framework