How do I programatically create a Bean 'instance' in code?
Creating bean instance programmatically.
https://drupal.org/node/1436186

&lt;?php
  $bean = bean_create(array('type' =&gt; 'my_bean_type'));
  $bean-&gt;label = 'Administrative Label';
  $bean-&gt;title = 'Bean Title';
  $bean-&gt;delta = 'bean-machine-name';
  $bean-&gt;field_block_content = array(
    'en' =&gt; array(array(
      'value' =&gt; '&lt;p&gt;Text&lt;/p&gt;',
      'format' =&gt; 'wysiwyg_editor',
    )),
  );
  $bean-&gt;save();
?&gt;