AICredits logo
alfredpros

alfredpros/codellama-7b-instruct-solidity

alfredpros/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.

Supported APIs

Chat API
Context
4K
Max output
Input / 1M
₹80.52
Cached / 1M
₹8.05
Output / 1M
₹120.78

Pricing

Token typeUSD / 1MINR / 1M
Input$0.800₹80.52
Cached inputprompt cache read$0.0808.05
Output$1.20₹120.78

INR prices include forex conversion. Billed per token in your wallet. See the cost calculator.

Quickstart

Call alfredpros/codellama-7b-instruct-solidity through the supported APIs shown above — just set the base URL and your AICredits key.

cURL — /v1/chat/completions
curl https://api.aicredits.in/v1/chat/completions \
  -H "Authorization: Bearer $AICREDITS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "alfredpros/codellama-7b-instruct-solidity",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

New here? Follow the quickstart guide or browse all models.