AlfredPros: CodeLLaMa 7B Instruct Solidity

alfredpros/codellama-7b-instruct-solidity

Created Apr 14, 20254,096 context
$0.80/M input tokens$1.20/M output tokens

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

Providers for CodeLLaMa 7B Instruct Solidity

OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

Context
4K
Max Output
4K
Input
$0.80
Output
$1.20

Apps using CodeLLaMa 7B Instruct Solidity

Top public apps this week using this model

1.
Favicon for https://openrouter.ai/chat
OpenRouter: Chatroom
Chat with multiple LLMs at once
78Ktokens
2.
Favicon for https://cline.bot/
Cline
Autonomous coding agent right in your IDE
77Ktokens
3.
Favicon for https://apipie.ai/
APIpie.ai
new
20Ktokens
4.
Favicon for https://openwebui.com/
Open WebUI
Extensible, self-hosted AI interface
11Ktokens
5.
Favicon for https://sillytavern.app/
SillyTavern
LLM frontend for power users
11Ktokens
6.
Favicon for https://novelcrafter.com/
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
8Ktokens
7.
Favicon for https://chub.ai/
Chub AI
GenAI for everyone
6Ktokens
8.
Favicon for https://Agent37.ai/
agent37.ai
new
4Ktokens
9.
Favicon for https://roocode.com/
Roo Code
A whole dev team of AI agents in your editor
3Ktokens
10.
Favicon for https://risuai.xyz/
RisuAI
Browse characters, choose models, and chat
3Ktokens
11.
Favicon for https://situation-room.ai/
Situation Room AI
new
2Ktokens
12.
Favicon for https://www.typingmind.com/
TypingMind
A better UI for ChatGPT
1Ktokens
13.
Favicon for https://ai-chess-arena.example.com/
ai-chess-arena.example.com
new
848tokens
14.
Favicon for https://cherry-ai.com/
Cherry Studio
new
329tokens

Recent activity on CodeLLaMa 7B Instruct Solidity

Tokens processed per day

Apr 14Apr 16Apr 18Apr 20Apr 22Apr 24Apr 26Apr 28Apr 30May 2May 4May 6May 8080K160K240K320K

Uptime stats for CodeLLaMa 7B Instruct Solidity

Uptime stats for CodeLLaMa 7B Instruct Solidity on the only provider

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it.

Learn more about our load balancing and customization options.

Sample code and API for CodeLLaMa 7B Instruct Solidity

OpenRouter normalizes requests and responses across providers for you.

OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

from openai import OpenAI

client = OpenAI(
  base_url="https://openrouter.ai/api/v1",
  api_key="<OPENROUTER_API_KEY>",
)

completion = client.chat.completions.create(
  extra_headers={
    "HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
    "X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
  },
  extra_body={},
  model="alfredpros/codellama-7b-instruct-solidity",
  messages=[
    {
      "role": "user",
      "content": "What is the meaning of life?"
    }
  ]
)
print(completion.choices[0].message.content)

Using third-party SDKs

For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.

    CodeLLaMa 7B Instruct Solidity - API, Providers, Stats | OpenRouter