Models / Free

Llama 3.2 11B Vision free API

Meta's Llama 3.2 11B Vision Instruct, which accepts images as well as text.

On InferAll it costs $0 per input and output token. A new trial key can call it without a card; paid accounts can call it too. Send this id as the model:

Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    base_url="https://api.inferall.ai/v1",
    api_key="ifu_your_key_here",  # inferall.ai/keys
)

response = client.chat.completions.create(
    model="meta/llama-3.2-11b-vision-instruct",
    messages=[{"role": "user", "content": "Explain what an API is in one sentence."}],
    max_tokens=300,
)
print(response.choices[0].message.content)

To send an image, add an image_url part (a data URL or an https URL) to the message content, as with OpenAI.

curl

curl https://api.inferall.ai/v1/chat/completions \
  -H "Authorization: Bearer $INFERALL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "meta/llama-3.2-11b-vision-instruct", "messages": [{"role": "user", "content": "Hello"}], "max_tokens": 200}'

Claude Code and the Anthropic SDK

The same key works on the Anthropic-compatible /v1/messages endpoint:

export ANTHROPIC_BASE_URL=https://api.inferall.ai
export ANTHROPIC_API_KEY=ifu_your_key_here
export ANTHROPIC_MODEL=meta/llama-3.2-11b-vision-instruct
claude

Good to know

Get a keyAll models

Other free models