AlfredPros: CodeLLaMa 7B Instruct Solidity API

Access AlfredPros: CodeLLaMa 7B Instruct Solidity from AlfredPros using Puter.js AI API.

Get Started

Model Card

CodeLlama 7B Instruct Solidity is a fine-tuned 7 billion parameter Code LLaMA model specialized for generating Solidity smart contracts. It was trained using 4-bit QLoRA fine-tuning on a dataset of 6,003 GPT-generated instruction and Solidity code pairs. The model takes human instructions and produces working Solidity code for blockchain applications.

Context Window N/A

tokens

Max Output 4K

tokens

Input Cost $0.8

per million tokens

Output Cost $1.2

per million tokens

Release Date Sep 7, 2023

 

API Usage Example

Add AlfredPros: CodeLLaMa 7B Instruct Solidity to your app with just a few lines of code.
No API keys, no backend, no configuration required.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.chat("Explain quantum computing in simple terms", {
    model: "alfredpros/codellama-7b-instruct-solidity"
}).then(response => {
    document.body.innerHTML = response.message.content;
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "alfredpros/codellama-7b-instruct-solidity"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Frequently Asked Questions

What is this AlfredPros: CodeLLaMa 7B Instruct Solidity API about?

The AlfredPros: CodeLLaMa 7B Instruct Solidity API gives you access to AlfredPros's chat model through Puter.js. With just a few lines of JavaScript, you can integrate AlfredPros: CodeLLaMa 7B Instruct Solidity into any web app or Node.js project — no API keys, no backend, and no configuration required.

Who created AlfredPros: CodeLLaMa 7B Instruct Solidity?

AlfredPros: CodeLLaMa 7B Instruct Solidity was created by AlfredPros and released on Sep 7, 2023.

What is the max output length of AlfredPros: CodeLLaMa 7B Instruct Solidity?

AlfredPros: CodeLLaMa 7B Instruct Solidity can generate up to 4K tokens in a single response.

How much does it cost?
The AlfredPros: CodeLLaMa 7B Instruct Solidity API is available through the User-Pays Model. As a developer, you can add the AlfredPros: CodeLLaMa 7B Instruct Solidity API to your app for free — your users pay for their own AI costs directly.
Price per 1M tokens
Input$0.8
Output$1.2
How do I access the AlfredPros: CodeLLaMa 7B Instruct Solidity API?

You can access the AlfredPros: CodeLLaMa 7B Instruct Solidity API with just a few lines of JavaScript — no API keys, no backend, and no configuration required. Include the Puter.js library in your project and start making calls right away. For more details, check out our documentation.

Does the AlfredPros: CodeLLaMa 7B Instruct Solidity API work with React / Vue / Vanilla JS / Node / etc.?

Yes — the AlfredPros: CodeLLaMa 7B Instruct Solidity API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.

Get started with Puter.js

Add AlfredPros: CodeLLaMa 7B Instruct Solidity to your app without worrying about API keys or setup.

Read the Docs View Tutorials