Wednesday, March 27, 2024

Sample PHP code for using Google Gemini API


Find below the sample PHP code that explains the use of Google Gemini API to create as web app as explained in this video.

 <?php

//Very Simple php code to explain about using Google Gemini API

$YOUR_API_KEY=""; //Generate API Key at Google AI studio and use it here.

$prompt="tell latest Tech news";

$json_data = '{

      "contents": [{

        "parts":[{

          "text":"'.$prompt.'"}]}]}';

$url="https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=$YOUR_API_KEY";

        

$response=run_curl($url,$json_data);

echo ($response);

 

function run_curl($url, $json_data)

{

  $ch = curl_init($url);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));

curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

$response = curl_exec($ch);

curl_close($ch);

return $response;

}

      ?>




Read more ...

Twitter Promotion using Google Gemini


Struggling to stand out on Twitter? Google AI's Gemini (formerly Bard) can be your secret weapon!

Spark Your Creativity:

  • Stuck for tweet ideas? Tell Gemini about your launch or service, and it'll generate catchy drafts to get you started.

Grab Attention with Images:

  • Eye-catching visuals are key. Gemini can help you create images that make your tweets pop.

Analyze the Competition:

  • Feeling left behind? Feed a competitor's tweet to Gemini. It can analyze their style and potentially generate a similar one for you, sparking new ideas.

Remember:

  • Gemini is still under development. Always review its outputs before posting to ensure your brand voice shines through and facts are accurate.

Unleash Your Twitter Potential:

With Gemini, you can unlock a world of creative content for Twitter. Brainstorm engaging tweets, generate visuals, and streamline your workflow. Don't forget to add your human touch, then watch your Twitter presence soar!


ChatGPT and and Google Gemini for Beginners

Read more ...

Tuesday, March 26, 2024

How to Use Google Gemini to Earn Money Online


Let us explore how Google Gemini can be a valuable tool for content creation, which can then be used to make money online.

While Gemini cannot directly generate income, here are some of the ways it can be used to create content that can help you earn money online:

  • Brainstorming content ideas: Having trouble coming up with new content ideas? Gemini can assist you in brainstorming blog posts, articles, social media content, and more.
  • Writing blog posts and ebooks: Gemini can help you write high-quality content in a fraction of the time. Simply provide it with a topic or outline, and it will generate drafts that you can edit and refine.
  • Creating marketing materials: Need help creating marketing copy, social media posts, or other marketing materials? Gemini can help you craft compelling content that will resonate with your target audience.
  • Summarizing news articles: Quickly catch up on the latest news by having Gemini summarize news articles for you. This can be a great way to stay informed and generate content ideas.
  • Translating content: Translate your content into multiple languages to reach a wider audience and increase your earning potential.

Gemini can be used to learn about web development and to create code. However, it is important to note that the code generated by Gemini should always be reviewed by a human expert before being used.

Overall, Gemini is a powerful tool that can be used to create a variety of content that can help you earn money online. However, it is important to be aware of the limitations of Gemini and to use it responsibly.

Here are some additional tips for using Gemini to earn money online:

  • Focus on creating high-quality content: The most important factor in earning money online is creating high-quality content that people want to read or watch. Gemini can be a valuable tool for helping you create this type of content, but it is still up to you to come up with good ideas and to edit and refine the content that Gemini generates.
  • Promote your content: Once you have created high-quality content, you need to promote it to your target audience. There are a number of ways to do this, such as social media marketing, search engine optimization (SEO), and email marketing.
  • Be patient: It takes time and effort to build a successful online business. Don't expect to get rich quick with Gemini. However, if you are willing to put in the work, Gemini can be a valuable tool for helping you achieve your financial goals.

Check this tweet  to get ChatGPT/Gemini Course for FREE by following a simple step.
Read more ...

Monday, March 25, 2024

GK Quiz Created by Google Gemini


Find below the sample GK Quiz Created by Google Gemini as explained in this video. The answers are NOT verified manually. If you want any wrong answer, inform it through the comment section.

And, if you want to see the actual GK Quiz with 200 manually created questions, you can check this link.
 
  1. The smallest unit of life is a:
    • Cell
    • Tissue
    • Organ
    • Organ System
  2. The process by which plants get energy from sunlight is called:
    • Respiration
    • Photosynthesis
    • Transpiration
    • Combustion
  3. The first country to develop an atomic bomb was:
    • United States
    • Soviet Union
    • Great Britain
    • Germany
  4. The Great Wall of China was built to:
    • Keep out invaders
    • Control trade routes
    • Mark the border of the empire
    • All of the above
  5. The highest mountain in the world is:
    • Mount Everest
    • K2
    • Kangchenjunga
    • Lhotse
  6. The largest desert in the world is:
    • Sahara Desert
    • Gobi Desert
    • Arabian Desert
    • Australian Desert
  7. (**This question will depend on current events. You can replace it with a sample question based on recent news**) Which country recently launched its first mission to Mars?
    • China
    • India
    • United Arab Emirates
    • Japan
  8. The currency of Japan is:
    • Euro
    • Dollar
    • Yen
    • Yuan
  9. The author of the famous play "Hamlet" is:
    • William Shakespeare
    • Charles Dickens
    • Jane Austen
    • J.K. Rowling
  10. What is the capital of India?
    • Mumbai
    • Delhi
    • Kolkata
    • Chennai
  11. The rings of Saturn are primarily composed of:
    • Ice and rock
    • Gas and dust
    • Molten metal
    • Organic material
  12. The internet was originally developed for:
    • Commercial purposes
    • Academic research
    • Social networking
    • Military communication
  13. The world's first successful heart transplant was performed in:
    • South Africa
    • United States
    • Soviet Union
    • France
  14. The Great Barrier Reef is the world's largest:
    • Ocean
    • Forest
    • Coral reef system
    • Mountain range
  15. What is the scientific name for a common house cat?
    • Felis domesticus
    • Canis lupus familiaris
    • Equus caballus
    • Ursus arctos
Read more ...

Sunday, March 24, 2024

Good opportunity to earn money using the high-demand for ChatGPT/Gemini courses


We all know that AI tools like ChatGPT and Gemini are becoming part of our lives. So, irrespective of whether you like them or not, you need to be familiar with them to survive in the job market as well as in the business world. So, a lot of people are showing interest in joining courses to learn ChatGPT and Gemini.

I have published a Udemy course to teach chatGPT and Gemini. But Udemy won't allow us to reduce the price drastically. It has a certain minimum price. So I published the same course on my Gumroad-based e-commerce website also. You can access it at https://www.rajamanickam.com/l/ai  and can get a huge discount using the discount code QPT.

Apart from getting this course at an affordable price, you can earn significant money by referring it to your friends by joining as an affiliate.



I am offering a 50% commission to the affiliates. I use the Gumroad affiliate system to give commissions for selling my products.  Read about Gumroad affiliates FAQ here. If you are interested, contact me rajamanickam.a@gmail.com after creating your Gumroad account. Let me know if you have any questions. I believe it is a huge opportunity to earn money online considering the huge demand for these kinds of courses.


Read more ...

Search This Blog