OpenAlchemyOpenAlchemy
← All modalities

Chat · Summarize · Code

LLM (Chat / Instruct)

Live

Standard chat completions endpoint — for chat, summarization, code generation, and tool use.

Overview

LLM (Chat / Instruct)

Conversational responses, document summarization, code generation, function calling, and streaming — all on a single endpoint. Bind models to your project and call them via `/v1/chat/completions` or `/v1/completions`.

Endpoint
/v1/chat/completions
Example model
llama-3.1-8b-instruct

API

API example

# 1) discover an online chat model — Grid's set changes constantly,
#    don't hardcode an id in your code.
MODEL=$(curl -s https://api.openalchemy.io/v1/models \
  -H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
  | jq -r '.data[] | select(.online and .endpoint_type=="chat") | .id' \
  | head -1)

# 2) chat
curl https://api.openalchemy.io/v1/chat/completions \
  -H "Authorization: Bearer $OPENALCHEMY_API_KEY" \
  -H "X-Project-Id: $YOUR_PROJECT_ID" \
  -H "Content-Type: application/json" \
  -d "{
    \"model\": \"$MODEL\",
    \"messages\": [
      {\"role\": \"user\", \"content\": \"Hello, OpenAlchemy.\"}
    ]
  }"

Status

Quota and pricing (per project)

Allotments and rate limits apply to the project that issued the API key. A second domain-scoped policy layer constrains which origins may invoke each modality.

Read the docs for this modality →

START TODAY

Ready to turn inference cost into something closer to alchemy?

Sign up and get 2,000 free credits ($2) — no credit card required.