BuildShip Logo
BuildShip Community

Count Tokens in Prompt

When using long prompts, it might be useful to count tokens before sending any content to the model.

228

Report this node

Select the reason for reporting

Describe the issue in detail

Share node

Link to node

https://templates.buildship.com/node/buildship_gemini-prompt-tokens/

Inputs

Prompt

Explain the concept of photosynthesis to a 10-year-old

Model

gemini-1.5-pro
This is a static example using sample inputs. Copy the node and paste it into your BuildShip flow to run it with your own values.

Output