use api_base from core/config