Skip to content
项目

关于

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

人工智能与机器学习

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+6
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…