StarCoder2 7B

Code

BigCode's StarCoder2 7B. Trained on The Stack v2, excellent for code generation across 600+ languages.

Pricing
Input
$0.06/1M
Output
$0.12/1M
Context Length
16K tokens
Max Completion
4K tokens

Capabilities

Chat
Tool Calling

Technical Details

Model ID
starcoder2-7b
Tokenizer
StarCoder

Quick Start

from openai import OpenAI

client = OpenAI(
    base_url="https://api.llamagate.ai/v1",
    api_key="your-api-key",
)

response = client.chat.completions.create(
    model="starcoder2-7b",
    messages=[{"role": "user", "content": "Hello!"}],
)

print(response.choices[0].message.content)

Start Using StarCoder2 7B

Create an account and start building with just $5.

starcoder2-7b API - LlamaGate