Free, Unlimited ByteDance Seed API
On this page
In this tutorial, you will learn how to add ByteDance Seed models into your application for free using Puter.js. You can gain access to models such as Seed 1.6 and Seed 1.6 Flash by ByteDance without having to set up the AI server yourself.
Puter.js uses the User-Pays model, where users of your application cover their own AI costs. This means you as a developer don't pay anything for your users' usage, making your app practically free to run. You can scale to unlimited users and pay nothing for the AI or server usage.
Getting Started
Add Puter.js to your project with a single line:
<script src="https://js.puter.com/v2/"></script>
That's it, you're ready to start integrating ByteDance Seed into your application.
Example 1: Basic Chat
Use ByteDance Seed 1.6 for general purpose chat and conversation.
puter.ai.chat("Explain the concept of quantum computing in simple terms", { model: "openrouter:bytedance-seed/seed-1.6" })
.then(response => {
puter.print(response);
});
Full code example:
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain the concept of quantum computing in simple terms", { model: "openrouter:bytedance-seed/seed-1.6" })
.then(response => {
puter.print(response);
});
</script>
</body>
</html>
Example 2: Fast and Efficient Chat
ByteDance Seed 1.6 Flash is an ultra-fast and cost efficient model.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
async function streamResponse() {
const response = await puter.ai.chat(
"Debug this logic: If I have 3 apples and give away 5, how many do I have?",
{ model: "openrouter:bytedance-seed/seed-1.6-flash", stream: true }
);
for await (const part of response) {
if (part?.reasoning) puter.print(part?.reasoning);
else puter.print(part?.text);
}
}
streamResponse();
</script>
</body>
</html>
Example 3: Deep Thinking
ByteDance Seed 1.6 also excels at deep thinking and complex reasoning tasks.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
async function streamResponse() {
const response = await puter.ai.chat(
"Debug this logic: If I have 3 apples and give away 5, how many do I have?",
{ model: "openrouter:bytedance-seed/seed-1.6", stream: true }
);
for await (const part of response) {
if (part?.reasoning) puter.print(part?.reasoning);
else puter.print(part?.text);
}
}
streamResponse();
</script>
</body>
</html>
Example 4: Image Analysis
You can use ByteDance Seed 1.6 Flash to perform analysis of a given image.
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat(
"What do you see in this image?",
"https://assets.puter.site/doge.jpeg",
{ model: 'openrouter:bytedance-seed/seed-1.6-flash' }
).then(response => {
puter.print(response);
});
</script>
</body>
</html>
List of ByteDance Seed models
You can use the following ByteDance Seed models with Puter.js:
openrouter:bytedance-seed/seed-1.6
openrouter:bytedance-seed/seed-1.6-flash
Conclusion
Using Puter.js, you can gain access to ByteDance Seed models without having to set up the AI server yourself. And thanks to the User-Pays model, your users cover their own AI usage, not you as the developer. This means you can build powerful applications without worrying about AI usage costs.
You can find all AI features supported by Puter.js in the documentation.
Related
Free, Serverless AI and Cloud
Start creating powerful web applications with Puter.js in seconds!
Get Started Now