You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/api-references/text-models-llm/google/gemini-3-flash-preview.md
+77-39Lines changed: 77 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This documentation is valid for the following list of our models:
16
16
17
17
## Model Overview
18
18
19
-
A fast multimodal LLM for low-latency chat and content generation, with strong reasoning and tool-use capabilities. Supports text input and optional image understanding for vision-based prompts.
19
+
A fast multimodal LLM for low-latency chat with strong reasoning and tool-use capabilities. Supports text input and optional image understanding for vision-based prompts.
20
20
21
21
## How to Make a Call
22
22
@@ -63,26 +63,30 @@ If you need a more detailed walkthrough for setting up your development environm
63
63
{% code overflow="wrap" %}
64
64
```python
65
65
import requests
66
+
import json # for getting a structured output with indentation
66
67
67
68
response = requests.post(
68
69
"https://api.aimlapi.com/v1/chat/completions",
69
70
headers={
70
-
"Content-Type":"application/json",
71
+
# Insert your AIML API Key instead of <YOUR_AIMLAPI_KEY>:
'revised_prompt':'Example output for documentation.'
145
+
"id":"gen-1765999996-ACx5YQHD6LKvBVhtfuIA",
146
+
"model":"google/gemini-3-flash-preview",
147
+
"object":"chat.completion",
148
+
"created":1765999996,
149
+
"choices": [
150
+
{
151
+
"logprobs":null,
152
+
"finish_reason":"stop",
153
+
"native_finish_reason":"STOP",
154
+
"index":0,
155
+
"message": {
156
+
"role":"assistant",
157
+
"content": "Learning Python is one of the best decisions you can make if you are interested in coding. It is famous for being \"beginner-friendly\" because its syntax looks a lot like English.\n\nHere is a step-by-step roadmap to go from zero to a functional Python developer:\n\n---\n\n### Step 1: Set Up Your Environment\nDon't get bogged down in complex tools yet.\n* **Download Python:** Go to [python.org](https://www.python.org/) and download the latest version.\n* **Pick an Editor:** \n * **Thonny:** Great for absolute beginners because it shows you what the computer is thinking.\n * **VS Code:** The industry standard. Flexible and powerful.\n * **Replit:** If you don't want to install anything, you can code directly in your browser.\n\n### Step 2: Master the Fundamentals\nDon't rush this part. These concepts are the \"LEGO bricks\" of every program:\n1. **Variables and Data Types:** Learn about strings (text), integers (numbers), and booleans (True/False).\n2. **Basic Math:** `+`, `-`, `*`, `/`, `%` (remainder).\n3. **Conditionals:** `if`, `elif`, and `else`. This is how programs make decisions.\n4. **Loops:** `for` and `while` loops. This is how you repeat tasks.\n5. **Functions:** How to wrap a block of code so you can use it over and over.\n6. **Data Structures:** Lists, Dictionaries, and Sets. These are how you store and organize data.\n\n### Step 3: Best Resources (mostly free)\n* **For the \"Reading\" Learner:** [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/) by Al Sweigart. It is free online and focuses on practical things you can actually use.\n* **For the \"Watching\" Learner:** \n * **Corey Schafer (YouTube):** The best deep-dive tutorials available.\n * **Programming with Mosh:** Good for a fast (1-6 hour) crash course.\n * **FreeCodeCamp:** Extensive 10-hour+ courses on YouTube.\n* **For the \"Interactive\" Learner:** \n * **University of Helsinki MOOC:** Arguably the best free Python course on the internet. It includes exercises that are graded automatically.\n\n### Step 4: Stop Watching, Start Doing\nThe \"Tutorial Hell\" trap is real—where you watch videos but can't write code on your own. To avoid this, build these tiny projects:\n* **Calculator:** Takes two numbers and adds/subtracts them.\n* **Number Guessing Game:** The computer picks a number and tells you if your guess is \"Higher\" or \"Lower.\"\n* **To-Do List:** Let the user add, delete, and view tasks in the terminal.\n* **Simple Web Scraper:** Pull the price of a product off a website.\n\n### Step 5: Choose a Specialization\nOnce you know the basics, Python branches out into different \"careers.\" Pick one:\n* **Data Science / AI:** Learn libraries like `Pandas`, `NumPy`, and `Scikit-learn`.\n* **Web Development:** Learn `Django` or `Flask` to build websites.\n* **Automation:** Use `Selenium` or `BeautifulSoup` to automate repetitive browser tasks.\n* **Game Dev:** Learn `Pygame`.\n\n### Key Tips for Success:\n1. **Code Every Day:** Even if it’s just for 15 minutes. Coding is a \"muscle memory\" skill.\n2. **Hand-write your code:** If you are struggling with a concept, write it out on a whiteboard or paper. \n3. **Don't memorize:** You don't need to memorize every command. Real developers Google things and use Documentation every single day.\n4. **Use AI wisely:** You can ask ChatGPT or Claude to \"Explain this line of code to me like I'm five.\" But **never** just copy-paste code you don't understand.\n\n**The Golden Rule:** The moment you finish a tutorial, try to change one thing in the code to see if you can make it do something different. That is when the real learning happens.",
0 commit comments