> ## 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.

# Bottom solid image

<img height="200" src="https://mintlify.s3-us-west-1.amazonaws.com/contentify/images/bottom-solid-image.png" className="rounded-xl" />

### Body

Generate social media image post with text over solid background at the bottom of the image.

<ParamField body="size" type="string">
  Enter ratios 1:1 4:5 9:16 or 16:9
</ParamField>

<ParamField body="color" type="string">
  Use HEX color with or wothout alpha. Example: #ff0000 or #ff000080
</ParamField>

<ParamField body="font" type="string">
  Your desired font. Example: Arial
</ParamField>

<ParamField body="brand_name" type="string">
  Your brand name for watermark. Example: Contentify
</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>

<ParamField body="image" type="string">
  Your image URL or use "generated" to generate image from text
</ParamField>

<ParamField body="source" type="string">
  Source text to generate social media post from. Example: "Hello World"
</ParamField>

### Response

<ResponseField name="bottom_solid_image_post" type="string">
  The post URL.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X POST \
    <BASE_URL>/bottom-solid-image \
    -H 'Content-Type: application/json' \
    -H 'X-API-Key: YOUR_API_KEY' \
    -d '{
      "size": "4:5",
      "color": "#ff0000",
      "font": "Arial, sans-serif",
      "brand_name": "Laredo ER",
      "guidelines": "No political content",
      "theme": "light blue",
      "image": "generated",
      "source": "hello word"
  }'

  ```

  ```bash PHP theme={null}
  <?php
  $url = '<BASE_URL>/bottom-solid-image';
  $data = array(
      "size" => "4:5",
      "color" => "#ff0000",
      "font" => "Arial, sans-serif",
      "brand_name" => "Laredo ER",
      "guidelines" => "No political content",
      "theme" => "light blue",
      "image" => "generated",
      "source" => "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>/bottom-solid-image'
  headers = {
      'Content-Type': 'application/json',
      'X-API-Key': 'YOUR_API_KEY'
  }
  data = {
      "size": "4:5",
      "color": "#ff0000",
      "font": "Arial, sans-serif",
      "brand_name": "Laredo ER",
      "guidelines": "No political content",
      "theme": "light blue",
      "image": "generated",
      "source": "hello word"
  }

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

  ```

  ```bash JavaScript theme={null}
  const url = '<BASE_URL>/bottom-solid-image';
  const headers = {
      'Content-Type': 'application/json',
      'X-API-Key': 'YOUR_API_KEY'
  };
  const data = {
      "size": "4:5",
      "color": "#ff0000",
      "font": "Arial, sans-serif",
      "brand_name": "Laredo ER",
      "guidelines": "No political content",
      "theme": "light blue",
      "image": "generated",
      "source": "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}
  {
    "bottom_solid_image_post": "https://ai.contentify.app/some-image.jpg",
  }
  ```
</ResponseExample>

 

#

 

#

 
