README / README.md
13crow's picture
Update README.md
50b17e6 verified
|
Raw History Blame Contribute Delete
791 Bytes
metadata
title: CrowLLM
emoji: 🐦
colorFrom: red
colorTo: gray
sdk: static
pinned: false
short_description: One OpenAI-compatible endpoint for every major provider.

CrowLLM is one OpenAI-compatible endpoint in front of every major model provider. Chat, image, audio and embeddings answer on the same key, the same balance and the same bill.

from openai import OpenAI

client = OpenAI(
    base_url="https://crowllm.com/v1",
    api_key="sk-...",
)

reply = client.chat.completions.create(
    model="<model-id>",
    messages=[{"role": "user", "content": "hello"}],
)
print(reply.choices[0].message.content)