diff --git a/src/Form/AIImageAPI.php b/src/Form/AIImageAPI.php
index 6d84572..d9d00c5 100644
--- a/src/Form/AIImageAPI.php
+++ b/src/Form/AIImageAPI.php
@@ -31,7 +31,7 @@ class AIImageAPI extends ConfigFormBase
   protected function getEditableConfigNames()
    {  // Returns the names of the configuration objects that this form will edit.
 
-    return ['ai_images_api.settings'] ;
+    return ['ai_image_generation.settings'] ;
   }
 
 
@@ -61,7 +61,7 @@ class AIImageAPI extends ConfigFormBase
       '#required'=> true,
       '#type'=>'textfield',
       '#title' => $this->t('Organisation ID '),
-      '#default_value' => $this->config('ai_images_api.settings')->get('orgid'),
+      '#default_value' => $this->config('ai_image_generation.settings')->get('orgid'),
       '#description' => $this->t('This API key is required to interact with OpenAI services. Enter personal or organisation as per yourorganisation type. <br>To get your API key click here and sign up  <a href="@link" target="_blank">OpenAI website</a>.', ['@link' => 'https://openai.com/api']),
      ];
 
@@ -70,7 +70,7 @@ class AIImageAPI extends ConfigFormBase
       '#required'=> true,
       '#type'=>'textfield',
       '#title' => $this->t('API Key'),
-      '#default_value' =>$this->config('ai_images_api.settings')->get('apikey'),
+      '#default_value' =>$this->config('ai_image_generation.settings')->get('apikey'),
       '#description' => $this->t(' This API key is required to interact with OpenAI services. To get your API key click here <a href="@link" target="_blank">OpenAI website</a>.', ['@link' => 'https://openai.com/api']),
      ];
 
@@ -91,7 +91,7 @@ class AIImageAPI extends ConfigFormBase
 
   public function submitForm(array &$form, FormStateInterface $form_state)
   { // Save the submitted API Key and Organisation ID to configuration.
-    $this->config('ai_images_api.settings')
+    $this->config('ai_image_generation.settings')
       ->set('apikey', $form_state->getValue('apikey'))
       ->set('orgid', $form_state->getValue('orgid'))
       ->save();
diff --git a/src/Form/AIImageGenerate.php b/src/Form/AIImageGenerate.php
index fb88d9e..dce28aa 100644
--- a/src/Form/AIImageGenerate.php
+++ b/src/Form/AIImageGenerate.php
@@ -38,7 +38,7 @@ class AIImageGenerate extends FormBase
    */
   public function buildForm(array $form, FormStateInterface $form_state)
   {
-    $apikey  =  $this->config('ai_images_api.settings')->get('apikey');
+    $apikey  =  $this->config('ai_image_generation.settings')->get('apikey');
     $apistatus = empty($apikey)? true:false;
     $toalimg =4;
      //==========================  left side setting starts ========================
@@ -425,8 +425,8 @@ public function submitForm(array &$form, FormStateInterface $form_state)
   public function fetchimagebyAPI(  $imgmodel, $imgtext, $imgcount , $imgsize,$quality, $style )
   {
     $apiendpoint  = 'https://api.openai.com/v1/images/generations';
-    $apikey  =  $this->config('ai_images_api.settings')->get('apikey');
-    $orgidkey = $this->config('ai_images_api.settings')->get('orgid');
+    $apikey  =  $this->config('ai_image_generation.settings')->get('apikey');
+    $orgidkey = $this->config('ai_image_generation.settings')->get('orgid');
 
     // set the API parameters here
     $client= \Drupal::httpClient();
