> ## Documentation Index
> Fetch the complete documentation index at: https://dev.contentify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Blog Images

> Generate image for your blog posts with ease.

<ParamField body="text" type="string">
  Source text to generate blog post image from.
</ParamField>

<ParamField body="guildlines" type="string">
  Any guildlines to consider while generating the post. Example: No political posts
</ParamField>

<ParamField body="theme" type="string">
  Your desired theme for image generation. Example: light blue
</ParamField>

### Response

<ResponseField name="generated_image" type="string">
  The blog image URL.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST \
    <BASE_URL>/blog-image \
    -H 'Content-Type: application/json' \
    -H 'X-API-Key: YOUR_API_KEY' \
    -d '{
      "guidelines": "No political content",
      "theme": "light blue",
      "text": "hello word"
  }'

  ```

  ```bash PHP theme={null}
  <?php
  $url = '<BASE_URL>/blog-image';
  $data = array(
      "guidelines" => "No political content",
      "theme" => "light blue",
      "text" => "hello word"
  );

  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
  curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
  curl_setopt($ch, CURLOPT_HTTPHEADER, array(
      'Content-Type: application/json',
      'X-API-Key: YOUR_API_KEY'
  ));

  $response = curl_exec($ch);
  curl_close($ch);

  echo $response;
  ?>

  ```

  ```bash Python theme={null}
  import requests

  url = '<BASE_URL>/blog-image'
  headers = {
      'Content-Type': 'application/json',
      'X-API-Key': 'YOUR_API_KEY'
  }
  data = {
      "guidelines": "No political content",
      "theme": "light blue",
      "text": "hello word"
  }

  response = requests.post(url, headers=headers, json=data)
  print(response.json())

  ```

  ```bash JavaScript theme={null}
  const url = '<BASE_URL>/blog-image';
  const headers = {
      'Content-Type': 'application/json',
      'X-API-Key': 'YOUR_API_KEY'
  };
  const data = {
      "guidelines": "No political content",
      "theme": "light blue",
      "text": "hello word"
  };

  fetch(url, {
      method: 'POST',
      headers: headers,
      body: JSON.stringify(data)
  })
  .then(response => response.json())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));

  ```
</RequestExample>

<ResponseExample>
  ```json Response theme={null}
  {
    "generated_image": "https://ai.contentify.app/some-image.jpg",
  }
  ```
</ResponseExample>

 

#

 

#

 
