Bitcoin testnet is an alternative blockchain, used for testing. The coins on testnet don't have any value. The API is exactly the same.