Is payment required to run the below code?

from smolagents import ToolCallingAgent, DuckDuckGoSearchTool, InferenceClientModel

agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=InferenceClientModel())

agent.run(“Search for the best music recommendations for a party at the Wayne’s mansion.”)

1 Like

It depends. You have $0.10 in included credits. If you’re running it for the first time, it should work using your free credits.
After that you’ll see the following error:
You have exceeded your monthly included credits for Inference Providers. Subscribe to PRO to get 20x more monthly included credits.

1 Like

yes this is the exact error message i am getting, so I have to subscribe to a monthly plan? Is this not free?

1 Like

The inference part isn’t free, but if you have a local model, you can try something like this:

1 Like

I just tried it with Qwen3-8B. It didn’t produce the correct final answer, but it seems it works.

╭────────────────────────────────── New run ───────────────────────────────────╮
│                                                                              │
│ How many seconds would it take for a leopard at full speed to run through    │
│ Pont des Arts?                                                               │
│                                                                              │
╰─ LiteLLMModel - ollama_chat/qwen3 ───────────────────────────────────────────╯
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step 1 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ─ Executing parsed code: ─────────────────────────────────────────────────────
  bridge_length = web_search(query="Pont des Arts length in meters")
  print("Pont des Arts length:", bridge_length)
  leopard_speed = web_search(query="leopard maximum speed in meters per
  second")
  print("Leopard speed:", leopard_speed)
 ──────────────────────────────────────────────────────────────────────────────
Code execution failed at line 'bridge_length = web_search(query="Pont des Arts
length in meters")' due to: DuckDuckGoSearchException:
https://html.duckduckgo.com/html 202 Ratelimit
[Step 1: Duration 23.81 seconds| Input tokens: 2,056 | Output tokens: 326]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step 2 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ─ Executing parsed code: ─────────────────────────────────────────────────────
  bridge_length = web_search(query="Pont des Arts bridge length in meters")
  print("Pont des Arts length:", bridge_length)
  leopard_speed = web_search(query="leopard maximum speed meters per second")
  print("Leopard speed:", leopard_speed)
 ──────────────────────────────────────────────────────────────────────────────
Execution logs:
Pont des Arts length: ## Search Results

[Pont des Arts - Wikipedia](https://en.wikipedia.org/wiki/Pont_des_Arts)
Total length: 155 m (509 ft) Width: 11 m (36 ft) History; Construction start:
1981: Construction end: 1984: Statistics; Toll: Free both ways: Location; The
Pont des Arts ... and she tells him that the bridge for La Maga is the "Ponts
des Arts". In 1991, UNESCO listed the entire Parisian riverfront, from the
Eiffel Tower to the end of the Île ...

[7 Beautiful BRIDGES in Paris (You Have To
See!)](https://travelingparis.com/bridges-in-paris/)
Pont des Arts in Paris. The current bridge has an iconic design with seven
arches, and it has a total length of 155 meters. Pont des Arts was a film
location for various TV series and movies. For example, a scene in the movie Now
You See Me was filmed on the bridge.

[Bridges in Paris - 10 Most Famous -
Artst](https://www.artst.org/bridges-in-paris/)
It has a total length that spans 160 meters, equal to about 520 feet. This
historical Parisian bridge is 40 meters wide, which is about 130 feet. ... They
completed construction on the Pont des Arts Bridge as a pedestrian bridge across
the Seine river in Paris. The French Ministry of Culture added the Pont des Arts
Bridge to its national ...

[Pont des Arts, Paris, France -
LatLong](https://www.latlong.net/place/pont-des-arts-paris-france-32945.html)
Pont des Arts, Paris, France. Latitude and longitude coordinates are: 48.858334,
2.337369. Pont des Arts is a scenic pedestrian bridge over the Seine River in
Paris, France. The bridge connects the Musée du Louvre and the Institut de
France. It has a length of 155 m (509 ft) and a width of 11 m (36 ft). It was
constructed between 1981 and 1984.

[Bridge of Lovers - Pont des Arts -
Pariste.Net](https://www.pariste.net/en/lovers-bridge-pont-des-arts/)
This name, which we can translate as "Bridge of Arts" or "Bridge of Arts", comes
from the Pont des Amoureux (Pont des Amoureux) ... Firstly 1884in Napoleon
Bonaparte made in time 155 meters This bridge with a length of Seine River on
you first metal bridgeIt was yummy.

[Lock bridge in Paris: past and present -
Tripadvisor](https://www.tripadvisor.com/Articles-lztptsIO1O4A-Paris_bridge_of_l
ocks_past_and_present.html)
The Paris bridge of locks that we are familiar with today is made out of steel
and was designed by town planner Louis Arretche. Inaugurated by President
Jacques Chirac in 1984, the modern Pont des Arts runs 155 meters long and 11
meters wide with a wooden platform furnished with benches and lined with
lampposts.

[34 Bridges of Paris - A View On
Cities](https://aviewoncities.com/paris/paris-bridges)
The bridge measures 8 meters in width and 120 meters in length. It was built by
architect Jean Résal and engineer Amédée Alby, the same duo that created the
famous Pont Alexandre III. # 2 of 34 Passerelle des Arts (aka Pont des Arts) The
Passerelle des Arts (bridge of the arts) was built between 1981 and 1984 after
the original structure ...

[18 Famous Bridges In France You Must Visit -
FrenchWin](https://frenchwin.com/famous-bridges-in-france/)
3. Pont des Arts - Paris Source : @tourdumonde-insta. Type of bridge: Pedestrian
metal bridge; Length & Height: 155 m; Country: France; Region: Île-de-France;
City: Paris; District (Arrondissement): 06Description & History: Also known as
the Bridge of Arts, it connects the Institute of France and the Louvre Museum.It
is a pedestrian metal bridge built in the 19th century.

[Pont des Arts - The Love
Bridge](https://www.tourdefrance-bridges.com/post/pont-des-arts-the-love-bridge)
The Pont des Arts was the first cast iron bridge in France and it paved the way
for the increasing use of cast iron in construction. ... The original bridge had
9 arches, was 155m in length and 11m wide and was made using cast iron. The
number of arches was then reduced to 8 in 1952 due to the amalgamation of the
two left-most arches.

[Pont des Arts Map - Bridge - Paris, Île-de-France, France -
Mapcarta](https://mapcarta.com/29198828)
The Pont Neuf is the oldest standing bridge across the river Seine in Paris,
France. Pont Neuf is situated 330 metres east of Pont des Arts.
Leopard speed: ## Search Results

[How Fast Can a Leopard Run? It's Slower than Most of Its
Prey](https://africafreak.com/how-fast-can-a-leopard-run)
African leopards have a top speed of 56-60 km/h (35-37 mph). That's
significantly slower than cheetahs and lions, as well as being slower than a lot
of its prey. But this top speed isn't the full story. The leopard is one of the
greatest predators on the African savannah and speed is just one piece of its
hunting prowess.

[How Fast Can a Leopard Run? A Fascinating Look at Their
Speed](https://tiger-universe.com/blogs/tiger-blog/how-fast-can-a-leopard-run)
The Incredible Speed of a Leopard: How Fast Can a Leopard Run? Leopards are
known for their ability to sprint quickly in just a few steps. To really
understand their speed, we need to explore how fast can a leopard run and their
agility during the hunt. ... Top Speed (mph) Sprint Distance (meters) Leopard:
36: 200: Cheetah: 75: 460-500: Tiger ...

[How Fast Are Leopards? Top Speeds and How It Compares ... - AZ
Animals](https://a-z-animals.com/blog/how-fast-leopards-top-speeds-how-compares-
other-big-cats/)
Tigers can run between 30-40 miles per hour, and lions 50 miles per hour. Snow
leopards are not much faster than their "regular" leopard relatives, maxing out
at around 40 miles per hour. How Fast is a Leopard Compared to a Human? The
fastest human runner, Usain Bolt, maxes out at 27.5 miles per hour.

[Physiology, behavior and speed of the leopard: interesting facts from
...](https://en.atomiyme.com/physiology-behavior-and-speed-of-the-leopard-intere
sting-facts-from-the-world-of-wildlife-and-familiarity-with-the-sea-namesake/)
But this is the maximum. The females are smaller, lower and "lighter" - about a
third. Looking at this cat, you can guess about her physical strength. The speed
of the leopard reaches 60 km / h. High strong paws and a flexible structure
allows these animals to quickly gain such dynamics. The average speed of a
leopard is 16-18 meters per second.

[Top 20 fastest animals in Africa - Which animal is faster on
land?](https://africafreak.com/fastest-african-animals)
Spoiler alert: 19 out of 20 outrun Usain Bolt over 100 meters! ... Leopard. The
leopard's combination of exquisite beauty, physical prowess, ... Not saying that
the ostrich's speed is wrong (between 70 and 80 km per hour), but for me the
gazelle is the second fastest animal. It can run at 90 km/h.

[The World's Fastest Animals on Land - The Travel
Almanac](https://www.thetravelalmanac.com/lists/animals-speed.htm)
Average Speed v Maximum Speed. ... They can reach average race speeds in excess
of 18 metres per second (59 feet per second) or 63 kilometers per hour (39 ...
On June 20, 2012, 11 year old Sarah the cheetah shattered the world record for
the standing 100-meter dash, clocking a time of 5.95 seconds. That is an average
of 38 miles per hour (61 km ...

[Speed of Animals](https://www.speedofanimals.com/)
Loxodonta africana top speed 24.9 mph feels like 6.5 mph African Wild Dog Lycaon
pictus top speed 45 mph feels like 81.1 mph black mamba Dendroaspis polylepis
top speed 20 mph feels like 10.6 mph Brown Bear Ursus arctos top speed 21.7 mph
feels like 15.7 mph cheetah Acinonyx jubatus top speed 74.6 mph feels like 99.4
mph coyote Canis latrans ...

[The fastest land animals - Our
Planet](https://ourplnt.com/fastest-land-animals/)
His absolute fastest recorded speeds (between individual strides) during that
sprint were 13.2 meters/second (29.55 mph/47.52 km/h) between strides during the
50 m to 70 m intervals. Average overall maximum speeds over this 20 m section of
the race (where max speed is reached during approx. the middle) to 75 m were
44-45 km/h (28 mph) before ...

[Unraveling the Speed of Leopards: How Fast Can They Actually
Run?](https://startingrun.com/unraveling-the-speed-of-leopards-how-fast-can-they
-actually-run/)
Environmental and situational factors, including terrain, prey's size and speed,
climatic conditions, fatigue, age, and health, significantly influence the
leopard's speed. Compared to other big cats such as lions, cheetahs, jaguars,
and tigers, leopards hold a respectable position with a top speed of 58 km/h (36
mph), showcasing a ...

[Leopard Size | KnowSize](https://www.knowsize.com/animal-leopard-size)
Leopard size: Weight: 28-90 kg [Males weigh 37-90 kg (82-198 lb), females weigh
28-60 kg (62-132 lb)],Height: 57-70 cm [Males stand 60-70 cm (24-28 in) at the
shoulder; females are 57-64 cm (22-25 in) tall],Length: 90-190 cm [90-190 cm
(35-75 in). ... Maximum speed: Top speed is 45 kmph (30 mph) The Leopard is a
member of ...

Out: None
[Step 2: Duration 27.81 seconds| Input tokens: 4,387 | Output tokens: 790]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step 3 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Error in code parsing:
Your code snippet is invalid, because the regex pattern
```(?:py|python)?\s*\n(.*?)\n``` was not found in it.
            Here is your code snippet:
            <think>
Okay, let's tackle this problem. The user has provided two sets of search
results: one about the Pont des Arts bridge in Paris and another about leopard
speeds. The task is to determine the correct answer based on the information
given.

First, I need to figure out what the actual question was. Since the user
mentioned "Last output from code snippet: None," it's possible that the original
question was about either the bridge's length or the leopard's speed. But since
the user hasn't explicitly stated the question, I'll have to infer based on the
provided data.

Looking at the search results for the Pont des Arts bridge, multiple sources
mention its length. For example, several entries state the bridge is 155 meters
long. However, one source mentions 120 meters and another 155 meters. The
majority of the sources, though, consistently say 155 meters. So, if the
question was about the length of the Pont des Arts, the answer would be 155
meters.

On the other hand, the leopard speed results show varying numbers. Some sources
say 56-60 km/h, others mention 35-37 mph (which converts to about 56-59 km/h),
and a few state 60 km/h or 45 km/h. There's a range here, but the most
frequently mentioned top speed is around 58 km/h (36 mph). However, one source
even mentions 60 km/h. The exact figure might depend on the specific source, but
the consensus seems to be in the 56-60 km/h range.

Since the user hasn't provided the exact question, but given the context of the
search results, the most likely scenario is that the question was about the
length of the Pont des Arts bridge. The answer would be 155 meters, as that's
the most commonly cited figure in the search results. The leopard speed
information might be part of a different question, but without the specific
query, it's safer to focus on the bridge's length.
</think>

The **Pont des Arts** bridge in Paris has a length of **155 meters (509 feet)**,
as consistently mentioned across multiple sources in the search results. While
some entries mention variations (e.g., 120 meters or 155 meters), the majority
of reliable references confirm **155 meters** as the correct length.

For the **leopard's speed**, the search results indicate a range of **56–60 km/h
(35–37 mph)** as the top speed, with some sources citing **60 km/h** or **45
km/h**. The most frequently cited figure is **58 km/h (36 mph)**, but the exact
value may depend on the specific source.

If the question was about the **bridge length**, the answer is **155 meters**.
If it was about **leopard speed**, the answer is **56–60 km/h (35–37 mph)**.

**Final Answer (assuming the question was about the bridge length):**
**155 meters**.
            Make sure to include code with the correct pattern, for instance:
            Thoughts: Your thoughts
            Code:
            ```py
            # Your python code here
            ```<end_code>
Make sure to provide correct code blobs.
[Step 3: Duration 48.65 seconds| Input tokens: 8,483 | Output tokens: 1,452]
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Step 4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
 ─ Executing parsed code: ─────────────────────────────────────────────────────
  final_answer("155 meters")
 ──────────────────────────────────────────────────────────────────────────────
Out - Final answer: 155 meters
[Step 4: Duration 29.71 seconds| Input tokens: 11,534 | Output tokens: 1,869]
'155 meters'

1 Like

Another option is to do it locally for free if you have a decent GPU, but few people have a GPU powerful enough to run a powerful LLM that can be used with an API…