Add two input fields in add_settings_field

From the settings API,

add_settings_field(
    'my_first_field-id',
    'This is the setting title',
    'myprefix_setting_callback_function',
    'general',
    'myprefix_settings-section-name',
    array( 'label_for' => 'my_first_field-id' )
);
myprefix_setting_callback_function(){

  echo '<input type="text" name="my_first_field" value="'.get_option('my_first_field').'" />';
}