Where can I find API key?

You are populating the SSO settings in WP right?. These are at WP-sitename/wp-admin/admin.php?page=wp_discourse_options

The API key needs to be generated at Discourse-sitename/admin/api/keys then you can copy the value of the key from the Discourse site to the setting on the WP site.

The SSO secret is similar, see @simon’s excellent instructions.