Skip to content
프로젝트

소개

LLM7.io offers a single API gateway that connects you to a wide array of leading AI models from various providers.

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+6
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

LLM7.io provides an OpenAI-compatible API for text, image, and video generation.

Quickstart

Get an API token from dash.llm7.io.

Python

Install the OpenAI SDK:

pip install openai

Create a chat completion:

import openai

client = openai.OpenAI(
    base_url="https://api.llm7.io/v1",
    api_key="YOUR_LLM7_API_TOKEN",
)

response = client.chat.completions.create(
    model="default",
    messages=[{"role": "user", "content": "Tell me a short story."}],
)

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

curl

curl https://api.llm7.io/v1/chat/completions \
  -H "Authorization: Bearer YOUR_LLM7_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"default","messages":[{"role":"user","content":"Tell me a short story."}]}'

Documentation

License

GNU Affero General Public License

관련 프로젝트 살펴보기

불러오는 중…