CodeLLaMa 7B Instruct Solidity

Other chattool_usecode

API ID: alfredpros/codellama-7b-instruct-solidity

Input Price
$0.80
/1M tokens
Output Price
$1.20
/1M tokens

About CodeLLaMa 7B Instruct Solidity

A finetuned 7 billion parameters Code LLaMA - Instruct model to generate Solidity smart contract using 4-bit QLoRA finetuning provided by PEFT library.

๐Ÿ’ฐ
Price Ranking
#926 lowest price among 1240 Chat models

Model Specifications

Context Length
4k
Max Output
4k
Release Date
2025-04-14
Capabilities
chat tool_use code
Input Modalities
text
Output Modalities
text

Best For

  • Code generation, debugging, code review, refactoring
  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.72
/month
50 conversations/day, ~500 tokens each
Code Copilot
$6.72
/month
200 completions/day, ~1k tokens each
Customer Service Bot
$22.80
/month
1000 tickets/day, ~800 tokens each
Data Analysis Pipeline
$32.40
/month
500 analyses/day, ~2k tokens each

Other Model Lineup

Compare all models from Other to find the best fit

Model Input Output Context Capabilities
CodeLLaMa 7B Instruct Solidity Current Free Free 4k chat tool_use code
Riverflow V2 Max Preview Free Free 8k chat vision image_gen
Riverflow V2 Standard Preview Free Free 8k chat vision image_gen
Riverflow V2 Fast Preview Free Free 8k chat vision image_gen
AFM 4.5B Free Free 66k chat
AFM 4.5B Free Free 66k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Morph Morph V3 Fast
Input: $0.80
Output: $1.20
Context: 82k
OpenAI GPT-3.5 Turbo
Input: $0.50
Output: $1.50
Context: 16k
Mistral Mistral Large 3 2512
Input: $0.50
Output: $1.50
Context: 262k
Alibaba Qwen Qwen3 VL 32B Instruct
Input: $0.50
Output: $1.50
Context: 131k

๐Ÿš€ Quick Start

Get started with CodeLLaMa 7B Instruct Solidity API

OpenAI-compatible SDK
from openai import OpenAI

client = OpenAI(
    base_url="https://api.provider.com/v1",
    api_key="YOUR_API_KEY"
)

response = client.chat.completions.create(
    model="alfredpros/codellama-7b-instruct-solidity",
    messages=[
        {"role": "user", "content": "Hello!"}
    ]
)
print(response.choices[0].message.content)